Skip to content

Commit

Permalink
Update API model
Browse files Browse the repository at this point in the history
  • Loading branch information
AWS SDK for Go v2 automation user committed Jan 9, 2025
1 parent ebb7c02 commit 9017824
Show file tree
Hide file tree
Showing 3 changed files with 161 additions and 11 deletions.
16 changes: 14 additions & 2 deletions codegen/sdk-codegen/aws-models/codebuild.json
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,12 @@
"traits": {
"smithy.api#documentation": "<p>An array of strings that specify the compute types that are allowed for the batch\n build. See <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html\">Build environment\n compute types</a> in the <i>CodeBuild User Guide</i> for these values.\n </p>"
}
},
"fleetsAllowed": {
"target": "com.amazonaws.codebuild#FleetsAllowed",
"traits": {
"smithy.api#documentation": "<p>An array of strings that specify the fleets that are allowed\n for the batch build. See <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/fleets.html\">Run builds on reserved capacity fleets</a> in the <i>CodeBuild User Guide</i> \n for more information. </p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -4626,6 +4632,12 @@
}
}
},
"com.amazonaws.codebuild#FleetsAllowed": {
"type": "list",
"member": {
"target": "com.amazonaws.codebuild#NonEmptyString"
}
},
"com.amazonaws.codebuild#GetReportGroupTrend": {
"type": "operation",
"input": {
Expand Down Expand Up @@ -6736,7 +6748,7 @@
"reportBuildStatus": {
"target": "com.amazonaws.codebuild#WrapperBoolean",
"traits": {
"smithy.api#documentation": "<p> 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 <code>invalidInputException</code> is thrown. </p>\n <p>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 <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/access-tokens.html\">Source provider access</a> in the <i>CodeBuild User Guide</i>.</p>\n <p>The status of a build triggered by a webhook is always reported to your source\n provider. </p>\n <p>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.</p>"
"smithy.api#documentation": "<p> 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 <code>invalidInputException</code> is thrown. </p>\n <p>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 <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/access-tokens.html\">Source provider access</a> in the <i>CodeBuild User Guide</i>.</p>\n <p>The status of a build triggered by a webhook is always reported to your source\n provider. </p>\n <p>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.</p>"
}
},
"buildStatusConfig": {
Expand Down Expand Up @@ -8334,7 +8346,7 @@
"reportBuildStatusOverride": {
"target": "com.amazonaws.codebuild#WrapperBoolean",
"traits": {
"smithy.api#documentation": "<p> 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 <code>invalidInputException</code> is thrown. </p>\n <p>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 <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/access-tokens.html\">Source provider access</a> in the <i>CodeBuild User Guide</i>.</p>\n <note>\n <p> The status of a build triggered by a webhook is always reported to your source\n provider. </p>\n </note>"
"smithy.api#documentation": "<p> 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 <code>invalidInputException</code> is thrown. </p>\n <p>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 <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/access-tokens.html\">Source provider access</a> in the <i>CodeBuild User Guide</i>.</p>\n <note>\n <p> The status of a build triggered by a webhook is always reported to your source\n provider. </p>\n </note>"
}
},
"buildStatusConfigOverride": {
Expand Down
127 changes: 121 additions & 6 deletions codegen/sdk-codegen/aws-models/compute-optimizer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -128,32 +162,56 @@
"target": "com.amazonaws.computeoptimizer#DesiredCapacity",
"traits": {
"smithy.api#default": 0,
"smithy.api#documentation": "<p>The desired capacity, or number of instances, for the Auto Scaling group.</p>"
"smithy.api#documentation": "<p>The desired capacity, or number of instances, for the EC2 Auto Scaling group.</p>"
}
},
"minSize": {
"target": "com.amazonaws.computeoptimizer#MinSize",
"traits": {
"smithy.api#default": 0,
"smithy.api#documentation": "<p>The minimum size, or minimum number of instances, for the Auto Scaling\n group.</p>"
"smithy.api#documentation": "<p>The minimum size, or minimum number of instances, for the EC2 Auto Scaling\n group.</p>"
}
},
"maxSize": {
"target": "com.amazonaws.computeoptimizer#MaxSize",
"traits": {
"smithy.api#default": 0,
"smithy.api#documentation": "<p>The maximum size, or maximum number of instances, for the Auto Scaling\n group.</p>"
"smithy.api#documentation": "<p>The maximum size, or maximum number of instances, for the EC2 Auto Scaling\n group.</p>"
}
},
"instanceType": {
"target": "com.amazonaws.computeoptimizer#InstanceType",
"target": "com.amazonaws.computeoptimizer#NullableInstanceType",
"traits": {
"smithy.api#documentation": "<p>The instance type for the EC2 Auto Scaling group.</p>"
}
},
"allocationStrategy": {
"target": "com.amazonaws.computeoptimizer#AllocationStrategy",
"traits": {
"smithy.api#documentation": "<p>\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 </p>"
}
},
"estimatedInstanceHourReductionPercentage": {
"target": "com.amazonaws.computeoptimizer#NullableEstimatedInstanceHourReductionPercentage",
"traits": {
"smithy.api#documentation": "<p>\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 </p>"
}
},
"type": {
"target": "com.amazonaws.computeoptimizer#AsgType",
"traits": {
"smithy.api#documentation": "<p>\n Describes whether the EC2 Auto Scaling group has a single instance type or a mixed instance type configuration.\n </p>"
}
},
"mixedInstanceTypes": {
"target": "com.amazonaws.computeoptimizer#MixedInstanceTypes",
"traits": {
"smithy.api#documentation": "<p>The instance type for the Auto Scaling group.</p>"
"smithy.api#documentation": "<p>\n List the instance types within an EC2 Auto Scaling group that has mixed instance types.\n </p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>Describes the configuration of an Auto Scaling group.</p>"
"smithy.api#documentation": "<p>Describes the configuration of an EC2 Auto Scaling group.</p>"
}
},
"com.amazonaws.computeoptimizer#AutoScalingGroupEstimatedMonthlySavings": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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"
},
Expand Down
Loading

0 comments on commit 9017824

Please sign in to comment.