We recommend new projects start with resources from the AWS provider.
published on Monday, Mar 23, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Monday, Mar 23, 2026 by Pulumi
Resource Type definition for AWS::Cognito::IdentityPoolRoleAttachment
Using getIdentityPoolRoleAttachment
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getIdentityPoolRoleAttachment(args: GetIdentityPoolRoleAttachmentArgs, opts?: InvokeOptions): Promise<GetIdentityPoolRoleAttachmentResult>
function getIdentityPoolRoleAttachmentOutput(args: GetIdentityPoolRoleAttachmentOutputArgs, opts?: InvokeOptions): Output<GetIdentityPoolRoleAttachmentResult>def get_identity_pool_role_attachment(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIdentityPoolRoleAttachmentResult
def get_identity_pool_role_attachment_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIdentityPoolRoleAttachmentResult]func LookupIdentityPoolRoleAttachment(ctx *Context, args *LookupIdentityPoolRoleAttachmentArgs, opts ...InvokeOption) (*LookupIdentityPoolRoleAttachmentResult, error)
func LookupIdentityPoolRoleAttachmentOutput(ctx *Context, args *LookupIdentityPoolRoleAttachmentOutputArgs, opts ...InvokeOption) LookupIdentityPoolRoleAttachmentResultOutput> Note: This function is named LookupIdentityPoolRoleAttachment in the Go SDK.
public static class GetIdentityPoolRoleAttachment
{
public static Task<GetIdentityPoolRoleAttachmentResult> InvokeAsync(GetIdentityPoolRoleAttachmentArgs args, InvokeOptions? opts = null)
public static Output<GetIdentityPoolRoleAttachmentResult> Invoke(GetIdentityPoolRoleAttachmentInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetIdentityPoolRoleAttachmentResult> getIdentityPoolRoleAttachment(GetIdentityPoolRoleAttachmentArgs args, InvokeOptions options)
public static Output<GetIdentityPoolRoleAttachmentResult> getIdentityPoolRoleAttachment(GetIdentityPoolRoleAttachmentArgs args, InvokeOptions options)
fn::invoke:
function: aws-native:cognito:getIdentityPoolRoleAttachment
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- The resource ID.
- Id string
- The resource ID.
- id String
- The resource ID.
- id string
- The resource ID.
- id str
- The resource ID.
- id String
- The resource ID.
getIdentityPoolRoleAttachment Result
The following output properties are available:
- Id string
- The resource ID.
- Role
Mappings Dictionary<string, Pulumi.Aws Native. Cognito. Outputs. Identity Pool Role Attachment Role Mapping> How users for a specific identity provider are mapped to roles. This is a string to the
RoleMappingobject map. The string identifies the identity provider. For example:graph.facebook.comorcognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id.If the
IdentityProviderfield isn't provided in this object, the string is used as the identity provider name.For more information, see the RoleMapping property .
- Roles Dictionary<string, string>
- The map of the roles associated with this pool. For a given role, the key is either "authenticated" or "unauthenticated". The value is the role ARN.
- Id string
- The resource ID.
- Role
Mappings map[string]IdentityPool Role Attachment Role Mapping How users for a specific identity provider are mapped to roles. This is a string to the
RoleMappingobject map. The string identifies the identity provider. For example:graph.facebook.comorcognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id.If the
IdentityProviderfield isn't provided in this object, the string is used as the identity provider name.For more information, see the RoleMapping property .
- Roles map[string]string
- The map of the roles associated with this pool. For a given role, the key is either "authenticated" or "unauthenticated". The value is the role ARN.
- id String
- The resource ID.
- role
Mappings Map<String,IdentityPool Role Attachment Role Mapping> How users for a specific identity provider are mapped to roles. This is a string to the
RoleMappingobject map. The string identifies the identity provider. For example:graph.facebook.comorcognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id.If the
IdentityProviderfield isn't provided in this object, the string is used as the identity provider name.For more information, see the RoleMapping property .
- roles Map<String,String>
- The map of the roles associated with this pool. For a given role, the key is either "authenticated" or "unauthenticated". The value is the role ARN.
- id string
- The resource ID.
- role
Mappings {[key: string]: IdentityPool Role Attachment Role Mapping} How users for a specific identity provider are mapped to roles. This is a string to the
RoleMappingobject map. The string identifies the identity provider. For example:graph.facebook.comorcognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id.If the
IdentityProviderfield isn't provided in this object, the string is used as the identity provider name.For more information, see the RoleMapping property .
- roles {[key: string]: string}
- The map of the roles associated with this pool. For a given role, the key is either "authenticated" or "unauthenticated". The value is the role ARN.
- id str
- The resource ID.
- role_
mappings Mapping[str, IdentityPool Role Attachment Role Mapping] How users for a specific identity provider are mapped to roles. This is a string to the
RoleMappingobject map. The string identifies the identity provider. For example:graph.facebook.comorcognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id.If the
IdentityProviderfield isn't provided in this object, the string is used as the identity provider name.For more information, see the RoleMapping property .
- roles Mapping[str, str]
- The map of the roles associated with this pool. For a given role, the key is either "authenticated" or "unauthenticated". The value is the role ARN.
- id String
- The resource ID.
- role
Mappings Map<Property Map> How users for a specific identity provider are mapped to roles. This is a string to the
RoleMappingobject map. The string identifies the identity provider. For example:graph.facebook.comorcognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id.If the
IdentityProviderfield isn't provided in this object, the string is used as the identity provider name.For more information, see the RoleMapping property .
- roles Map<String>
- The map of the roles associated with this pool. For a given role, the key is either "authenticated" or "unauthenticated". The value is the role ARN.
Supporting Types
IdentityPoolRoleAttachmentMappingRule
- claim str
- match_
type str - role_
arn str - value str
IdentityPoolRoleAttachmentRoleMapping
- type String
- ambiguous
Role StringResolution - identity
Provider String - rules
Configuration Property Map
IdentityPoolRoleAttachmentRulesConfigurationType
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Mar 23, 2026 by Pulumi
