RESOURCE-GROUPS

CancelTagSyncTask

valid {
    input.Body.TaskArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateGroup

enum_QueryType := [ "TAG_FILTERS_1_0", "CLOUDFORMATION_STACK_1_0" ]

valid {
    input.Body.Name == STRING
    input.Body.Description == STRING
    input.Body.ResourceQuery.Type == enum_QueryType[_]
    input.Body.ResourceQuery.Query == STRING
    input.Body.Tags.STRING == STRING
    input.Body.Configuration[_].Type == STRING
    input.Body.Configuration[_].Parameters[_].Name == STRING
    input.Body.Configuration[_].Parameters[_].Values[_] == STRING
    input.Body.Criticality == INTEGER
    input.Body.Owner == STRING
    input.Body.DisplayName == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DeleteGroup

valid {
    input.Body.GroupName == STRING
    input.Body.Group == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetAccountSettings

valid {
    input.Body.GroupName == STRING
    input.Body.Group == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetGroup

valid {
    input.Body.GroupName == STRING
    input.Body.Group == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetGroupConfiguration

valid {
    input.Body.Group == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetGroupQuery

valid {
    input.Body.GroupName == STRING
    input.Body.Group == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetTagSyncTask

valid {
    input.Body.TaskArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetTags

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

GroupResources

valid {
    input.Body.Group == STRING
    input.Body.ResourceArns[_] == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListGroupResources

enum_ResourceFilterName := [ "resource-type" ]

valid {
    input.Body.GroupName == STRING
    input.Body.Group == STRING
    input.Body.Filters[_].Name == enum_ResourceFilterName[_]
    input.Body.Filters[_].Values[_] == STRING
    input.Body.MaxResults == INTEGER
    input.Body.NextToken == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListGroupingStatuses

enum_ListGroupingStatusesFilterName := [ "status", "resource-arn" ]

valid {
    input.Body.Group == STRING
    input.Body.MaxResults == INTEGER
    input.Body.Filters[_].Name == enum_ListGroupingStatusesFilterName[_]
    input.Body.Filters[_].Values[_] == STRING
    input.Body.NextToken == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListGroups

enum_GroupFilterName := [ "resource-type", "configuration-type", "owner", "display-name", "criticality" ]

valid {
    input.Body.Filters[_].Name == enum_GroupFilterName[_]
    input.Body.Filters[_].Values[_] == STRING
    input.Qs.maxResults == INTEGER
    input.Qs.nextToken == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListTagSyncTasks

valid {
    input.Body.Filters[_].GroupArn == STRING
    input.Body.Filters[_].GroupName == STRING
    input.Body.MaxResults == INTEGER
    input.Body.NextToken == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

PutGroupConfiguration

valid {
    input.Body.Group == STRING
    input.Body.Configuration[_].Type == STRING
    input.Body.Configuration[_].Parameters[_].Name == STRING
    input.Body.Configuration[_].Parameters[_].Values[_] == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

SearchResources

enum_QueryType := [ "TAG_FILTERS_1_0", "CLOUDFORMATION_STACK_1_0" ]

valid {
    input.Body.ResourceQuery.Type == enum_QueryType[_]
    input.Body.ResourceQuery.Query == STRING
    input.Body.MaxResults == INTEGER
    input.Body.NextToken == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

StartTagSyncTask

valid {
    input.Body.Group == STRING
    input.Body.TagKey == STRING
    input.Body.TagValue == STRING
    input.Body.RoleArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

Tag

valid {
    input.Body.Tags.STRING == STRING
    input.ReqMap.Arn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UngroupResources

valid {
    input.Body.Group == STRING
    input.Body.ResourceArns[_] == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

Untag

valid {
    input.Body.Keys[_] == STRING
    input.ReqMap.Arn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UpdateAccountSettings

enum_GroupLifecycleEventsDesiredStatus := [ "ACTIVE", "INACTIVE" ]

valid {
    input.Body.GroupLifecycleEventsDesiredStatus == enum_GroupLifecycleEventsDesiredStatus[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UpdateGroup

valid {
    input.Body.GroupName == STRING
    input.Body.Group == STRING
    input.Body.Description == STRING
    input.Body.Criticality == INTEGER
    input.Body.Owner == STRING
    input.Body.DisplayName == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UpdateGroupQuery

enum_QueryType := [ "TAG_FILTERS_1_0", "CLOUDFORMATION_STACK_1_0" ]

valid {
    input.Body.GroupName == STRING
    input.Body.Group == STRING
    input.Body.ResourceQuery.Type == enum_QueryType[_]
    input.Body.ResourceQuery.Query == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}