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

Amazonka.RAM.ListPrincipals

Description

Lists the principals that you have shared resources with or that have shared resources with you.

This operation returns paginated results.

Synopsis

Creating a Request

data ListPrincipals Source #

See: newListPrincipals smart constructor.

Constructors

ListPrincipals' 

Fields

  • resourceType :: Maybe Text

    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

  • principals :: Maybe [Text]

    The principals.

  • nextToken :: Maybe Text

    The token for the next page of results.

  • resourceArn :: Maybe Text

    The Amazon Resource Name (ARN) of the resource.

  • maxResults :: Maybe Natural

    The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

  • resourceShareArns :: Maybe [Text]

    The Amazon Resource Names (ARN) of the resource shares.

  • resourceOwner :: ResourceOwner

    The type of owner.

Instances

Instances details
Eq ListPrincipals Source # 
Instance details

Defined in Amazonka.RAM.ListPrincipals

Read ListPrincipals Source # 
Instance details

Defined in Amazonka.RAM.ListPrincipals

Show ListPrincipals Source # 
Instance details

Defined in Amazonka.RAM.ListPrincipals

Generic ListPrincipals Source # 
Instance details

Defined in Amazonka.RAM.ListPrincipals

Associated Types

type Rep ListPrincipals :: Type -> Type #

NFData ListPrincipals Source # 
Instance details

Defined in Amazonka.RAM.ListPrincipals

Methods

rnf :: ListPrincipals -> () #

Hashable ListPrincipals Source # 
Instance details

Defined in Amazonka.RAM.ListPrincipals

ToJSON ListPrincipals Source # 
Instance details

Defined in Amazonka.RAM.ListPrincipals

AWSPager ListPrincipals Source # 
Instance details

Defined in Amazonka.RAM.ListPrincipals

AWSRequest ListPrincipals Source # 
Instance details

Defined in Amazonka.RAM.ListPrincipals

Associated Types

type AWSResponse ListPrincipals #

ToHeaders ListPrincipals Source # 
Instance details

Defined in Amazonka.RAM.ListPrincipals

ToPath ListPrincipals Source # 
Instance details

Defined in Amazonka.RAM.ListPrincipals

ToQuery ListPrincipals Source # 
Instance details

Defined in Amazonka.RAM.ListPrincipals

type Rep ListPrincipals Source # 
Instance details

Defined in Amazonka.RAM.ListPrincipals

type AWSResponse ListPrincipals Source # 
Instance details

Defined in Amazonka.RAM.ListPrincipals

newListPrincipals Source #

Create a value of ListPrincipals 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:ListPrincipals', listPrincipals_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:principals:ListPrincipals', listPrincipals_principals - The principals.

$sel:nextToken:ListPrincipals', listPrincipals_nextToken - The token for the next page of results.

$sel:resourceArn:ListPrincipals', listPrincipals_resourceArn - The Amazon Resource Name (ARN) of the resource.

$sel:maxResults:ListPrincipals', listPrincipals_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:ListPrincipals', listPrincipals_resourceShareArns - The Amazon Resource Names (ARN) of the resource shares.

$sel:resourceOwner:ListPrincipals', listPrincipals_resourceOwner - The type of owner.

Request Lenses

listPrincipals_resourceType :: Lens' ListPrincipals (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

listPrincipals_nextToken :: Lens' ListPrincipals (Maybe Text) Source #

The token for the next page of results.

listPrincipals_resourceArn :: Lens' ListPrincipals (Maybe Text) Source #

The Amazon Resource Name (ARN) of the resource.

listPrincipals_maxResults :: Lens' ListPrincipals (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.

listPrincipals_resourceShareArns :: Lens' ListPrincipals (Maybe [Text]) Source #

The Amazon Resource Names (ARN) of the resource shares.

Destructuring the Response

data ListPrincipalsResponse Source #

See: newListPrincipalsResponse smart constructor.

Constructors

ListPrincipalsResponse' 

Fields

Instances

Instances details
Eq ListPrincipalsResponse Source # 
Instance details

Defined in Amazonka.RAM.ListPrincipals

Read ListPrincipalsResponse Source # 
Instance details

Defined in Amazonka.RAM.ListPrincipals

Show ListPrincipalsResponse Source # 
Instance details

Defined in Amazonka.RAM.ListPrincipals

Generic ListPrincipalsResponse Source # 
Instance details

Defined in Amazonka.RAM.ListPrincipals

Associated Types

type Rep ListPrincipalsResponse :: Type -> Type #

NFData ListPrincipalsResponse Source # 
Instance details

Defined in Amazonka.RAM.ListPrincipals

Methods

rnf :: ListPrincipalsResponse -> () #

type Rep ListPrincipalsResponse Source # 
Instance details

Defined in Amazonka.RAM.ListPrincipals

type Rep ListPrincipalsResponse = D1 ('MetaData "ListPrincipalsResponse" "Amazonka.RAM.ListPrincipals" "libZSservicesZSamazonka-ramZSamazonka-ram" 'False) (C1 ('MetaCons "ListPrincipalsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "principals") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Principal])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListPrincipalsResponse Source #

Create a value of ListPrincipalsResponse 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:principals:ListPrincipals', listPrincipalsResponse_principals - The principals.

$sel:nextToken:ListPrincipals', listPrincipalsResponse_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:ListPrincipalsResponse', listPrincipalsResponse_httpStatus - The response's http status code.

Response Lenses

listPrincipalsResponse_nextToken :: Lens' ListPrincipalsResponse (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.