amazonka-swf-1.5.0: Amazon Simple Workflow Service SDK.

Copyright(c) 2013-2017 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.SWF.ListActivityTypes

Contents

Description

Returns information about all activities registered in the specified domain that match the specified name and registration status. The result includes information like creation date, current status of the activity, etc. The results may be split into multiple pages. To retrieve subsequent pages, make the call again using the nextPageToken returned by the initial call.

Access Control

You can use IAM policies to control this action's access to Amazon SWF resources as follows:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • You cannot use an IAM policy to constrain this action's parameters.

If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .

This operation returns paginated results.

Synopsis

Creating a Request

listActivityTypes Source #

Creates a value of ListActivityTypes with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • latNextPageToken - If a NextPageToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextPageToken . Keep all other arguments unchanged. The configured maximumPageSize determines how many results can be returned in a single call.
  • latReverseOrder - When set to true , returns the results in reverse order. By default, the results are returned in ascending alphabetical order by name of the activity types.
  • latName - If specified, only lists the activity types that have this name.
  • latMaximumPageSize - The maximum number of results that are returned per call. nextPageToken can be used to obtain futher pages of results. The default is 1000, which is the maximum allowed page size. You can, however, specify a page size smaller than the maximum. This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.
  • latDomain - The name of the domain in which the activity types have been registered.
  • latRegistrationStatus - Specifies the registration status of the activity types to list.

data ListActivityTypes Source #

See: listActivityTypes smart constructor.

Instances

Eq ListActivityTypes Source # 
Data ListActivityTypes Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListActivityTypes -> c ListActivityTypes #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListActivityTypes #

toConstr :: ListActivityTypes -> Constr #

dataTypeOf :: ListActivityTypes -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ListActivityTypes) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListActivityTypes) #

gmapT :: (forall b. Data b => b -> b) -> ListActivityTypes -> ListActivityTypes #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListActivityTypes -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListActivityTypes -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListActivityTypes -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListActivityTypes -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListActivityTypes -> m ListActivityTypes #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListActivityTypes -> m ListActivityTypes #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListActivityTypes -> m ListActivityTypes #

Read ListActivityTypes Source # 
Show ListActivityTypes Source # 
Generic ListActivityTypes Source # 
Hashable ListActivityTypes Source # 
ToJSON ListActivityTypes Source # 
NFData ListActivityTypes Source # 

Methods

rnf :: ListActivityTypes -> () #

AWSPager ListActivityTypes Source # 
AWSRequest ListActivityTypes Source # 
ToQuery ListActivityTypes Source # 
ToPath ListActivityTypes Source # 
ToHeaders ListActivityTypes Source # 
type Rep ListActivityTypes Source # 
type Rep ListActivityTypes = D1 (MetaData "ListActivityTypes" "Network.AWS.SWF.ListActivityTypes" "amazonka-swf-1.5.0-Iq58jBNwXOICscXZ8Q27Im" False) (C1 (MetaCons "ListActivityTypes'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_latNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_latReverseOrder") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_latName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_latMaximumPageSize") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) ((:*:) (S1 (MetaSel (Just Symbol "_latDomain") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_latRegistrationStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 RegistrationStatus))))))
type Rs ListActivityTypes Source # 

Request Lenses

latNextPageToken :: Lens' ListActivityTypes (Maybe Text) Source #

If a NextPageToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextPageToken . Keep all other arguments unchanged. The configured maximumPageSize determines how many results can be returned in a single call.

latReverseOrder :: Lens' ListActivityTypes (Maybe Bool) Source #

When set to true , returns the results in reverse order. By default, the results are returned in ascending alphabetical order by name of the activity types.

latName :: Lens' ListActivityTypes (Maybe Text) Source #

If specified, only lists the activity types that have this name.

latMaximumPageSize :: Lens' ListActivityTypes (Maybe Natural) Source #

The maximum number of results that are returned per call. nextPageToken can be used to obtain futher pages of results. The default is 1000, which is the maximum allowed page size. You can, however, specify a page size smaller than the maximum. This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.

latDomain :: Lens' ListActivityTypes Text Source #

The name of the domain in which the activity types have been registered.

latRegistrationStatus :: Lens' ListActivityTypes RegistrationStatus Source #

Specifies the registration status of the activity types to list.

Destructuring the Response

listActivityTypesResponse Source #

Creates a value of ListActivityTypesResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • latrsNextPageToken - If a NextPageToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextPageToken . Keep all other arguments unchanged. The configured maximumPageSize determines how many results can be returned in a single call.
  • latrsResponseStatus - -- | The response status code.
  • latrsTypeInfos - List of activity type information.

data ListActivityTypesResponse Source #

Contains a paginated list of activity type information structures.

See: listActivityTypesResponse smart constructor.

Instances

Eq ListActivityTypesResponse Source # 
Data ListActivityTypesResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListActivityTypesResponse -> c ListActivityTypesResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListActivityTypesResponse #

toConstr :: ListActivityTypesResponse -> Constr #

dataTypeOf :: ListActivityTypesResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ListActivityTypesResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListActivityTypesResponse) #

gmapT :: (forall b. Data b => b -> b) -> ListActivityTypesResponse -> ListActivityTypesResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListActivityTypesResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListActivityTypesResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListActivityTypesResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListActivityTypesResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListActivityTypesResponse -> m ListActivityTypesResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListActivityTypesResponse -> m ListActivityTypesResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListActivityTypesResponse -> m ListActivityTypesResponse #

Read ListActivityTypesResponse Source # 
Show ListActivityTypesResponse Source # 
Generic ListActivityTypesResponse Source # 
NFData ListActivityTypesResponse Source # 
type Rep ListActivityTypesResponse Source # 
type Rep ListActivityTypesResponse = D1 (MetaData "ListActivityTypesResponse" "Network.AWS.SWF.ListActivityTypes" "amazonka-swf-1.5.0-Iq58jBNwXOICscXZ8Q27Im" False) (C1 (MetaCons "ListActivityTypesResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_latrsNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_latrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)) (S1 (MetaSel (Just Symbol "_latrsTypeInfos") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [ActivityTypeInfo])))))

Response Lenses

latrsNextPageToken :: Lens' ListActivityTypesResponse (Maybe Text) Source #

If a NextPageToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextPageToken . Keep all other arguments unchanged. The configured maximumPageSize determines how many results can be returned in a single call.