APPLICATION-INSIGHTS

AddWorkload

enum_Tier := [ "CUSTOM", "DEFAULT", "DOT_NET_CORE", "DOT_NET_WORKER", "DOT_NET_WEB_TIER", "DOT_NET_WEB", "SQL_SERVER", "SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP", "MYSQL", "POSTGRESQL", "JAVA_JMX", "ORACLE", "SAP_HANA_MULTI_NODE", "SAP_HANA_SINGLE_NODE", "SAP_HANA_HIGH_AVAILABILITY", "SQL_SERVER_FAILOVER_CLUSTER_INSTANCE", "SHAREPOINT", "ACTIVE_DIRECTORY", "SAP_NETWEAVER_STANDARD", "SAP_NETWEAVER_DISTRIBUTED", "SAP_NETWEAVER_HIGH_AVAILABILITY" ]

valid {
    input.Body.ResourceGroupName == STRING
    input.Body.ComponentName == STRING
    input.Body.WorkloadConfiguration.WorkloadName == STRING
    input.Body.WorkloadConfiguration.Tier == enum_Tier[_]
    input.Body.WorkloadConfiguration.Configuration == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateApplication

enum_GroupingType := [ "ACCOUNT_BASED" ]

valid {
    input.Body.ResourceGroupName == STRING
    input.Body.OpsCenterEnabled == BOOLEAN
    input.Body.CWEMonitorEnabled == BOOLEAN
    input.Body.OpsItemSNSTopicArn == STRING
    input.Body.Tags[_].Key == STRING
    input.Body.Tags[_].Value == STRING
    input.Body.AutoConfigEnabled == BOOLEAN
    input.Body.AutoCreate == BOOLEAN
    input.Body.GroupingType == enum_GroupingType[_]
    input.Body.AttachMissingPermission == BOOLEAN
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateComponent

valid {
    input.Body.ResourceGroupName == STRING
    input.Body.ComponentName == STRING
    input.Body.ResourceList[_] == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateLogPattern

valid {
    input.Body.ResourceGroupName == STRING
    input.Body.PatternSetName == STRING
    input.Body.PatternName == STRING
    input.Body.Pattern == STRING
    input.Body.Rank == INTEGER
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DeleteApplication

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

DeleteComponent

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

DeleteLogPattern

valid {
    input.Body.ResourceGroupName == STRING
    input.Body.PatternSetName == STRING
    input.Body.PatternName == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DescribeApplication

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

DescribeComponent

valid {
    input.Body.ResourceGroupName == STRING
    input.Body.ComponentName == STRING
    input.Body.AccountId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DescribeComponentConfiguration

valid {
    input.Body.ResourceGroupName == STRING
    input.Body.ComponentName == STRING
    input.Body.AccountId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DescribeComponentConfigurationRecommendation

enum_RecommendationType := [ "INFRA_ONLY", "WORKLOAD_ONLY", "ALL" ]
enum_Tier := [ "CUSTOM", "DEFAULT", "DOT_NET_CORE", "DOT_NET_WORKER", "DOT_NET_WEB_TIER", "DOT_NET_WEB", "SQL_SERVER", "SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP", "MYSQL", "POSTGRESQL", "JAVA_JMX", "ORACLE", "SAP_HANA_MULTI_NODE", "SAP_HANA_SINGLE_NODE", "SAP_HANA_HIGH_AVAILABILITY", "SQL_SERVER_FAILOVER_CLUSTER_INSTANCE", "SHAREPOINT", "ACTIVE_DIRECTORY", "SAP_NETWEAVER_STANDARD", "SAP_NETWEAVER_DISTRIBUTED", "SAP_NETWEAVER_HIGH_AVAILABILITY" ]

valid {
    input.Body.ResourceGroupName == STRING
    input.Body.ComponentName == STRING
    input.Body.Tier == enum_Tier[_]
    input.Body.WorkloadName == STRING
    input.Body.RecommendationType == enum_RecommendationType[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DescribeLogPattern

valid {
    input.Body.ResourceGroupName == STRING
    input.Body.PatternSetName == STRING
    input.Body.PatternName == STRING
    input.Body.AccountId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DescribeObservation

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

DescribeProblem

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

DescribeProblemObservations

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

DescribeWorkload

valid {
    input.Body.ResourceGroupName == STRING
    input.Body.ComponentName == STRING
    input.Body.WorkloadId == STRING
    input.Body.AccountId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListApplications

valid {
    input.Body.MaxResults == INTEGER
    input.Body.NextToken == STRING
    input.Body.AccountId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListComponents

valid {
    input.Body.ResourceGroupName == STRING
    input.Body.MaxResults == INTEGER
    input.Body.NextToken == STRING
    input.Body.AccountId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListConfigurationHistory

enum_ConfigurationEventStatus := [ "INFO", "WARN", "ERROR" ]

valid {
    input.Body.ResourceGroupName == STRING
    input.Body.StartTime == TIMESTAMP
    input.Body.EndTime == TIMESTAMP
    input.Body.EventStatus == enum_ConfigurationEventStatus[_]
    input.Body.MaxResults == INTEGER
    input.Body.NextToken == STRING
    input.Body.AccountId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListLogPatternSets

valid {
    input.Body.ResourceGroupName == STRING
    input.Body.MaxResults == INTEGER
    input.Body.NextToken == STRING
    input.Body.AccountId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListLogPatterns

valid {
    input.Body.ResourceGroupName == STRING
    input.Body.PatternSetName == STRING
    input.Body.MaxResults == INTEGER
    input.Body.NextToken == STRING
    input.Body.AccountId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListProblems

enum_Visibility := [ "IGNORED", "VISIBLE" ]

valid {
    input.Body.AccountId == STRING
    input.Body.ResourceGroupName == STRING
    input.Body.StartTime == TIMESTAMP
    input.Body.EndTime == TIMESTAMP
    input.Body.MaxResults == INTEGER
    input.Body.NextToken == STRING
    input.Body.ComponentName == STRING
    input.Body.Visibility == enum_Visibility[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListTagsForResource

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

ListWorkloads

valid {
    input.Body.ResourceGroupName == STRING
    input.Body.ComponentName == STRING
    input.Body.MaxResults == INTEGER
    input.Body.NextToken == STRING
    input.Body.AccountId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

RemoveWorkload

valid {
    input.Body.ResourceGroupName == STRING
    input.Body.ComponentName == STRING
    input.Body.WorkloadId == 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
}

UpdateApplication

valid {
    input.Body.ResourceGroupName == STRING
    input.Body.OpsCenterEnabled == BOOLEAN
    input.Body.CWEMonitorEnabled == BOOLEAN
    input.Body.OpsItemSNSTopicArn == STRING
    input.Body.RemoveSNSTopic == BOOLEAN
    input.Body.AutoConfigEnabled == BOOLEAN
    input.Body.AttachMissingPermission == BOOLEAN
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UpdateComponent

valid {
    input.Body.ResourceGroupName == STRING
    input.Body.ComponentName == STRING
    input.Body.NewComponentName == STRING
    input.Body.ResourceList[_] == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UpdateComponentConfiguration

enum_Tier := [ "CUSTOM", "DEFAULT", "DOT_NET_CORE", "DOT_NET_WORKER", "DOT_NET_WEB_TIER", "DOT_NET_WEB", "SQL_SERVER", "SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP", "MYSQL", "POSTGRESQL", "JAVA_JMX", "ORACLE", "SAP_HANA_MULTI_NODE", "SAP_HANA_SINGLE_NODE", "SAP_HANA_HIGH_AVAILABILITY", "SQL_SERVER_FAILOVER_CLUSTER_INSTANCE", "SHAREPOINT", "ACTIVE_DIRECTORY", "SAP_NETWEAVER_STANDARD", "SAP_NETWEAVER_DISTRIBUTED", "SAP_NETWEAVER_HIGH_AVAILABILITY" ]

valid {
    input.Body.ResourceGroupName == STRING
    input.Body.ComponentName == STRING
    input.Body.Monitor == BOOLEAN
    input.Body.Tier == enum_Tier[_]
    input.Body.ComponentConfiguration == STRING
    input.Body.AutoConfigEnabled == BOOLEAN
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UpdateLogPattern

valid {
    input.Body.ResourceGroupName == STRING
    input.Body.PatternSetName == STRING
    input.Body.PatternName == STRING
    input.Body.Pattern == STRING
    input.Body.Rank == INTEGER
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UpdateProblem

enum_UpdateStatus := [ "RESOLVED" ]
enum_Visibility := [ "IGNORED", "VISIBLE" ]

valid {
    input.Body.ProblemId == STRING
    input.Body.UpdateStatus == enum_UpdateStatus[_]
    input.Body.Visibility == enum_Visibility[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UpdateWorkload

enum_Tier := [ "CUSTOM", "DEFAULT", "DOT_NET_CORE", "DOT_NET_WORKER", "DOT_NET_WEB_TIER", "DOT_NET_WEB", "SQL_SERVER", "SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP", "MYSQL", "POSTGRESQL", "JAVA_JMX", "ORACLE", "SAP_HANA_MULTI_NODE", "SAP_HANA_SINGLE_NODE", "SAP_HANA_HIGH_AVAILABILITY", "SQL_SERVER_FAILOVER_CLUSTER_INSTANCE", "SHAREPOINT", "ACTIVE_DIRECTORY", "SAP_NETWEAVER_STANDARD", "SAP_NETWEAVER_DISTRIBUTED", "SAP_NETWEAVER_HIGH_AVAILABILITY" ]

valid {
    input.Body.ResourceGroupName == STRING
    input.Body.ComponentName == STRING
    input.Body.WorkloadId == STRING
    input.Body.WorkloadConfiguration.WorkloadName == STRING
    input.Body.WorkloadConfiguration.Tier == enum_Tier[_]
    input.Body.WorkloadConfiguration.Configuration == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}