import { ResourceBase } from '../resource' ; import { Value , List } from '../dataTypes' ; export class RoleMapping { Type ! : Value < string > ; AmbiguousRoleResolution ? : Value < string > ; RulesConfiguration ? : RulesConfigurationType ; IdentityProvider ? : Value < string > ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export class MappingRule { MatchType ! : Value < string > ; Value ! : Value < string > ; Claim ! : Value < string > ; RoleARN ! : Value < string > ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export class RulesConfigurationType { Rules ! : List < MappingRule > ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export interface IdentityPoolRoleAttachmentProperties { RoleMappings ? : { [ key ] : any ; } ; IdentityPoolId : Value < string > ; Roles ? : { [ key ] : any ; } ; } export default class IdentityPoolRoleAttachment extends ResourceBase < IdentityPoolRoleAttachmentProperties > { static RoleMapping = RoleMapping ; static MappingRule = MappingRule ; static RulesConfigurationType = RulesConfigurationType ; constructor ( properties ) { super ( 'AWS::Cognito::IdentityPoolRoleAttachment' , properties ) ; } }