Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Lists the resources that you added to a resource shares or the resources that are shared with you.
This operation returns paginated results.
Synopsis
- data ListResources = ListResources' {
- resourceType :: Maybe Text
- nextToken :: Maybe Text
- resourceArns :: Maybe [Text]
- principal :: Maybe Text
- maxResults :: Maybe Natural
- resourceShareArns :: Maybe [Text]
- resourceOwner :: ResourceOwner
- newListResources :: ResourceOwner -> ListResources
- listResources_resourceType :: Lens' ListResources (Maybe Text)
- listResources_nextToken :: Lens' ListResources (Maybe Text)
- listResources_resourceArns :: Lens' ListResources (Maybe [Text])
- listResources_principal :: Lens' ListResources (Maybe Text)
- listResources_maxResults :: Lens' ListResources (Maybe Natural)
- listResources_resourceShareArns :: Lens' ListResources (Maybe [Text])
- listResources_resourceOwner :: Lens' ListResources ResourceOwner
- data ListResourcesResponse = ListResourcesResponse' {}
- newListResourcesResponse :: Int -> ListResourcesResponse
- listResourcesResponse_resources :: Lens' ListResourcesResponse (Maybe [Resource])
- listResourcesResponse_nextToken :: Lens' ListResourcesResponse (Maybe Text)
- listResourcesResponse_httpStatus :: Lens' ListResourcesResponse Int
Creating a Request
data ListResources Source #
See: newListResources
smart constructor.
ListResources' | |
|
Instances
Create a value of ListResources
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:resourceType:ListResources'
, listResources_resourceType
- The resource type.
Valid values: acm-pca:CertificateAuthority
| appmesh:Mesh
|
codebuild:Project
| codebuild:ReportGroup
|
ec2:CapacityReservation
| ec2:DedicatedHost
|
ec2:LocalGatewayRouteTable
| ec2:PrefixList
| ec2:Subnet
|
ec2:TrafficMirrorTarget
| ec2:TransitGateway
|
imagebuilder:Component
| imagebuilder:Image
|
imagebuilder:ImageRecipe
| imagebuilder:ContainerRecipe
|
glue:Catalog
| glue:Database
| glue:Table
|
license-manager:LicenseConfiguration
I
network-firewall:FirewallPolicy
| network-firewall:StatefulRuleGroup
| network-firewall:StatelessRuleGroup
| outposts:Outpost
|
resource-groups:Group
| rds:Cluster
|
route53resolver:FirewallRuleGroup
|route53resolver:ResolverQueryLogConfig
|
route53resolver:ResolverRule
| s3-outposts:Outpost
|
ssm-contacts:Contact
| ssm-incidents:ResponsePlan
$sel:nextToken:ListResources'
, listResources_nextToken
- The token for the next page of results.
$sel:resourceArns:ListResources'
, listResources_resourceArns
- The Amazon Resource Names (ARNs) of the resources.
$sel:principal:ListResources'
, listResources_principal
- The principal.
$sel:maxResults:ListResources'
, listResources_maxResults
- The maximum number of results to return with a single call. To retrieve
the remaining results, make another call with the returned nextToken
value.
$sel:resourceShareArns:ListResources'
, listResources_resourceShareArns
- The Amazon Resource Names (ARN) of the resource shares.
$sel:resourceOwner:ListResources'
, listResources_resourceOwner
- The type of owner.
Request Lenses
listResources_resourceType :: Lens' ListResources (Maybe Text) Source #
The resource type.
Valid values: acm-pca:CertificateAuthority
| appmesh:Mesh
|
codebuild:Project
| codebuild:ReportGroup
|
ec2:CapacityReservation
| ec2:DedicatedHost
|
ec2:LocalGatewayRouteTable
| ec2:PrefixList
| ec2:Subnet
|
ec2:TrafficMirrorTarget
| ec2:TransitGateway
|
imagebuilder:Component
| imagebuilder:Image
|
imagebuilder:ImageRecipe
| imagebuilder:ContainerRecipe
|
glue:Catalog
| glue:Database
| glue:Table
|
license-manager:LicenseConfiguration
I
network-firewall:FirewallPolicy
| network-firewall:StatefulRuleGroup
| network-firewall:StatelessRuleGroup
| outposts:Outpost
|
resource-groups:Group
| rds:Cluster
|
route53resolver:FirewallRuleGroup
|route53resolver:ResolverQueryLogConfig
|
route53resolver:ResolverRule
| s3-outposts:Outpost
|
ssm-contacts:Contact
| ssm-incidents:ResponsePlan
listResources_nextToken :: Lens' ListResources (Maybe Text) Source #
The token for the next page of results.
listResources_resourceArns :: Lens' ListResources (Maybe [Text]) Source #
The Amazon Resource Names (ARNs) of the resources.
listResources_principal :: Lens' ListResources (Maybe Text) Source #
The principal.
listResources_maxResults :: Lens' ListResources (Maybe Natural) Source #
The maximum number of results to return with a single call. To retrieve
the remaining results, make another call with the returned nextToken
value.
listResources_resourceShareArns :: Lens' ListResources (Maybe [Text]) Source #
The Amazon Resource Names (ARN) of the resource shares.
listResources_resourceOwner :: Lens' ListResources ResourceOwner Source #
The type of owner.
Destructuring the Response
data ListResourcesResponse Source #
See: newListResourcesResponse
smart constructor.
Instances
newListResourcesResponse Source #
Create a value of ListResourcesResponse
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:resources:ListResourcesResponse'
, listResourcesResponse_resources
- Information about the resources.
$sel:nextToken:ListResources'
, listResourcesResponse_nextToken
- The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.
$sel:httpStatus:ListResourcesResponse'
, listResourcesResponse_httpStatus
- The response's http status code.
Response Lenses
listResourcesResponse_resources :: Lens' ListResourcesResponse (Maybe [Resource]) Source #
Information about the resources.
listResourcesResponse_nextToken :: Lens' ListResourcesResponse (Maybe Text) Source #
The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.
listResourcesResponse_httpStatus :: Lens' ListResourcesResponse Int Source #
The response's http status code.