amazonka-ram-2.0: Amazon Resource Access Manager SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.RAM.ListResourceTypes

Description

Lists the resource types that can be shared by RAM.

Synopsis

Creating a Request

data ListResourceTypes Source #

See: newListResourceTypes smart constructor.

Constructors

ListResourceTypes' 

Fields

  • maxResults :: Maybe Natural

    Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

  • nextToken :: Maybe Text

    Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.

  • resourceRegionScope :: Maybe ResourceRegionScopeFilter

    Specifies that you want the results to include only resources that have the specified scope.

    • ALL – the results include both global and regional resources or resource types.
    • GLOBAL – the results include only global resources or resource types.
    • REGIONAL – the results include only regional resources or resource types.

    The default value is ALL.

Instances

Instances details
ToJSON ListResourceTypes Source # 
Instance details

Defined in Amazonka.RAM.ListResourceTypes

ToHeaders ListResourceTypes Source # 
Instance details

Defined in Amazonka.RAM.ListResourceTypes

ToPath ListResourceTypes Source # 
Instance details

Defined in Amazonka.RAM.ListResourceTypes

ToQuery ListResourceTypes Source # 
Instance details

Defined in Amazonka.RAM.ListResourceTypes

AWSRequest ListResourceTypes Source # 
Instance details

Defined in Amazonka.RAM.ListResourceTypes

Associated Types

type AWSResponse ListResourceTypes #

Generic ListResourceTypes Source # 
Instance details

Defined in Amazonka.RAM.ListResourceTypes

Associated Types

type Rep ListResourceTypes :: Type -> Type #

Read ListResourceTypes Source # 
Instance details

Defined in Amazonka.RAM.ListResourceTypes

Show ListResourceTypes Source # 
Instance details

Defined in Amazonka.RAM.ListResourceTypes

NFData ListResourceTypes Source # 
Instance details

Defined in Amazonka.RAM.ListResourceTypes

Methods

rnf :: ListResourceTypes -> () #

Eq ListResourceTypes Source # 
Instance details

Defined in Amazonka.RAM.ListResourceTypes

Hashable ListResourceTypes Source # 
Instance details

Defined in Amazonka.RAM.ListResourceTypes

type AWSResponse ListResourceTypes Source # 
Instance details

Defined in Amazonka.RAM.ListResourceTypes

type Rep ListResourceTypes Source # 
Instance details

Defined in Amazonka.RAM.ListResourceTypes

type Rep ListResourceTypes = D1 ('MetaData "ListResourceTypes" "Amazonka.RAM.ListResourceTypes" "amazonka-ram-2.0-2ZD9k8USaHb58ZVl9MaFYL" 'False) (C1 ('MetaCons "ListResourceTypes'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "resourceRegionScope") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResourceRegionScopeFilter)))))

newListResourceTypes :: ListResourceTypes Source #

Create a value of ListResourceTypes with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:maxResults:ListResourceTypes', listResourceTypes_maxResults - Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

ListResourceTypes, listResourceTypes_nextToken - Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.

ListResourceTypes, listResourceTypes_resourceRegionScope - Specifies that you want the results to include only resources that have the specified scope.

  • ALL – the results include both global and regional resources or resource types.
  • GLOBAL – the results include only global resources or resource types.
  • REGIONAL – the results include only regional resources or resource types.

The default value is ALL.

Request Lenses

listResourceTypes_maxResults :: Lens' ListResourceTypes (Maybe Natural) Source #

Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

listResourceTypes_nextToken :: Lens' ListResourceTypes (Maybe Text) Source #

Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.

listResourceTypes_resourceRegionScope :: Lens' ListResourceTypes (Maybe ResourceRegionScopeFilter) Source #

Specifies that you want the results to include only resources that have the specified scope.

  • ALL – the results include both global and regional resources or resource types.
  • GLOBAL – the results include only global resources or resource types.
  • REGIONAL – the results include only regional resources or resource types.

The default value is ALL.

Destructuring the Response

data ListResourceTypesResponse Source #

See: newListResourceTypesResponse smart constructor.

Constructors

ListResourceTypesResponse' 

Fields

  • nextToken :: Maybe Text

    If present, this value indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. This indicates that this is the last page of results.

  • resourceTypes :: Maybe [ServiceNameAndResourceType]

    An array of objects that contain information about the resource types that can be shared using RAM.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListResourceTypesResponse Source # 
Instance details

Defined in Amazonka.RAM.ListResourceTypes

Associated Types

type Rep ListResourceTypesResponse :: Type -> Type #

Read ListResourceTypesResponse Source # 
Instance details

Defined in Amazonka.RAM.ListResourceTypes

Show ListResourceTypesResponse Source # 
Instance details

Defined in Amazonka.RAM.ListResourceTypes

NFData ListResourceTypesResponse Source # 
Instance details

Defined in Amazonka.RAM.ListResourceTypes

Eq ListResourceTypesResponse Source # 
Instance details

Defined in Amazonka.RAM.ListResourceTypes

type Rep ListResourceTypesResponse Source # 
Instance details

Defined in Amazonka.RAM.ListResourceTypes

type Rep ListResourceTypesResponse = D1 ('MetaData "ListResourceTypesResponse" "Amazonka.RAM.ListResourceTypes" "amazonka-ram-2.0-2ZD9k8USaHb58ZVl9MaFYL" 'False) (C1 ('MetaCons "ListResourceTypesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "resourceTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ServiceNameAndResourceType])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListResourceTypesResponse Source #

Create a value of ListResourceTypesResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

ListResourceTypes, listResourceTypesResponse_nextToken - If present, this value indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. This indicates that this is the last page of results.

$sel:resourceTypes:ListResourceTypesResponse', listResourceTypesResponse_resourceTypes - An array of objects that contain information about the resource types that can be shared using RAM.

$sel:httpStatus:ListResourceTypesResponse', listResourceTypesResponse_httpStatus - The response's http status code.

Response Lenses

listResourceTypesResponse_nextToken :: Lens' ListResourceTypesResponse (Maybe Text) Source #

If present, this value indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. This indicates that this is the last page of results.

listResourceTypesResponse_resourceTypes :: Lens' ListResourceTypesResponse (Maybe [ServiceNameAndResourceType]) Source #

An array of objects that contain information about the resource types that can be shared using RAM.