IdentityPoolRoleAttachment constructor

IdentityPoolRoleAttachment(
  1. String name, {
  2. IdentityPoolRoleAttachmentArgs? args,
  3. CustomResourceOptions? options,
})

Creates a new IdentityPoolRoleAttachment. name The Pulumi resource name. args Arguments used to configure this IdentityPoolRoleAttachment. The set of arguments for IdentityPoolRoleAttachment. options Resource options controlling this resource's behavior.

Implementation

IdentityPoolRoleAttachment(
  String name, {
  IdentityPoolRoleAttachmentArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'aws:cognito/identityPoolRoleAttachment:IdentityPoolRoleAttachment',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
      ) {
  identityPoolId = registerOutput<String>('identityPoolId');
  region = registerOutput<String>('region');
  roleMappings = registerOutput<List<IdentityPoolRoleAttachmentRoleMapping>?>('roleMappings', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<IdentityPoolRoleAttachmentRoleMapping>(guardedValue, (value) => IdentityPoolRoleAttachmentRoleMapping.fromMap((value as Map).cast<String, dynamic>())); });
  roles = registerOutput<Map<String, String>>('roles', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
}