CHIME-SDK-IDENTITY

CreateAppInstance

valid {
    input.Body.Name == STRING
    input.Body.Metadata == STRING
    input.Body.ClientRequestToken == STRING
    input.Body.Tags[_].Key == STRING
    input.Body.Tags[_].Value == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateAppInstanceAdmin

valid {
    input.Body.AppInstanceAdminArn == STRING
    input.ReqMap.appInstanceArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateAppInstanceBot

enum_RespondsTo := [ "STANDARD_MESSAGES" ]
enum_StandardMessages := [ "AUTO", "ALL", "MENTIONS", "NONE" ]
enum_TargetedMessages := [ "ALL", "NONE" ]

valid {
    input.Body.AppInstanceArn == STRING
    input.Body.Name == STRING
    input.Body.Metadata == STRING
    input.Body.ClientRequestToken == STRING
    input.Body.Tags[_].Key == STRING
    input.Body.Tags[_].Value == STRING
    input.Body.Configuration.Lex.RespondsTo == enum_RespondsTo[_]
    input.Body.Configuration.Lex.InvokedBy.StandardMessages == enum_StandardMessages[_]
    input.Body.Configuration.Lex.InvokedBy.TargetedMessages == enum_TargetedMessages[_]
    input.Body.Configuration.Lex.LexBotAliasArn == STRING
    input.Body.Configuration.Lex.LocaleId == STRING
    input.Body.Configuration.Lex.WelcomeIntent == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateAppInstanceUser

enum_ExpirationCriterion := [ "CREATED_TIMESTAMP" ]

valid {
    input.Body.AppInstanceArn == STRING
    input.Body.AppInstanceUserId == STRING
    input.Body.Name == STRING
    input.Body.Metadata == STRING
    input.Body.ClientRequestToken == STRING
    input.Body.Tags[_].Key == STRING
    input.Body.Tags[_].Value == STRING
    input.Body.ExpirationSettings.ExpirationDays == INTEGER
    input.Body.ExpirationSettings.ExpirationCriterion == enum_ExpirationCriterion[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DeleteAppInstance

valid {
    input.ReqMap.appInstanceArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DeleteAppInstanceAdmin

valid {
    input.ReqMap.appInstanceAdminArn == STRING
    input.ReqMap.appInstanceArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DeleteAppInstanceBot

valid {
    input.ReqMap.appInstanceBotArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DeleteAppInstanceUser

valid {
    input.ReqMap.appInstanceUserArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DeregisterAppInstanceUserEndpoint

valid {
    input.ReqMap.appInstanceUserArn == STRING
    input.ReqMap.endpointId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DescribeAppInstance

valid {
    input.ReqMap.appInstanceArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DescribeAppInstanceAdmin

valid {
    input.ReqMap.appInstanceAdminArn == STRING
    input.ReqMap.appInstanceArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DescribeAppInstanceBot

valid {
    input.ReqMap.appInstanceBotArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DescribeAppInstanceUser

valid {
    input.ReqMap.appInstanceUserArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DescribeAppInstanceUserEndpoint

valid {
    input.ReqMap.appInstanceUserArn == STRING
    input.ReqMap.endpointId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetAppInstanceRetentionSettings

valid {
    input.ReqMap.appInstanceArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListAppInstanceAdmins

valid {
    input.ReqMap.appInstanceArn == STRING
    input.Qs.max-results == INTEGER
    input.Qs.next-token == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListAppInstanceBots

valid {
    input.Qs.app-instance-arn == STRING
    input.Qs.max-results == INTEGER
    input.Qs.next-token == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListAppInstanceUserEndpoints

valid {
    input.ReqMap.appInstanceUserArn == STRING
    input.Qs.max-results == INTEGER
    input.Qs.next-token == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListAppInstanceUsers

valid {
    input.Qs.app-instance-arn == STRING
    input.Qs.max-results == INTEGER
    input.Qs.next-token == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListAppInstances

valid {
    input.Qs.max-results == INTEGER
    input.Qs.next-token == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListTagsForResource

valid {
    input.Qs.arn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

PutAppInstanceRetentionSettings

valid {
    input.Body.AppInstanceRetentionSettings.ChannelRetentionSettings.RetentionDays == INTEGER
    input.ReqMap.appInstanceArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

PutAppInstanceUserExpirationSettings

enum_ExpirationCriterion := [ "CREATED_TIMESTAMP" ]

valid {
    input.Body.ExpirationSettings.ExpirationDays == INTEGER
    input.Body.ExpirationSettings.ExpirationCriterion == enum_ExpirationCriterion[_]
    input.ReqMap.appInstanceUserArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

RegisterAppInstanceUserEndpoint

enum_AllowMessages := [ "ALL", "NONE" ]
enum_AppInstanceUserEndpointType := [ "APNS", "APNS_SANDBOX", "GCM" ]

valid {
    input.Body.Name == STRING
    input.Body.Type == enum_AppInstanceUserEndpointType[_]
    input.Body.ResourceArn == STRING
    input.Body.EndpointAttributes.DeviceToken == STRING
    input.Body.EndpointAttributes.VoipDeviceToken == STRING
    input.Body.ClientRequestToken == STRING
    input.Body.AllowMessages == enum_AllowMessages[_]
    input.ReqMap.appInstanceUserArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

TagResource

valid {
    input.Body.ResourceARN == STRING
    input.Body.Tags[_].Key == STRING
    input.Body.Tags[_].Value == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UntagResource

valid {
    input.Body.ResourceARN == STRING
    input.Body.TagKeys[_] == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UpdateAppInstance

valid {
    input.Body.Name == STRING
    input.Body.Metadata == STRING
    input.ReqMap.appInstanceArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UpdateAppInstanceBot

enum_RespondsTo := [ "STANDARD_MESSAGES" ]
enum_StandardMessages := [ "AUTO", "ALL", "MENTIONS", "NONE" ]
enum_TargetedMessages := [ "ALL", "NONE" ]

valid {
    input.Body.Name == STRING
    input.Body.Metadata == STRING
    input.Body.Configuration.Lex.RespondsTo == enum_RespondsTo[_]
    input.Body.Configuration.Lex.InvokedBy.StandardMessages == enum_StandardMessages[_]
    input.Body.Configuration.Lex.InvokedBy.TargetedMessages == enum_TargetedMessages[_]
    input.Body.Configuration.Lex.LexBotAliasArn == STRING
    input.Body.Configuration.Lex.LocaleId == STRING
    input.Body.Configuration.Lex.WelcomeIntent == STRING
    input.ReqMap.appInstanceBotArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UpdateAppInstanceUser

valid {
    input.Body.Name == STRING
    input.Body.Metadata == STRING
    input.ReqMap.appInstanceUserArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UpdateAppInstanceUserEndpoint

enum_AllowMessages := [ "ALL", "NONE" ]

valid {
    input.Body.Name == STRING
    input.Body.AllowMessages == enum_AllowMessages[_]
    input.ReqMap.appInstanceUserArn == STRING
    input.ReqMap.endpointId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}