From 90178248e923ae9c90df9b592e6392878c07a7f4 Mon Sep 17 00:00:00 2001 From: AWS SDK for Go v2 automation user Date: Thu, 9 Jan 2025 19:03:51 +0000 Subject: [PATCH] Update API model --- codegen/sdk-codegen/aws-models/codebuild.json | 16 ++- .../aws-models/compute-optimizer.json | 127 +++++++++++++++++- codegen/sdk-codegen/aws-models/fms.json | 29 +++- 3 files changed, 161 insertions(+), 11 deletions(-) diff --git a/codegen/sdk-codegen/aws-models/codebuild.json b/codegen/sdk-codegen/aws-models/codebuild.json index 910db18d583..b0c1b09d974 100644 --- a/codegen/sdk-codegen/aws-models/codebuild.json +++ b/codegen/sdk-codegen/aws-models/codebuild.json @@ -560,6 +560,12 @@ "traits": { "smithy.api#documentation": "

An array of strings that specify the compute types that are allowed for the batch\n build. See Build environment\n compute types in the CodeBuild User Guide for these values.\n

" } + }, + "fleetsAllowed": { + "target": "com.amazonaws.codebuild#FleetsAllowed", + "traits": { + "smithy.api#documentation": "

An array of strings that specify the fleets that are allowed\n for the batch build. See Run builds on reserved capacity fleets in the CodeBuild User Guide \n for more information.

" + } } }, "traits": { @@ -4626,6 +4632,12 @@ } } }, + "com.amazonaws.codebuild#FleetsAllowed": { + "type": "list", + "member": { + "target": "com.amazonaws.codebuild#NonEmptyString" + } + }, "com.amazonaws.codebuild#GetReportGroupTrend": { "type": "operation", "input": { @@ -6736,7 +6748,7 @@ "reportBuildStatus": { "target": "com.amazonaws.codebuild#WrapperBoolean", "traits": { - "smithy.api#documentation": "

Set to true to report the status of a build's start and finish to your source\n provider. This option is valid only when your source provider is GitHub, GitHub\n Enterprise, GitLab, GitLab Self Managed, or Bitbucket. If this is set and you use a different source provider, an\n invalidInputException is thrown.

\n

To be able to report the build status to the source provider, the user associated with the source provider must\nhave write access to the repo. If the user does not have write access, the build status cannot be updated. For more information, see Source provider access in the CodeBuild User Guide.

\n

The status of a build triggered by a webhook is always reported to your source\n provider.

\n

If your project's builds are triggered by a webhook, you must push a\n new commit to the repo for a change to this property to take\n effect.

" + "smithy.api#documentation": "

Set to true to report the status of a build's start and finish to your source\n provider. This option is valid only when your source provider is GitHub, GitHub\n Enterprise, GitLab, GitLab Self Managed, GitLab, GitLab Self Managed, or Bitbucket. If this is set and you use a different source provider, an\n invalidInputException is thrown.

\n

To be able to report the build status to the source provider, the user associated with the source provider must\nhave write access to the repo. If the user does not have write access, the build status cannot be updated. For more information, see Source provider access in the CodeBuild User Guide.

\n

The status of a build triggered by a webhook is always reported to your source\n provider.

\n

If your project's builds are triggered by a webhook, you must push a\n new commit to the repo for a change to this property to take\n effect.

" } }, "buildStatusConfig": { @@ -8334,7 +8346,7 @@ "reportBuildStatusOverride": { "target": "com.amazonaws.codebuild#WrapperBoolean", "traits": { - "smithy.api#documentation": "

Set to true to report to your source provider the status of a build's start and\n completion. If you use this option with a source provider other than GitHub, GitHub\n Enterprise, or Bitbucket, an invalidInputException is thrown.

\n

To be able to report the build status to the source provider, the user associated with the source provider must\nhave write access to the repo. If the user does not have write access, the build status cannot be updated. For more information, see Source provider access in the CodeBuild User Guide.

\n \n

The status of a build triggered by a webhook is always reported to your source\n provider.

\n
" + "smithy.api#documentation": "

Set to true to report to your source provider the status of a build's start and\n completion. If you use this option with a source provider other than GitHub, GitHub\n Enterprise, GitLab, GitLab Self Managed, or Bitbucket, an invalidInputException is thrown.

\n

To be able to report the build status to the source provider, the user associated with the source provider must\nhave write access to the repo. If the user does not have write access, the build status cannot be updated. For more information, see Source provider access in the CodeBuild User Guide.

\n \n

The status of a build triggered by a webhook is always reported to your source\n provider.

\n
" } }, "buildStatusConfigOverride": { diff --git a/codegen/sdk-codegen/aws-models/compute-optimizer.json b/codegen/sdk-codegen/aws-models/compute-optimizer.json index 468b2e52085..14a5a488694 100644 --- a/codegen/sdk-codegen/aws-models/compute-optimizer.json +++ b/codegen/sdk-codegen/aws-models/compute-optimizer.json @@ -95,6 +95,40 @@ "smithy.api#default": 0 } }, + "com.amazonaws.computeoptimizer#AllocationStrategy": { + "type": "enum", + "members": { + "PRIORITIZED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Prioritized" + } + }, + "LOWEST_PRICE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "LowestPrice" + } + } + } + }, + "com.amazonaws.computeoptimizer#AsgType": { + "type": "enum", + "members": { + "SINGLE_INSTANCE_TYPE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SingleInstanceType" + } + }, + "MIXED_INSTANCE_TYPE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "MixedInstanceTypes" + } + } + } + }, "com.amazonaws.computeoptimizer#AutoScalingConfiguration": { "type": "enum", "members": { @@ -128,32 +162,56 @@ "target": "com.amazonaws.computeoptimizer#DesiredCapacity", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

The desired capacity, or number of instances, for the Auto Scaling group.

" + "smithy.api#documentation": "

The desired capacity, or number of instances, for the EC2 Auto Scaling group.

" } }, "minSize": { "target": "com.amazonaws.computeoptimizer#MinSize", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

The minimum size, or minimum number of instances, for the Auto Scaling\n group.

" + "smithy.api#documentation": "

The minimum size, or minimum number of instances, for the EC2 Auto Scaling\n group.

" } }, "maxSize": { "target": "com.amazonaws.computeoptimizer#MaxSize", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

The maximum size, or maximum number of instances, for the Auto Scaling\n group.

" + "smithy.api#documentation": "

The maximum size, or maximum number of instances, for the EC2 Auto Scaling\n group.

" } }, "instanceType": { - "target": "com.amazonaws.computeoptimizer#InstanceType", + "target": "com.amazonaws.computeoptimizer#NullableInstanceType", + "traits": { + "smithy.api#documentation": "

The instance type for the EC2 Auto Scaling group.

" + } + }, + "allocationStrategy": { + "target": "com.amazonaws.computeoptimizer#AllocationStrategy", + "traits": { + "smithy.api#documentation": "

\n Describes the allocation strategy that the EC2 Auto Scaling group uses. This field is only available for EC2 Auto Scaling groups with mixed instance types.\n

" + } + }, + "estimatedInstanceHourReductionPercentage": { + "target": "com.amazonaws.computeoptimizer#NullableEstimatedInstanceHourReductionPercentage", + "traits": { + "smithy.api#documentation": "

\n Describes the projected percentage reduction in instance hours after adopting the recommended configuration. This field is only available for EC2 Auto Scaling groups with scaling policies.\n

" + } + }, + "type": { + "target": "com.amazonaws.computeoptimizer#AsgType", + "traits": { + "smithy.api#documentation": "

\n Describes whether the EC2 Auto Scaling group has a single instance type or a mixed instance type configuration.\n

" + } + }, + "mixedInstanceTypes": { + "target": "com.amazonaws.computeoptimizer#MixedInstanceTypes", "traits": { - "smithy.api#documentation": "

The instance type for the Auto Scaling group.

" + "smithy.api#documentation": "

\n List the instance types within an EC2 Auto Scaling group that has mixed instance types.\n

" } } }, "traits": { - "smithy.api#documentation": "

Describes the configuration of an Auto Scaling group.

" + "smithy.api#documentation": "

Describes the configuration of an EC2 Auto Scaling group.

" } }, "com.amazonaws.computeoptimizer#AutoScalingGroupEstimatedMonthlySavings": { @@ -3719,6 +3777,24 @@ "smithy.api#enumValue": "CurrentConfigurationMaxSize" } }, + "CURRENT_CONFIGURATION_ALLOCATION_STRATEGY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CurrentConfigurationAllocationStrategy" + } + }, + "CURRENT_CONFIGURATION_MIXED_INSTANCE_TYPES": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CurrentConfigurationMixedInstanceTypes" + } + }, + "CURRENT_CONFIGURATION_TYPE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CurrentConfigurationType" + } + }, "CURRENT_ON_DEMAND_PRICE": { "target": "smithy.api#Unit", "traits": { @@ -3785,6 +3861,30 @@ "smithy.api#enumValue": "RecommendationOptionsConfigurationMaxSize" } }, + "RECOMMENDATION_OPTIONS_CONFIGURATION_ESTIMATED_INSTANCE_HOUR_REDUCTION_PERCENTAGE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "RecommendationOptionsConfigurationEstimatedInstanceHourReductionPercentage" + } + }, + "RECOMMENDATION_OPTIONS_CONFIGURATION_ALLOCATION_STRATEGY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "RecommendationOptionsConfigurationAllocationStrategy" + } + }, + "RECOMMENDATION_OPTIONS_CONFIGURATION_MIXED_INSTANCE_TYPES": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "RecommendationOptionsConfigurationMixedInstanceTypes" + } + }, + "RECOMMENDATION_OPTIONS_CONFIGURATION_TYPE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "RecommendationOptionsConfigurationType" + } + }, "RECOMMENDATION_OPTIONS_PROJECTED_UTILIZATION_METRICS_CPU_MAXIMUM": { "target": "smithy.api#Unit", "traits": { @@ -9926,15 +10026,30 @@ "smithy.api#httpError": 403 } }, + "com.amazonaws.computeoptimizer#MixedInstanceType": { + "type": "string" + }, + "com.amazonaws.computeoptimizer#MixedInstanceTypes": { + "type": "list", + "member": { + "target": "com.amazonaws.computeoptimizer#MixedInstanceType" + } + }, "com.amazonaws.computeoptimizer#NextToken": { "type": "string" }, "com.amazonaws.computeoptimizer#NullableCpu": { "type": "integer" }, + "com.amazonaws.computeoptimizer#NullableEstimatedInstanceHourReductionPercentage": { + "type": "double" + }, "com.amazonaws.computeoptimizer#NullableIOPS": { "type": "integer" }, + "com.amazonaws.computeoptimizer#NullableInstanceType": { + "type": "string" + }, "com.amazonaws.computeoptimizer#NullableMaxAllocatedStorage": { "type": "integer" }, diff --git a/codegen/sdk-codegen/aws-models/fms.json b/codegen/sdk-codegen/aws-models/fms.json index 2cb7332f6c5..7158767a1ff 100644 --- a/codegen/sdk-codegen/aws-models/fms.json +++ b/codegen/sdk-codegen/aws-models/fms.json @@ -6153,6 +6153,12 @@ "traits": { "smithy.api#documentation": "

Indicates whether the policy is in or out of an admin's policy or Region scope.

\n " } + }, + "ResourceTagLogicalOperator": { + "target": "com.amazonaws.fms#ResourceTagLogicalOperator", + "traits": { + "smithy.api#documentation": "

Specifies whether to combine multiple resource tags with AND, \n so that a resource must have all tags to be included or excluded, or OR, \n so that a resource must have at least one tag.

\n

Default: AND\n

" + } } }, "traits": { @@ -7407,7 +7413,7 @@ } }, "traits": { - "smithy.api#documentation": "

The resource tags that Firewall Manager uses to determine if a particular resource\n should be included or excluded from the Firewall Manager policy. Tags enable you to\n categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or\n environment. Each tag consists of a key and an optional value. Firewall Manager combines the\n tags with \"AND\" so that, if you add more than one tag to a policy scope, a resource must have\n all the specified tags to be included or excluded. For more information, see\n Working with Tag Editor.

\n

Every resource tag must have a string value, either a non-empty string or an empty string. If you don't \n provide a value for a resource tag, Firewall Manager saves the value as an empty string: \"\". When Firewall Manager compares tags, it only \n matches two tags if they have the same key and the same value. A tag with an empty string value only \n matches with tags that also have an empty string value.

" + "smithy.api#documentation": "

The resource tags that Firewall Manager uses to determine if a particular resource\n should be included or excluded from the Firewall Manager policy. Tags enable you to\n categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or\n environment. Each tag consists of a key and an optional value. If you add more than one tag to a policy, you can \n specify whether to combine them using the logical AND operator or the logical OR operator. For more information, see\n Working with Tag Editor.

\n

Every resource tag must have a string value, either a non-empty string or an empty string. If you don't \n provide a value for a resource tag, Firewall Manager saves the value as an empty string: \"\". When Firewall Manager compares tags, it only \n matches two tags if they have the same key and the same value. A tag with an empty string value only \n matches with tags that also have an empty string value.

" } }, "com.amazonaws.fms#ResourceTagKey": { @@ -7417,7 +7423,24 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" + "smithy.api#pattern": "^([\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@*\\\\]*)$" + } + }, + "com.amazonaws.fms#ResourceTagLogicalOperator": { + "type": "enum", + "members": { + "AND": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AND" + } + }, + "OR": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "OR" + } + } } }, "com.amazonaws.fms#ResourceTagValue": { @@ -7427,7 +7450,7 @@ "min": 0, "max": 256 }, - "smithy.api#pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" + "smithy.api#pattern": "^([\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@*\\\\]*)$" } }, "com.amazonaws.fms#ResourceTags": {