diff --git a/CHANGELOG.md b/CHANGELOG.md index 98d17b6aee8..94340589bf7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,14 @@ +Release v1.53.14 (2024-05-31) +=== + +### Service Client Updates +* `service/codebuild`: Updates service documentation + * AWS CodeBuild now supports Self-hosted GitHub Actions runners for Github Enterprise +* `service/codeguru-security`: Updates service API and documentation +* `service/elasticache`: Updates service API and documentation + * Update to attributes of TestFailover and minor revisions. +* `service/launch-wizard`: Updates service API and documentation + Release v1.53.13 (2024-05-30) === diff --git a/aws/version.go b/aws/version.go index 1ca16ab1205..60b9f8636f6 100644 --- a/aws/version.go +++ b/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.53.13" +const SDKVersion = "1.53.14" diff --git a/models/apis/codebuild/2016-10-06/docs-2.json b/models/apis/codebuild/2016-10-06/docs-2.json index 0c3e9d0205a..7f419bb7a87 100644 --- a/models/apis/codebuild/2016-10-06/docs-2.json +++ b/models/apis/codebuild/2016-10-06/docs-2.json @@ -2047,7 +2047,7 @@ "WebhookFilterType": { "base": null, "refs": { - "WebhookFilter$type": "

The type of webhook filter. There are nine webhook filter types: EVENT, ACTOR_ACCOUNT_ID, HEAD_REF, BASE_REF, FILE_PATH, COMMIT_MESSAGE, TAG_NAME, RELEASE_NAME, and WORKFLOW_NAME.

" + "WebhookFilter$type": "

The type of webhook filter. There are nine webhook filter types: EVENT, ACTOR_ACCOUNT_ID, HEAD_REF, BASE_REF, FILE_PATH, COMMIT_MESSAGE, TAG_NAME, RELEASE_NAME, and WORKFLOW_NAME.

" } }, "WrapperBoolean": { @@ -2057,7 +2057,7 @@ "BuildArtifacts$encryptionDisabled": "

Information that tells you if encryption for build artifacts is disabled.

", "BuildBatch$debugSessionEnabled": "

Specifies if session debugging is enabled for this batch build. For more information, see Viewing a running build in Session Manager. Batch session debugging is not supported for matrix batch builds.

", "CreateProjectInput$badgeEnabled": "

Set this to true to generate a publicly accessible URL for your project's build badge.

", - "CreateWebhookInput$manualCreation": "

If manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returns payloadUrl and secret values for the webhook. The payloadUrl and secret values in the output can be used to manually create a webhook within GitHub.

manualCreation is only available for GitHub webhooks.

", + "CreateWebhookInput$manualCreation": "

If manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returns payloadUrl and secret values for the webhook. The payloadUrl and secret values in the output can be used to manually create a webhook within GitHub.

manualCreation is only available for GitHub webhooks.

", "DebugSession$sessionEnabled": "

Specifies if session debugging is enabled for this build.

", "GitSubmodulesConfig$fetchSubmodules": "

Set to true to fetch Git submodules for your CodeBuild build project.

", "ImportSourceCredentialsInput$shouldOverwrite": "

Set to false to prevent overwriting the repository source credentials. Set to true to overwrite the repository source credentials. The default value is true.

", diff --git a/models/apis/codeguru-security/2018-05-10/api-2.json b/models/apis/codeguru-security/2018-05-10/api-2.json index e0967279776..9686b69f54b 100644 --- a/models/apis/codeguru-security/2018-05-10/api-2.json +++ b/models/apis/codeguru-security/2018-05-10/api-2.json @@ -5,6 +5,7 @@ "endpointPrefix":"codeguru-security", "jsonVersion":"1.1", "protocol":"rest-json", + "protocols":["rest-json"], "serviceFullName":"Amazon CodeGuru Security", "serviceId":"CodeGuru Security", "signatureVersion":"v4", @@ -125,6 +126,7 @@ {"shape":"InternalServerException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, {"shape":"AccessDeniedException"} ] }, @@ -434,6 +436,10 @@ "INVALID_SCAN_NAME" ] }, + "ErrorMessage":{ + "type":"string", + "min":1 + }, "FilePath":{ "type":"structure", "members":{ @@ -541,7 +547,7 @@ "GetFindingsRequestMaxResultsInteger":{ "type":"integer", "box":true, - "max":100, + "max":1000, "min":1 }, "GetFindingsResponse":{ @@ -596,6 +602,7 @@ "members":{ "analysisType":{"shape":"AnalysisType"}, "createdAt":{"shape":"Timestamp"}, + "errorMessage":{"shape":"ErrorMessage"}, "numberOfRevisions":{"shape":"Long"}, "runId":{"shape":"Uuid"}, "scanName":{"shape":"ScanName"}, @@ -1058,7 +1065,11 @@ "members":{ "filePath":{"shape":"FilePath"}, "id":{"shape":"String"}, - "itemCount":{"shape":"Integer"}, + "itemCount":{ + "shape":"Integer", + "deprecated":true, + "deprecatedMessage":"This shape is not used." + }, "referenceUrls":{"shape":"ReferenceUrls"}, "relatedVulnerabilities":{"shape":"RelatedVulnerabilities"} } diff --git a/models/apis/codeguru-security/2018-05-10/docs-2.json b/models/apis/codeguru-security/2018-05-10/docs-2.json index 2d05bdf30c6..22e6fb5b0bf 100644 --- a/models/apis/codeguru-security/2018-05-10/docs-2.json +++ b/models/apis/codeguru-security/2018-05-10/docs-2.json @@ -2,19 +2,19 @@ "version": "2.0", "service": "

Amazon CodeGuru Security is in preview release and is subject to change.

This section provides documentation for the Amazon CodeGuru Security API operations. CodeGuru Security is a service that uses program analysis and machine learning to detect security policy violations and vulnerabilities, and recommends ways to address these security risks.

By proactively detecting and providing recommendations for addressing security risks, CodeGuru Security improves the overall security of your application code. For more information about CodeGuru Security, see the Amazon CodeGuru Security User Guide.

", "operations": { - "BatchGetFindings": "

Returns a list of all requested findings.

", - "CreateScan": "

Use to create a scan using code uploaded to an S3 bucket.

", - "CreateUploadUrl": "

Generates a pre-signed URL and request headers used to upload a code resource.

You can upload your code resource to the URL and add the request headers using any HTTP client.

", - "GetAccountConfiguration": "

Use to get account level configuration.

", + "BatchGetFindings": "

Returns a list of requested findings from standard scans.

", + "CreateScan": "

Use to create a scan using code uploaded to an Amazon S3 bucket.

", + "CreateUploadUrl": "

Generates a pre-signed URL, request headers used to upload a code resource, and code artifact identifier for the uploaded resource.

You can upload your code resource to the URL with the request headers using any HTTP client.

", + "GetAccountConfiguration": "

Use to get the encryption configuration for an account.

", "GetFindings": "

Returns a list of all findings generated by a particular scan.

", - "GetMetricsSummary": "

Returns top level metrics about an account from a specified date, including number of open findings, the categories with most findings, the scans with most open findings, and scans with most open critical findings.

", + "GetMetricsSummary": "

Returns a summary of metrics for an account from a specified date, including number of open findings, the categories with most findings, the scans with most open findings, and scans with most open critical findings.

", "GetScan": "

Returns details about a scan, including whether or not a scan has completed.

", "ListFindingsMetrics": "

Returns metrics about all findings in an account within a specified time range.

", - "ListScans": "

Returns a list of all the standard scans in an account. Does not return express scans.

", + "ListScans": "

Returns a list of all scans in an account. Does not return EXPRESS scans.

", "ListTagsForResource": "

Returns a list of all tags associated with a scan.

", "TagResource": "

Use to add one or more tags to an existing scan.

", "UntagResource": "

Use to remove one or more tags from an existing scan.

", - "UpdateAccountConfiguration": "

Use to update account-level configuration with an encryption key.

" + "UpdateAccountConfiguration": "

Use to update the encryption configuration for an account.

" }, "shapes": { "AccessDeniedException": { @@ -23,7 +23,7 @@ } }, "AccountFindingsMetric": { - "base": "

A summary of findings metrics in an account.

", + "base": "

A summary of findings metrics for an account on a specified date.

", "refs": { "FindingsMetricList$member": null } @@ -60,7 +60,7 @@ "CategoriesWithMostFindings": { "base": null, "refs": { - "MetricsSummary$categoriesWithMostFindings": "

A list of CategoryWithFindingNum objects for the top 5 finding categories with the most open findings in an account.

" + "MetricsSummary$categoriesWithMostFindings": "

A list of CategoryWithFindingNum objects for the top 5 finding categories with the most findings.

" } }, "CategoryWithFindingNum": { @@ -121,19 +121,19 @@ "Double": { "base": null, "refs": { - "FindingMetricsValuePerSeverity$critical": "

The severity of the finding is critical and should be addressed immediately.

", - "FindingMetricsValuePerSeverity$high": "

The severity of the finding is high and should be addressed as a near-term priority.

", - "FindingMetricsValuePerSeverity$info": "

The finding is related to quality or readability improvements and not considered actionable.

", - "FindingMetricsValuePerSeverity$low": "

The severity of the finding is low and does require action on its own.

", - "FindingMetricsValuePerSeverity$medium": "

The severity of the finding is medium and should be addressed as a mid-term priority.

" + "FindingMetricsValuePerSeverity$critical": "

A numeric value corresponding to a critical finding.

", + "FindingMetricsValuePerSeverity$high": "

A numeric value corresponding to a high severity finding.

", + "FindingMetricsValuePerSeverity$info": "

A numeric value corresponding to an informational finding.

", + "FindingMetricsValuePerSeverity$low": "

A numeric value corresponding to a low severity finding.

", + "FindingMetricsValuePerSeverity$medium": "

A numeric value corresponding to a medium severity finding.

" } }, "EncryptionConfig": { - "base": "

Information about account-level configuration.

", + "base": "

Information about the encryption configuration for an account. Required to call UpdateAccountConfiguration.

", "refs": { - "GetAccountConfigurationResponse$encryptionConfig": "

An EncryptionConfig object that contains the KMS key ARN to use for encryption. By default, CodeGuru Security uses an AWS-managed key for encryption. To specify your own key, call UpdateAccountConfiguration.

", - "UpdateAccountConfigurationRequest$encryptionConfig": "

The KMS key ARN you want to use for encryption. Defaults to service-side encryption if missing.

", - "UpdateAccountConfigurationResponse$encryptionConfig": "

An EncryptionConfig object that contains the KMS key ARN to use for encryption.

" + "GetAccountConfigurationResponse$encryptionConfig": "

An EncryptionConfig object that contains the KMS key ARN that is used for encryption. By default, CodeGuru Security uses an AWS-managed key for encryption. To specify your own key, call UpdateAccountConfiguration. If you do not specify a customer-managed key, returns empty.

", + "UpdateAccountConfigurationRequest$encryptionConfig": "

The customer-managed KMS key ARN you want to use for encryption. If not specified, CodeGuru Security will use an AWS-managed key for encryption. If you previously specified a customer-managed KMS key and want CodeGuru Security to use an AWS-managed key for encryption instead, pass nothing.

", + "UpdateAccountConfigurationResponse$encryptionConfig": "

An EncryptionConfig object that contains the KMS key ARN that is used for encryption. If you did not specify a customer-managed KMS key in the request, returns empty.

" } }, "ErrorCode": { @@ -142,6 +142,12 @@ "BatchGetFindingsError$errorCode": "

A code associated with the type of error.

" } }, + "ErrorMessage": { + "base": null, + "refs": { + "GetScanResponse$errorMessage": "

Details about the error that causes a scan to fail to be retrieved.

" + } + }, "FilePath": { "base": "

Information about the location of security vulnerabilities that Amazon CodeGuru Security detected in your code.

", "refs": { @@ -167,19 +173,19 @@ } }, "FindingMetricsValuePerSeverity": { - "base": "

The severity of the issue in the code that generated a finding.

", + "base": "

A numeric value corresponding to the severity of a finding, such as the number of open findings or the average time it takes to close findings of a given severity.

", "refs": { - "AccountFindingsMetric$closedFindings": "

The number of closed findings of each severity in an account on the specified date.

", - "AccountFindingsMetric$meanTimeToClose": "

The average time it takes to close findings of each severity in days.

", - "AccountFindingsMetric$newFindings": "

The number of new findings of each severity in account on the specified date.

", - "AccountFindingsMetric$openFindings": "

The number of open findings of each severity in an account as of the specified date.

", - "MetricsSummary$openFindings": "

The number of open findings of each severity in an account.

" + "AccountFindingsMetric$closedFindings": "

The number of closed findings of each severity on the specified date.

", + "AccountFindingsMetric$meanTimeToClose": "

The average time in days it takes to close findings of each severity as of a specified date.

", + "AccountFindingsMetric$newFindings": "

The number of new findings of each severity on the specified date.

", + "AccountFindingsMetric$openFindings": "

The number of open findings of each severity as of the specified date.

", + "MetricsSummary$openFindings": "

The number of open findings of each severity.

" } }, "Findings": { "base": null, "refs": { - "BatchGetFindingsResponse$findings": "

A list of all requested findings.

", + "BatchGetFindingsResponse$findings": "

A list of all findings which were successfully fetched.

", "GetFindingsResponse$findings": "

A list of findings generated by the specified scan.

" } }, @@ -207,7 +213,7 @@ "GetFindingsRequestMaxResultsInteger": { "base": null, "refs": { - "GetFindingsRequest$maxResults": "

The maximum number of results to return in the response. Use this parameter when paginating results. If additional results exist beyond the number you specify, the nextToken element is returned in the response. Use nextToken in a subsequent request to retrieve additional results.

" + "GetFindingsRequest$maxResults": "

The maximum number of results to return in the response. Use this parameter when paginating results. If additional results exist beyond the number you specify, the nextToken element is returned in the response. Use nextToken in a subsequent request to retrieve additional results. If not specified, returns 1000 results.

" } }, "GetFindingsResponse": { @@ -254,8 +260,8 @@ "CodeLine$number": "

The code line number.

", "FilePath$endLine": "

The last line number of the code snippet where the security vulnerability appears in your code.

", "FilePath$startLine": "

The first line number of the code snippet where the security vulnerability appears in your code.

", - "ScanNameWithFindingNum$findingNumber": "

The number of open findings generated by a scan.

", - "Vulnerability$itemCount": "

The number of times the vulnerability appears in your code.

" + "ScanNameWithFindingNum$findingNumber": "

The number of findings generated by a scan.

", + "Vulnerability$itemCount": "

The number of times the vulnerability appears in your code.

" } }, "InternalServerException": { @@ -266,7 +272,7 @@ "KmsKeyArn": { "base": null, "refs": { - "EncryptionConfig$kmsKeyArn": "

The KMS key ARN to use for encryption. This must be provided as a header when uploading your code resource.

" + "EncryptionConfig$kmsKeyArn": "

The KMS key ARN that is used for encryption. If an AWS-managed key is used for encryption, returns empty.

" } }, "ListFindingsMetricsRequest": { @@ -277,7 +283,7 @@ "ListFindingsMetricsRequestMaxResultsInteger": { "base": null, "refs": { - "ListFindingsMetricsRequest$maxResults": "

The maximum number of results to return in the response. Use this parameter when paginating results. If additional results exist beyond the number you specify, the nextToken element is returned in the response. Use nextToken in a subsequent request to retrieve additional results.

" + "ListFindingsMetricsRequest$maxResults": "

The maximum number of results to return in the response. Use this parameter when paginating results. If additional results exist beyond the number you specify, the nextToken element is returned in the response. Use nextToken in a subsequent request to retrieve additional results. If not specified, returns 1000 results.

" } }, "ListFindingsMetricsResponse": { @@ -293,7 +299,7 @@ "ListScansRequestMaxResultsInteger": { "base": null, "refs": { - "ListScansRequest$maxResults": "

The maximum number of results to return in the response. Use this parameter when paginating results. If additional results exist beyond the number you specify, the nextToken element is returned in the response. Use nextToken in a subsequent request to retrieve additional results.

" + "ListScansRequest$maxResults": "

The maximum number of results to return in the response. Use this parameter when paginating results. If additional results exist beyond the number you specify, the nextToken element is returned in the response. Use nextToken in a subsequent request to retrieve additional results. If not specified, returns 100 results.

" } }, "ListScansResponse": { @@ -318,7 +324,7 @@ } }, "MetricsSummary": { - "base": "

Information about summary metrics in an account.

", + "base": "

A summary of metrics for an account as of a specified date.

", "refs": { "GetMetricsSummaryResponse$metricsSummary": "

The summary metrics from the specified date.

" } @@ -365,15 +371,15 @@ } }, "Resource": { - "base": "

Information about a resource, such as an Amazon S3 bucket or AWS Lambda function, that contains a finding.

", + "base": "

Information about a resource that contains a finding.

", "refs": { "Finding$resource": "

The resource where Amazon CodeGuru Security detected a finding.

" } }, "ResourceId": { - "base": "

The identifier for a resource object that contains resources where a finding was detected.

", + "base": "

The identifier for a resource object that contains resources to scan. Specifying a codeArtifactId is required to create a scan.

", "refs": { - "CreateScanRequest$resourceId": "

The identifier for an input resource used to create a scan.

", + "CreateScanRequest$resourceId": "

The identifier for the resource object to be scanned.

", "CreateScanResponse$resourceId": "

The identifier for the resource object that contains resources that were scanned.

" } }, @@ -385,14 +391,14 @@ "S3Url": { "base": null, "refs": { - "CreateUploadUrlResponse$s3Url": "

A pre-signed S3 URL. You can upload the code file you want to scan and add the required requestHeaders using any HTTP client.

" + "CreateUploadUrlResponse$s3Url": "

A pre-signed S3 URL. You can upload the code file you want to scan with the required requestHeaders using any HTTP client.

" } }, "ScanName": { "base": null, "refs": { "BatchGetFindingsError$scanName": "

The name of the scan that generated the finding.

", - "CreateScanRequest$scanName": "

The unique name that CodeGuru Security uses to track revisions across multiple scans of the same resource. Only allowed for a STANDARD scan type. If not specified, it will be auto generated.

", + "CreateScanRequest$scanName": "

The unique name that CodeGuru Security uses to track revisions across multiple scans of the same resource. Only allowed for a STANDARD scan type.

", "CreateScanResponse$scanName": "

The name of the scan.

", "CreateUploadUrlRequest$scanName": "

The name of the scan that will use the uploaded resource. CodeGuru Security uses the unique scan name to track revisions across multiple scans of the same resource. Use this scanName when you call CreateScan on the code resource you upload to this URL.

", "GetFindingsRequest$scanName": "

The name of the scan you want to retrieve findings from.

", @@ -406,14 +412,14 @@ "refs": { "CreateScanResponse$scanNameArn": "

The ARN for the scan name.

", "GetScanResponse$scanNameArn": "

The ARN for the scan name.

", - "ListTagsForResourceRequest$resourceArn": "

The ARN of the ScanName object. You can retrieve this ARN by calling ListScans or GetScan.

", + "ListTagsForResourceRequest$resourceArn": "

The ARN of the ScanName object. You can retrieve this ARN by calling CreateScan, ListScans, or GetScan.

", "ScanSummary$scanNameArn": "

The ARN for the scan name.

", - "TagResourceRequest$resourceArn": "

The ARN of the ScanName object. You can retrieve this ARN by calling ListScans or GetScan.

", - "UntagResourceRequest$resourceArn": "

The ARN of the ScanName object. You can retrieve this ARN by calling ListScans or GetScan.

" + "TagResourceRequest$resourceArn": "

The ARN of the ScanName object. You can retrieve this ARN by calling CreateScan, ListScans, or GetScan.

", + "UntagResourceRequest$resourceArn": "

The ARN of the ScanName object. You can retrieve this ARN by calling CreateScan, ListScans, or GetScan.

" } }, "ScanNameWithFindingNum": { - "base": "

Information about a scan with open findings.

", + "base": "

Information about the number of findings generated by a scan.

", "refs": { "ScansWithMostOpenCriticalFindings$member": null, "ScansWithMostOpenFindings$member": null @@ -423,7 +429,7 @@ "base": null, "refs": { "CreateScanResponse$scanState": "

The current state of the scan. Returns either InProgress, Successful, or Failed.

", - "GetScanResponse$scanState": "

The current state of the scan. Pass either InProgress, Successful, or Failed.

", + "GetScanResponse$scanState": "

The current state of the scan. Returns either InProgress, Successful, or Failed.

", "ScanSummary$scanState": "

The state of the scan. A scan can be In Progress, Complete, or Failed.

" } }, @@ -448,19 +454,19 @@ "ScansWithMostOpenCriticalFindings": { "base": null, "refs": { - "MetricsSummary$scansWithMostOpenCriticalFindings": "

A list of ScanNameWithFindingNum objects for the top 3 scans with the most number of open findings in an account.

" + "MetricsSummary$scansWithMostOpenCriticalFindings": "

A list of ScanNameWithFindingNum objects for the top 3 scans with the most number of open critical findings.

" } }, "ScansWithMostOpenFindings": { "base": null, "refs": { - "MetricsSummary$scansWithMostOpenFindings": "

A list of ScanNameWithFindingNum objects for the top 3 scans with the most number of open critical findings in an account.

" + "MetricsSummary$scansWithMostOpenFindings": "

A list of ScanNameWithFindingNum objects for the top 3 scans with the most number of open findings.

" } }, "Severity": { "base": null, "refs": { - "Finding$severity": "

The severity of the finding.

" + "Finding$severity": "

The severity of the finding. Severity can be critical, high, medium, low, or informational. For information on severity levels, see Finding severity in the Amazon CodeGuru Security User Guide.

" } }, "Status": { @@ -491,7 +497,7 @@ "Finding$description": "

A description of the finding.

", "Finding$detectorId": "

The identifier for the detector that detected the finding in your code. A detector is a defined rule based on industry standards and AWS best practices.

", "Finding$detectorName": "

The name of the detector that identified the security vulnerability in your code.

", - "Finding$generatorId": "

The identifier for the component that generated a finding such as AWSCodeGuruSecurity or AWSInspector.

", + "Finding$generatorId": "

The identifier for the component that generated a finding such as AmazonCodeGuruSecurity.

", "Finding$id": "

The identifier for a finding.

", "Finding$ruleId": "

The identifier for the rule that generated the finding.

", "Finding$title": "

The title of the finding.

", @@ -504,14 +510,14 @@ "Recommendation$url": "

The URL address to the recommendation for remediating the finding.

", "ReferenceUrls$member": null, "RelatedVulnerabilities$member": null, - "Resource$id": "

The identifier for the resource.

", - "Resource$subResourceId": "

The identifier for a section of the resource, such as an AWS Lambda layer.

", + "Resource$id": "

The scanName of the scan that was run on the resource.

", + "Resource$subResourceId": "

The identifier for a section of the resource.

", "ResourceNotFoundException$errorCode": "

The identifier for the error.

", "ResourceNotFoundException$message": "

Description of the error.

", "ResourceNotFoundException$resourceId": "

The identifier for the resource that was not found.

", "ResourceNotFoundException$resourceType": "

The type of resource that was not found.

", "ScanNameWithFindingNum$scanName": "

The name of the scan.

", - "SuggestedFix$code": "

The suggested code to add to your file.

", + "SuggestedFix$code": "

The suggested code fix. If applicable, includes code patch to replace your source code.

", "SuggestedFix$description": "

A description of the suggested code fix and why it is being suggested.

", "ThrottlingException$errorCode": "

The identifier for the error.

", "ThrottlingException$message": "

Description of the error.

", @@ -581,14 +587,14 @@ "Timestamp": { "base": null, "refs": { - "AccountFindingsMetric$date": "

The date from which the finding metrics were retrieved.

", + "AccountFindingsMetric$date": "

The date from which the findings metrics were retrieved.

", "Finding$createdAt": "

The time when the finding was created.

", "Finding$updatedAt": "

The time when the finding was last updated. Findings are updated when you remediate them or when the finding code location changes.

", - "GetMetricsSummaryRequest$date": "

The date you want to retrieve summary metrics from, rounded to the nearest day. The date must be within the past two years since metrics data is only stored for two years. If a date outside of this range is passed, the response will be empty.

", + "GetMetricsSummaryRequest$date": "

The date you want to retrieve summary metrics from, rounded to the nearest day. The date must be within the past two years.

", "GetScanResponse$createdAt": "

The time the scan was created.

", "GetScanResponse$updatedAt": "

The time when the scan was last updated. Only available for STANDARD scan types.

", - "ListFindingsMetricsRequest$endDate": "

The end date of the interval which you want to retrieve metrics from.

", - "ListFindingsMetricsRequest$startDate": "

The start date of the interval which you want to retrieve metrics from.

", + "ListFindingsMetricsRequest$endDate": "

The end date of the interval which you want to retrieve metrics from. Round to the nearest day.

", + "ListFindingsMetricsRequest$startDate": "

The start date of the interval which you want to retrieve metrics from. Rounds to the nearest day.

", "MetricsSummary$date": "

The date from which the metrics summary information was retrieved.

", "ScanSummary$createdAt": "

The time when the scan was created.

", "ScanSummary$updatedAt": "

The time the scan was last updated. A scan is updated when it is re-run.

" @@ -618,10 +624,10 @@ "base": null, "refs": { "CreateScanResponse$runId": "

UUID that identifies the individual scan run.

", - "CreateUploadUrlResponse$codeArtifactId": "

The identifier for the uploaded code resource.

", + "CreateUploadUrlResponse$codeArtifactId": "

The identifier for the uploaded code resource. Pass this to CreateScan to use the uploaded resources.

", "GetScanRequest$runId": "

UUID that identifies the individual scan run you want to view details about. You retrieve this when you call the CreateScan operation. Defaults to the latest scan run if missing.

", "GetScanResponse$runId": "

UUID that identifies the individual scan run.

", - "ResourceId$codeArtifactId": "

The identifier for the code file uploaded to the resource where a finding was detected.

", + "ResourceId$codeArtifactId": "

The identifier for the code file uploaded to the resource object. Returned by CreateUploadUrl when you upload resources to be scanned.

", "ScanSummary$runId": "

The identifier for the scan run.

" } }, diff --git a/models/apis/codeguru-security/2018-05-10/endpoint-rule-set-1.json b/models/apis/codeguru-security/2018-05-10/endpoint-rule-set-1.json index 9c6f96dac9a..bea431e421d 100644 --- a/models/apis/codeguru-security/2018-05-10/endpoint-rule-set-1.json +++ b/models/apis/codeguru-security/2018-05-10/endpoint-rule-set-1.json @@ -40,7 +40,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -59,7 +58,6 @@ }, { "conditions": [], - "type": "tree", "rules": [ { "conditions": [ @@ -87,13 +85,14 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], - "type": "tree", "rules": [ { "conditions": [ @@ -106,7 +105,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -120,7 +118,6 @@ "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ @@ -143,7 +140,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -178,11 +174,9 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], - "type": "tree", "rules": [ { "conditions": [], @@ -193,16 +187,19 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS and DualStack are enabled, but this partition does not support one or both", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -216,14 +213,12 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ - true, { "fn": "getAttr", "argv": [ @@ -232,15 +227,14 @@ }, "supportsFIPS" ] - } + }, + true ] } ], - "type": "tree", "rules": [ { "conditions": [], - "type": "tree", "rules": [ { "conditions": [], @@ -251,16 +245,19 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -274,7 +271,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -294,11 +290,9 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], - "type": "tree", "rules": [ { "conditions": [], @@ -309,20 +303,22 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [], - "type": "tree", "rules": [ { "conditions": [], @@ -333,18 +329,22 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "Invalid Configuration: Missing Region", "type": "error" } - ] + ], + "type": "tree" } ] } \ No newline at end of file diff --git a/models/apis/codeguru-security/2018-05-10/endpoint-tests-1.json b/models/apis/codeguru-security/2018-05-10/endpoint-tests-1.json index df56b8cd383..ceabc0194b3 100644 --- a/models/apis/codeguru-security/2018-05-10/endpoint-tests-1.json +++ b/models/apis/codeguru-security/2018-05-10/endpoint-tests-1.json @@ -1,55 +1,55 @@ { "testCases": [ { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://codeguru-security-fips.us-gov-east-1.api.aws" + "url": "https://codeguru-security-fips.us-east-1.api.aws" } }, "params": { - "UseDualStack": true, + "Region": "us-east-1", "UseFIPS": true, - "Region": "us-gov-east-1" + "UseDualStack": true } }, { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://codeguru-security-fips.us-gov-east-1.amazonaws.com" + "url": "https://codeguru-security-fips.us-east-1.amazonaws.com" } }, "params": { - "UseDualStack": false, + "Region": "us-east-1", "UseFIPS": true, - "Region": "us-gov-east-1" + "UseDualStack": false } }, { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://codeguru-security.us-gov-east-1.api.aws" + "url": "https://codeguru-security.us-east-1.api.aws" } }, "params": { - "UseDualStack": true, + "Region": "us-east-1", "UseFIPS": false, - "Region": "us-gov-east-1" + "UseDualStack": true } }, { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://codeguru-security.us-gov-east-1.amazonaws.com" + "url": "https://codeguru-security.us-east-1.amazonaws.com" } }, "params": { - "UseDualStack": false, + "Region": "us-east-1", "UseFIPS": false, - "Region": "us-gov-east-1" + "UseDualStack": false } }, { @@ -60,9 +60,9 @@ } }, "params": { - "UseDualStack": true, + "Region": "cn-north-1", "UseFIPS": true, - "Region": "cn-north-1" + "UseDualStack": true } }, { @@ -73,9 +73,9 @@ } }, "params": { - "UseDualStack": false, + "Region": "cn-north-1", "UseFIPS": true, - "Region": "cn-north-1" + "UseDualStack": false } }, { @@ -86,9 +86,9 @@ } }, "params": { - "UseDualStack": true, + "Region": "cn-north-1", "UseFIPS": false, - "Region": "cn-north-1" + "UseDualStack": true } }, { @@ -99,109 +99,109 @@ } }, "params": { - "UseDualStack": false, + "Region": "cn-north-1", "UseFIPS": false, - "Region": "cn-north-1" + "UseDualStack": false } }, { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + "endpoint": { + "url": "https://codeguru-security-fips.us-gov-east-1.api.aws" + } }, "params": { - "UseDualStack": true, + "Region": "us-gov-east-1", "UseFIPS": true, - "Region": "us-iso-east-1" + "UseDualStack": true } }, { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://codeguru-security-fips.us-iso-east-1.c2s.ic.gov" + "url": "https://codeguru-security-fips.us-gov-east-1.amazonaws.com" } }, "params": { - "UseDualStack": false, + "Region": "us-gov-east-1", "UseFIPS": true, - "Region": "us-iso-east-1" + "UseDualStack": false } }, { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" + "endpoint": { + "url": "https://codeguru-security.us-gov-east-1.api.aws" + } }, "params": { - "UseDualStack": true, + "Region": "us-gov-east-1", "UseFIPS": false, - "Region": "us-iso-east-1" + "UseDualStack": true } }, { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://codeguru-security.us-iso-east-1.c2s.ic.gov" + "url": "https://codeguru-security.us-gov-east-1.amazonaws.com" } }, "params": { - "UseDualStack": false, + "Region": "us-gov-east-1", "UseFIPS": false, - "Region": "us-iso-east-1" + "UseDualStack": false } }, { - "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", "expect": { - "endpoint": { - "url": "https://codeguru-security-fips.us-east-1.api.aws" - } + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" }, "params": { - "UseDualStack": true, + "Region": "us-iso-east-1", "UseFIPS": true, - "Region": "us-east-1" + "UseDualStack": true } }, { - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://codeguru-security-fips.us-east-1.amazonaws.com" + "url": "https://codeguru-security-fips.us-iso-east-1.c2s.ic.gov" } }, "params": { - "UseDualStack": false, + "Region": "us-iso-east-1", "UseFIPS": true, - "Region": "us-east-1" + "UseDualStack": false } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", "expect": { - "endpoint": { - "url": "https://codeguru-security.us-east-1.api.aws" - } + "error": "DualStack is enabled but this partition does not support DualStack" }, "params": { - "UseDualStack": true, + "Region": "us-iso-east-1", "UseFIPS": false, - "Region": "us-east-1" + "UseDualStack": true } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://codeguru-security.us-east-1.amazonaws.com" + "url": "https://codeguru-security.us-iso-east-1.c2s.ic.gov" } }, "params": { - "UseDualStack": false, + "Region": "us-iso-east-1", "UseFIPS": false, - "Region": "us-east-1" + "UseDualStack": false } }, { @@ -210,9 +210,9 @@ "error": "FIPS and DualStack are enabled, but this partition does not support one or both" }, "params": { - "UseDualStack": true, + "Region": "us-isob-east-1", "UseFIPS": true, - "Region": "us-isob-east-1" + "UseDualStack": true } }, { @@ -223,9 +223,9 @@ } }, "params": { - "UseDualStack": false, + "Region": "us-isob-east-1", "UseFIPS": true, - "Region": "us-isob-east-1" + "UseDualStack": false } }, { @@ -234,9 +234,9 @@ "error": "DualStack is enabled but this partition does not support DualStack" }, "params": { - "UseDualStack": true, + "Region": "us-isob-east-1", "UseFIPS": false, - "Region": "us-isob-east-1" + "UseDualStack": true } }, { @@ -247,22 +247,35 @@ } }, "params": { - "UseDualStack": false, + "Region": "us-isob-east-1", "UseFIPS": false, - "Region": "us-isob-east-1" + "UseDualStack": false } }, { - "documentation": "For custom endpoint with fips disabled and dualstack disabled", + "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", "expect": { "endpoint": { "url": "https://example.com" } }, "params": { + "Region": "us-east-1", + "UseFIPS": false, "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { "UseFIPS": false, - "Region": "us-east-1", + "UseDualStack": false, "Endpoint": "https://example.com" } }, @@ -272,9 +285,9 @@ "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { - "UseDualStack": false, - "UseFIPS": true, "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": false, "Endpoint": "https://example.com" } }, @@ -284,11 +297,17 @@ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { - "UseDualStack": true, - "UseFIPS": false, "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true, "Endpoint": "https://example.com" } + }, + { + "documentation": "Missing region", + "expect": { + "error": "Invalid Configuration: Missing Region" + } } ], "version": "1.0" diff --git a/models/apis/elasticache/2015-02-02/api-2.json b/models/apis/elasticache/2015-02-02/api-2.json index e01d82c54d4..e4609ea90ee 100644 --- a/models/apis/elasticache/2015-02-02/api-2.json +++ b/models/apis/elasticache/2015-02-02/api-2.json @@ -4,6 +4,7 @@ "apiVersion":"2015-02-02", "endpointPrefix":"elasticache", "protocol":"query", + "protocols":["query"], "serviceFullName":"Amazon ElastiCache", "serviceId":"ElastiCache", "signatureVersion":"v4", diff --git a/models/apis/elasticache/2015-02-02/docs-2.json b/models/apis/elasticache/2015-02-02/docs-2.json index 751b7a4abf8..6332edb2c2b 100644 --- a/models/apis/elasticache/2015-02-02/docs-2.json +++ b/models/apis/elasticache/2015-02-02/docs-2.json @@ -75,7 +75,7 @@ "ResetCacheParameterGroup": "

Modifies the parameters of a cache parameter group to the engine or system default value. You can reset specific parameters by submitting a list of parameter names. To reset the entire cache parameter group, specify the ResetAllParameters and CacheParameterGroupName parameters.

", "RevokeCacheSecurityGroupIngress": "

Revokes ingress from a cache security group. Use this operation to disallow access from an Amazon EC2 security group that had been previously authorized.

", "StartMigration": "

Start the migration of data.

", - "TestFailover": "

Represents the input of a TestFailover operation which test automatic failover on a specified node group (called shard in the console) in a replication group (called cluster in the console).

This API is designed for testing the behavior of your application in case of ElastiCache failover. It is not designed to be an operational tool for initiating a failover to overcome a problem you may have with the cluster. Moreover, in certain conditions such as large-scale operational events, Amazon may block this API.

Note the following

Also see, Testing Multi-AZ in the ElastiCache User Guide.

", + "TestFailover": "

Represents the input of a TestFailover operation which tests automatic failover on a specified node group (called shard in the console) in a replication group (called cluster in the console).

This API is designed for testing the behavior of your application in case of ElastiCache failover. It is not designed to be an operational tool for initiating a failover to overcome a problem you may have with the cluster. Moreover, in certain conditions such as large-scale operational events, Amazon may block this API.

Note the following

Also see, Testing Multi-AZ in the ElastiCache User Guide.

", "TestMigration": "

Async API to test connection between source and target replication group.

" }, "shapes": { @@ -112,7 +112,7 @@ "NodeGroupsToRemoveList$member": null, "NodeGroupsToRetainList$member": null, "ReshardingConfiguration$NodeGroupId": "

Either the ElastiCache for Redis supplied 4-digit id or a user supplied id for the node group these configuration values apply to.

", - "TestFailoverMessage$NodeGroupId": "

The name of the node group (called shard in the console) in this replication group on which automatic failover is to be tested. You may test automatic failover on up to 5 node groups in any rolling 24-hour period.

" + "TestFailoverMessage$NodeGroupId": "

The name of the node group (called shard in the console) in this replication group on which automatic failover is to be tested. You may test automatic failover on up to 15 node groups in any rolling 24-hour period.

" } }, "AllowedNodeTypeModificationsMessage": { @@ -130,8 +130,8 @@ "AuthTokenUpdateStrategyType": { "base": null, "refs": { - "ModifyCacheClusterMessage$AuthTokenUpdateStrategy": "

Specifies the strategy to use to update the AUTH token. This parameter must be specified with the auth-token parameter. Possible values:

For more information, see Authenticating Users with Redis AUTH

", - "ModifyReplicationGroupMessage$AuthTokenUpdateStrategy": "

Specifies the strategy to use to update the AUTH token. This parameter must be specified with the auth-token parameter. Possible values:

For more information, see Authenticating Users with Redis AUTH

" + "ModifyCacheClusterMessage$AuthTokenUpdateStrategy": "

Specifies the strategy to use to update the AUTH token. This parameter must be specified with the auth-token parameter. Possible values:

For more information, see Authenticating Users with Redis AUTH

", + "ModifyReplicationGroupMessage$AuthTokenUpdateStrategy": "

Specifies the strategy to use to update the AUTH token. This parameter must be specified with the auth-token parameter. Possible values:

For more information, see Authenticating Users with Redis AUTH

" } }, "Authentication": { @@ -2480,7 +2480,7 @@ "DescribeUpdateActionsMessage$Marker": "

An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribeUserGroupsMessage$UserGroupId": "

The ID of the user group.

", "DescribeUserGroupsMessage$Marker": "

An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords. >

", - "DescribeUserGroupsResult$Marker": "

An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords. >

", + "DescribeUserGroupsResult$Marker": "

An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.>

", "DescribeUsersMessage$Marker": "

An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords. >

", "DescribeUsersResult$Marker": "

An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords. >

", "DisassociateGlobalReplicationGroupMessage$GlobalReplicationGroupId": "

The name of the Global datastore

", diff --git a/models/apis/launch-wizard/2018-05-10/api-2.json b/models/apis/launch-wizard/2018-05-10/api-2.json index 40d88df9d0b..9c6db00a5b9 100644 --- a/models/apis/launch-wizard/2018-05-10/api-2.json +++ b/models/apis/launch-wizard/2018-05-10/api-2.json @@ -5,6 +5,7 @@ "endpointPrefix":"launchwizard", "jsonVersion":"1.1", "protocol":"rest-json", + "protocols":["rest-json"], "serviceFullName":"AWS Launch Wizard", "serviceId":"Launch Wizard", "signatureVersion":"v4", @@ -38,6 +39,7 @@ "input":{"shape":"DeleteDeploymentInput"}, "output":{"shape":"DeleteDeploymentOutput"}, "errors":[ + {"shape":"ResourceLimitException"}, {"shape":"InternalServerException"}, {"shape":"ValidationException"}, {"shape":"ResourceNotFoundException"} @@ -74,6 +76,21 @@ {"shape":"ResourceNotFoundException"} ] }, + "GetWorkloadDeploymentPattern":{ + "name":"GetWorkloadDeploymentPattern", + "http":{ + "method":"POST", + "requestUri":"/getWorkloadDeploymentPattern", + "responseCode":200 + }, + "input":{"shape":"GetWorkloadDeploymentPatternInput"}, + "output":{"shape":"GetWorkloadDeploymentPatternOutput"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ] + }, "ListDeploymentEvents":{ "name":"ListDeploymentEvents", "http":{ @@ -103,6 +120,21 @@ {"shape":"ValidationException"} ] }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"GET", + "requestUri":"/tags/{resourceArn}", + "responseCode":200 + }, + "input":{"shape":"ListTagsForResourceInput"}, + "output":{"shape":"ListTagsForResourceOutput"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ] + }, "ListWorkloadDeploymentPatterns":{ "name":"ListWorkloadDeploymentPatterns", "http":{ @@ -131,9 +163,44 @@ {"shape":"InternalServerException"}, {"shape":"ValidationException"} ] + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/tags/{resourceArn}", + "responseCode":200 + }, + "input":{"shape":"TagResourceInput"}, + "output":{"shape":"TagResourceOutput"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"DELETE", + "requestUri":"/tags/{resourceArn}", + "responseCode":200 + }, + "input":{"shape":"UntagResourceInput"}, + "output":{"shape":"UntagResourceOutput"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ], + "idempotent":true } }, "shapes":{ + "AllowedValues":{ + "type":"list", + "member":{"shape":"ValueString"} + }, "Boolean":{ "type":"boolean", "box":true @@ -151,6 +218,7 @@ "dryRun":{"shape":"Boolean"}, "name":{"shape":"DeploymentName"}, "specifications":{"shape":"DeploymentSpecifications"}, + "tags":{"shape":"Tags"}, "workloadName":{"shape":"WorkloadName"} } }, @@ -174,17 +242,27 @@ "statusReason":{"shape":"String"} } }, + "DeploymentConditionalField":{ + "type":"structure", + "members":{ + "comparator":{"shape":"String"}, + "name":{"shape":"String"}, + "value":{"shape":"String"} + } + }, "DeploymentData":{ "type":"structure", "members":{ "createdAt":{"shape":"Timestamp"}, "deletedAt":{"shape":"Timestamp"}, + "deploymentArn":{"shape":"String"}, "id":{"shape":"DeploymentId"}, "name":{"shape":"String"}, "patternName":{"shape":"DeploymentPatternName"}, "resourceGroup":{"shape":"String"}, "specifications":{"shape":"DeploymentSpecifications"}, "status":{"shape":"DeploymentStatus"}, + "tags":{"shape":"Tags"}, "workloadName":{"shape":"WorkloadName"} } }, @@ -253,15 +331,15 @@ }, "DeploymentName":{ "type":"string", - "max":25, + "max":50, "min":1, - "pattern":"^[A-Za-z0-9_\\s\\.-]+$" + "pattern":"^[A-Za-z0-9_\\.-]+$" }, "DeploymentPatternName":{ "type":"string", "max":256, "min":1, - "pattern":"^[a-zA-Z0-9-]+$" + "pattern":"^[A-Za-z0-9][a-zA-Z0-9-]*$" }, "DeploymentSpecifications":{ "type":"map", @@ -271,6 +349,22 @@ "min":1, "sensitive":true }, + "DeploymentSpecificationsData":{ + "type":"list", + "member":{"shape":"DeploymentSpecificationsField"}, + "max":100, + "min":1 + }, + "DeploymentSpecificationsField":{ + "type":"structure", + "members":{ + "allowedValues":{"shape":"AllowedValues"}, + "conditionals":{"shape":"SpecificationsConditionalData"}, + "description":{"shape":"String"}, + "name":{"shape":"String"}, + "required":{"shape":"String"} + } + }, "DeploymentStatus":{ "type":"string", "enum":[ @@ -311,6 +405,23 @@ "deployment":{"shape":"DeploymentData"} } }, + "GetWorkloadDeploymentPatternInput":{ + "type":"structure", + "required":[ + "deploymentPatternName", + "workloadName" + ], + "members":{ + "deploymentPatternName":{"shape":"DeploymentPatternName"}, + "workloadName":{"shape":"WorkloadName"} + } + }, + "GetWorkloadDeploymentPatternOutput":{ + "type":"structure", + "members":{ + "workloadDeploymentPattern":{"shape":"WorkloadDeploymentPatternData"} + } + }, "GetWorkloadInput":{ "type":"structure", "required":["workloadName"], @@ -370,6 +481,23 @@ "nextToken":{"shape":"NextToken"} } }, + "ListTagsForResourceInput":{ + "type":"structure", + "required":["resourceArn"], + "members":{ + "resourceArn":{ + "shape":"String", + "location":"uri", + "locationName":"resourceArn" + } + } + }, + "ListTagsForResourceOutput":{ + "type":"structure", + "members":{ + "tags":{"shape":"Tags"} + } + }, "ListWorkloadDeploymentPatternsInput":{ "type":"structure", "required":["workloadName"], @@ -451,8 +579,82 @@ }, "exception":true }, + "SpecificationsConditionalData":{ + "type":"list", + "member":{"shape":"DeploymentConditionalField"}, + "max":5, + "min":1 + }, "String":{"type":"string"}, + "TagKey":{ + "type":"string", + "max":128, + "min":1, + "pattern":"^(?!aws:)[a-zA-Z+-=._:/]+$" + }, + "TagKeyList":{ + "type":"list", + "member":{"shape":"TagKey"}, + "max":200, + "min":1 + }, + "TagResourceInput":{ + "type":"structure", + "required":[ + "resourceArn", + "tags" + ], + "members":{ + "resourceArn":{ + "shape":"String", + "location":"uri", + "locationName":"resourceArn" + }, + "tags":{"shape":"Tags"} + } + }, + "TagResourceOutput":{ + "type":"structure", + "members":{ + } + }, + "TagValue":{ + "type":"string", + "max":256, + "min":0 + }, + "Tags":{ + "type":"map", + "key":{"shape":"TagKey"}, + "value":{"shape":"TagValue"}, + "max":200, + "min":1 + }, "Timestamp":{"type":"timestamp"}, + "UntagResourceInput":{ + "type":"structure", + "required":[ + "resourceArn", + "tagKeys" + ], + "members":{ + "resourceArn":{ + "shape":"String", + "location":"uri", + "locationName":"resourceArn" + }, + "tagKeys":{ + "shape":"TagKeyList", + "location":"querystring", + "locationName":"tagKeys" + } + } + }, + "UntagResourceOutput":{ + "type":"structure", + "members":{ + } + }, "ValidationException":{ "type":"structure", "members":{ @@ -492,6 +694,19 @@ "type":"list", "member":{"shape":"WorkloadDataSummary"} }, + "WorkloadDeploymentPatternData":{ + "type":"structure", + "members":{ + "deploymentPatternName":{"shape":"DeploymentPatternName"}, + "description":{"shape":"String"}, + "displayName":{"shape":"String"}, + "specifications":{"shape":"DeploymentSpecificationsData"}, + "status":{"shape":"WorkloadDeploymentPatternStatus"}, + "statusMessage":{"shape":"String"}, + "workloadName":{"shape":"WorkloadName"}, + "workloadVersionName":{"shape":"WorkloadVersionName"} + } + }, "WorkloadDeploymentPatternDataSummary":{ "type":"structure", "members":{ @@ -519,9 +734,9 @@ }, "WorkloadName":{ "type":"string", - "max":256, + "max":100, "min":1, - "pattern":"^[a-zA-Z0-9-]+$" + "pattern":"^[A-Za-z][a-zA-Z0-9-_]*$" }, "WorkloadStatus":{ "type":"string", @@ -536,7 +751,7 @@ "type":"string", "max":30, "min":5, - "pattern":"^[a-zA-Z0-9-]+$" + "pattern":"^[A-Za-z0-9][a-zA-Z0-9-]*$" } } } diff --git a/models/apis/launch-wizard/2018-05-10/docs-2.json b/models/apis/launch-wizard/2018-05-10/docs-2.json index b578f873529..8175c00e522 100644 --- a/models/apis/launch-wizard/2018-05-10/docs-2.json +++ b/models/apis/launch-wizard/2018-05-10/docs-2.json @@ -6,12 +6,22 @@ "DeleteDeployment": "

Deletes a deployment.

", "GetDeployment": "

Returns information about the deployment.

", "GetWorkload": "

Returns information about a workload.

", + "GetWorkloadDeploymentPattern": "

Returns details for a given workload and deployment pattern, including the available specifications. You can use the ListWorkloads operation to discover the available workload names and the ListWorkloadDeploymentPatterns operation to discover the available deployment pattern names of a given workload.

", "ListDeploymentEvents": "

Lists the events of a deployment.

", "ListDeployments": "

Lists the deployments that have been created.

", - "ListWorkloadDeploymentPatterns": "

Lists the workload deployment patterns.

", - "ListWorkloads": "

Lists the workloads.

" + "ListTagsForResource": "

Lists the tags associated with a specified resource.

", + "ListWorkloadDeploymentPatterns": "

Lists the workload deployment patterns for a given workload name. You can use the ListWorkloads operation to discover the available workload names.

", + "ListWorkloads": "

Lists the available workload names. You can use the ListWorkloadDeploymentPatterns operation to discover the available deployment patterns for a given workload.

", + "TagResource": "

Adds the specified tags to the given resource.

", + "UntagResource": "

Removes the specified tags from the given resource.

" }, "shapes": { + "AllowedValues": { + "base": null, + "refs": { + "DeploymentSpecificationsField$allowedValues": "

The allowed values of the deployment specification.

" + } + }, "Boolean": { "base": null, "refs": { @@ -38,6 +48,12 @@ "refs": { } }, + "DeploymentConditionalField": { + "base": "

A field that details a condition of the specifications for a deployment.

", + "refs": { + "SpecificationsConditionalData$member": null + } + }, "DeploymentData": { "base": "

The data associated with a deployment.

", "refs": { @@ -83,7 +99,7 @@ "DeploymentFilterList": { "base": null, "refs": { - "ListDeploymentsInput$filters": "

Filters to scope the results. The following filters are supported:

" + "ListDeploymentsInput$filters": "

Filters to scope the results. The following filters are supported:

" } }, "DeploymentFilterValues": { @@ -121,14 +137,28 @@ "CreateDeploymentInput$deploymentPatternName": "

The name of the deployment pattern supported by a given workload. You can use the ListWorkloadDeploymentPatterns operation to discover supported values for this parameter.

", "DeploymentData$patternName": "

The pattern name of the deployment.

", "DeploymentDataSummary$patternName": "

The name of the workload deployment pattern.

", + "GetWorkloadDeploymentPatternInput$deploymentPatternName": "

The name of the deployment pattern.

", + "WorkloadDeploymentPatternData$deploymentPatternName": "

The name of the deployment pattern.

", "WorkloadDeploymentPatternDataSummary$deploymentPatternName": "

The name of a workload deployment pattern.

" } }, "DeploymentSpecifications": { "base": null, "refs": { - "CreateDeploymentInput$specifications": "

The settings specified for the deployment. For more information on the specifications required for creating a deployment, see Workload specifications.

", - "DeploymentData$specifications": "

The specifications of the deployment. For more information on specifications for each deployment, see Workload specifications.

" + "CreateDeploymentInput$specifications": "

The settings specified for the deployment. These settings define how to deploy and configure your resources created by the deployment. For more information about the specifications required for creating a deployment for a SAP workload, see SAP deployment specifications. To retrieve the specifications required to create a deployment for other workloads, use the GetWorkloadDeploymentPattern operation.

", + "DeploymentData$specifications": "

The settings specified for the deployment. These settings define how to deploy and configure your resources created by the deployment. For more information about the specifications required for creating a deployment for a SAP workload, see SAP deployment specifications. To retrieve the specifications required to create a deployment for other workloads, use the GetWorkloadDeploymentPattern operation.

" + } + }, + "DeploymentSpecificationsData": { + "base": null, + "refs": { + "WorkloadDeploymentPatternData$specifications": "

The settings specified for the deployment. These settings define how to deploy and configure your resources created by the deployment. For more information about the specifications required for creating a deployment for a SAP workload, see SAP deployment specifications. To retrieve the specifications required to create a deployment for other workloads, use the GetWorkloadDeploymentPattern operation.

" + } + }, + "DeploymentSpecificationsField": { + "base": "

A field that details a specification of a deployment pattern.

", + "refs": { + "DeploymentSpecificationsData$member": null } }, "DeploymentStatus": { @@ -155,6 +185,16 @@ "refs": { } }, + "GetWorkloadDeploymentPatternInput": { + "base": null, + "refs": { + } + }, + "GetWorkloadDeploymentPatternOutput": { + "base": null, + "refs": { + } + }, "GetWorkloadInput": { "base": null, "refs": { @@ -196,6 +236,16 @@ "refs": { } }, + "ListTagsForResourceInput": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceOutput": { + "base": null, + "refs": { + } + }, "ListWorkloadDeploymentPatternsInput": { "base": null, "refs": { @@ -263,19 +313,35 @@ "refs": { } }, + "SpecificationsConditionalData": { + "base": null, + "refs": { + "DeploymentSpecificationsField$conditionals": "

The conditionals used for the deployment specification.

" + } + }, "String": { "base": null, "refs": { "DeleteDeploymentOutput$statusReason": "

The reason for the deployment status.

", + "DeploymentConditionalField$comparator": "

The comparator of the condition.

Valid values: Equal | NotEqual

", + "DeploymentConditionalField$name": "

The name of the deployment condition.

", + "DeploymentConditionalField$value": "

The value of the condition.

", + "DeploymentData$deploymentArn": "

The Amazon Resource Name (ARN) of the deployment.

", "DeploymentData$name": "

The name of the deployment.

", "DeploymentData$resourceGroup": "

The resource group of the deployment.

", "DeploymentDataSummary$name": "

The name of the deployment

", "DeploymentEventDataSummary$description": "

The description of the deployment event.

", "DeploymentEventDataSummary$name": "

The name of the deployment event.

", "DeploymentEventDataSummary$statusReason": "

The reason of the deployment event status.

", + "DeploymentSpecificationsField$description": "

The description of the deployment specification.

", + "DeploymentSpecificationsField$name": "

The name of the deployment specification.

", + "DeploymentSpecificationsField$required": "

Indicates if the deployment specification is required.

", "InternalServerException$message": null, + "ListTagsForResourceInput$resourceArn": "

The Amazon Resource Name (ARN) of the resource.

", "ResourceLimitException$message": null, "ResourceNotFoundException$message": null, + "TagResourceInput$resourceArn": "

The Amazon Resource Name (ARN) of the resource.

", + "UntagResourceInput$resourceArn": "

The Amazon Resource Name (ARN) of the resource.

", "ValidationException$message": null, "WorkloadData$description": "

The description of a workload.

", "WorkloadData$displayName": "

The display name of a workload.

", @@ -283,11 +349,52 @@ "WorkloadData$iconUrl": "

The URL of a workload icon.

", "WorkloadData$statusMessage": "

The message about a workload's status.

", "WorkloadDataSummary$displayName": "

The display name of the workload data.

", + "WorkloadDeploymentPatternData$description": "

The description of the deployment pattern.

", + "WorkloadDeploymentPatternData$displayName": "

The display name of the deployment pattern.

", + "WorkloadDeploymentPatternData$statusMessage": "

The status message of the deployment pattern.

", "WorkloadDeploymentPatternDataSummary$description": "

The description of a workload deployment pattern.

", "WorkloadDeploymentPatternDataSummary$displayName": "

The display name of a workload deployment pattern.

", "WorkloadDeploymentPatternDataSummary$statusMessage": "

A message about a workload deployment pattern's status.

" } }, + "TagKey": { + "base": null, + "refs": { + "TagKeyList$member": null, + "Tags$key": null + } + }, + "TagKeyList": { + "base": null, + "refs": { + "UntagResourceInput$tagKeys": "

Keys identifying the tags to remove.

" + } + }, + "TagResourceInput": { + "base": null, + "refs": { + } + }, + "TagResourceOutput": { + "base": null, + "refs": { + } + }, + "TagValue": { + "base": null, + "refs": { + "Tags$value": null + } + }, + "Tags": { + "base": null, + "refs": { + "CreateDeploymentInput$tags": "

The tags to add to the deployment.

", + "DeploymentData$tags": "

Information about the tags attached to a deployment.

", + "ListTagsForResourceOutput$tags": "

Information about the tags.

", + "TagResourceInput$tags": "

One or more tags to attach to the resource.

" + } + }, "Timestamp": { "base": null, "refs": { @@ -297,6 +404,16 @@ "DeploymentEventDataSummary$timestamp": "

The timestamp of the deployment event.

" } }, + "UntagResourceInput": { + "base": null, + "refs": { + } + }, + "UntagResourceOutput": { + "base": null, + "refs": { + } + }, "ValidationException": { "base": "

The input fails to satisfy the constraints specified by an Amazon Web Services service.

", "refs": { @@ -305,6 +422,7 @@ "ValueString": { "base": null, "refs": { + "AllowedValues$member": null, "DeploymentSpecifications$value": null } }, @@ -326,6 +444,12 @@ "ListWorkloadsOutput$workloads": "

Information about the workloads.

" } }, + "WorkloadDeploymentPatternData": { + "base": "

The data that details a workload deployment pattern.

", + "refs": { + "GetWorkloadDeploymentPatternOutput$workloadDeploymentPattern": "

Details about the workload deployment pattern.

" + } + }, "WorkloadDeploymentPatternDataSummary": { "base": "

Describes a workload deployment pattern.

", "refs": { @@ -341,19 +465,22 @@ "WorkloadDeploymentPatternStatus": { "base": null, "refs": { + "WorkloadDeploymentPatternData$status": "

The status of the deployment pattern.

", "WorkloadDeploymentPatternDataSummary$status": "

The status of a workload deployment pattern.

" } }, "WorkloadName": { "base": null, "refs": { - "CreateDeploymentInput$workloadName": "

The name of the workload. You can use the ListWorkloadDeploymentPatterns operation to discover supported values for this parameter.

", + "CreateDeploymentInput$workloadName": "

The name of the workload. You can use the ListWorkloads operation to discover supported values for this parameter.

", "DeploymentData$workloadName": "

The name of the workload.

", "DeploymentDataSummary$workloadName": "

The name of the workload.

", + "GetWorkloadDeploymentPatternInput$workloadName": "

The name of the workload.

", "GetWorkloadInput$workloadName": "

The name of the workload.

", "ListWorkloadDeploymentPatternsInput$workloadName": "

The name of the workload.

", "WorkloadData$workloadName": "

The name of the workload.

", "WorkloadDataSummary$workloadName": "

The name of the workload.

", + "WorkloadDeploymentPatternData$workloadName": "

The workload name of the deployment pattern.

", "WorkloadDeploymentPatternDataSummary$workloadName": "

The name of the workload.

" } }, @@ -366,6 +493,7 @@ "WorkloadVersionName": { "base": null, "refs": { + "WorkloadDeploymentPatternData$workloadVersionName": "

The workload version name of the deployment pattern.

", "WorkloadDeploymentPatternDataSummary$workloadVersionName": "

The name of the workload deployment pattern version.

" } } diff --git a/models/apis/launch-wizard/2018-05-10/endpoint-tests-1.json b/models/apis/launch-wizard/2018-05-10/endpoint-tests-1.json index 850ed0a8fda..33502c9dc8e 100644 --- a/models/apis/launch-wizard/2018-05-10/endpoint-tests-1.json +++ b/models/apis/launch-wizard/2018-05-10/endpoint-tests-1.json @@ -308,17 +308,6 @@ "expect": { "error": "Invalid Configuration: Missing Region" } - }, - { - "documentation": "Partition doesn't support DualStack", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": false, - "UseDualStack": true - } } ], "version": "1.0" diff --git a/service/codebuild/api.go b/service/codebuild/api.go index 24c99184250..16cef87786e 100644 --- a/service/codebuild/api.go +++ b/service/codebuild/api.go @@ -18076,8 +18076,8 @@ type WebhookFilter struct { // PRERELEASED, and WORKFLOW_JOB_QUEUED. The EVENT patterns are specified // as a comma-separated string. For example, PUSH, PULL_REQUEST_CREATED, // PULL_REQUEST_UPDATED filters all push, pull request created, and pull - // request updated events. The PULL_REQUEST_REOPENED works with GitHub and - // GitHub Enterprise only. The RELEASED, PRERELEASED, and WORKFLOW_JOB_QUEUED + // request updated events. Types PULL_REQUEST_REOPENED and WORKFLOW_JOB_QUEUED + // work with GitHub and GitHub Enterprise only. Types RELEASED and PRERELEASED // work with GitHub only. // // * ACTOR_ACCOUNT_ID A webhook event triggers a build when a GitHub, GitHub diff --git a/service/codegurusecurity/api.go b/service/codegurusecurity/api.go index a72f30a2189..4f414597f34 100644 --- a/service/codegurusecurity/api.go +++ b/service/codegurusecurity/api.go @@ -56,7 +56,7 @@ func (c *CodeGuruSecurity) BatchGetFindingsRequest(input *BatchGetFindingsInput) // BatchGetFindings API operation for Amazon CodeGuru Security. // -// Returns a list of all requested findings. +// Returns a list of requested findings from standard scans. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -144,7 +144,7 @@ func (c *CodeGuruSecurity) CreateScanRequest(input *CreateScanInput) (req *reque // CreateScan API operation for Amazon CodeGuru Security. // -// Use to create a scan using code uploaded to an S3 bucket. +// Use to create a scan using code uploaded to an Amazon S3 bucket. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -240,10 +240,11 @@ func (c *CodeGuruSecurity) CreateUploadUrlRequest(input *CreateUploadUrlInput) ( // CreateUploadUrl API operation for Amazon CodeGuru Security. // -// Generates a pre-signed URL and request headers used to upload a code resource. +// Generates a pre-signed URL, request headers used to upload a code resource, +// and code artifact identifier for the uploaded resource. // -// You can upload your code resource to the URL and add the request headers -// using any HTTP client. +// You can upload your code resource to the URL with the request headers using +// any HTTP client. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -331,7 +332,7 @@ func (c *CodeGuruSecurity) GetAccountConfigurationRequest(input *GetAccountConfi // GetAccountConfiguration API operation for Amazon CodeGuru Security. // -// Use to get account level configuration. +// Use to get the encryption configuration for an account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -572,7 +573,7 @@ func (c *CodeGuruSecurity) GetMetricsSummaryRequest(input *GetMetricsSummaryInpu // GetMetricsSummary API operation for Amazon CodeGuru Security. // -// Returns top level metrics about an account from a specified date, including +// Returns a summary of metrics for an account from a specified date, including // number of open findings, the categories with most findings, the scans with // most open findings, and scans with most open critical findings. // @@ -682,6 +683,9 @@ func (c *CodeGuruSecurity) GetScanRequest(input *GetScanInput) (req *request.Req // - ThrottlingException // The request was denied due to request throttling. // +// - ValidationException +// The input fails to satisfy the specified constraints. +// // - AccessDeniedException // You do not have sufficient access to perform this action. // @@ -902,8 +906,7 @@ func (c *CodeGuruSecurity) ListScansRequest(input *ListScansInput) (req *request // ListScans API operation for Amazon CodeGuru Security. // -// Returns a list of all the standard scans in an account. Does not return express -// scans. +// Returns a list of all scans in an account. Does not return EXPRESS scans. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1332,7 +1335,7 @@ func (c *CodeGuruSecurity) UpdateAccountConfigurationRequest(input *UpdateAccoun // UpdateAccountConfiguration API operation for Amazon CodeGuru Security. // -// Use to update account-level configuration with an encryption key. +// Use to update the encryption configuration for an account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1456,25 +1459,24 @@ func (s *AccessDeniedException) RequestID() string { return s.RespMetadata.RequestID } -// A summary of findings metrics in an account. +// A summary of findings metrics for an account on a specified date. type AccountFindingsMetric struct { _ struct{} `type:"structure"` - // The number of closed findings of each severity in an account on the specified - // date. + // The number of closed findings of each severity on the specified date. ClosedFindings *FindingMetricsValuePerSeverity `locationName:"closedFindings" type:"structure"` - // The date from which the finding metrics were retrieved. + // The date from which the findings metrics were retrieved. Date *time.Time `locationName:"date" type:"timestamp"` - // The average time it takes to close findings of each severity in days. + // The average time in days it takes to close findings of each severity as of + // a specified date. MeanTimeToClose *FindingMetricsValuePerSeverity `locationName:"meanTimeToClose" type:"structure"` - // The number of new findings of each severity in account on the specified date. + // The number of new findings of each severity on the specified date. NewFindings *FindingMetricsValuePerSeverity `locationName:"newFindings" type:"structure"` - // The number of open findings of each severity in an account as of the specified - // date. + // The number of open findings of each severity as of the specified date. OpenFindings *FindingMetricsValuePerSeverity `locationName:"openFindings" type:"structure"` } @@ -1663,7 +1665,7 @@ type BatchGetFindingsOutput struct { // FailedFindings is a required field FailedFindings []*BatchGetFindingsError `locationName:"failedFindings" type:"list" required:"true"` - // A list of all requested findings. + // A list of all findings which were successfully fetched. // // Findings is a required field Findings []*Finding `locationName:"findings" type:"list" required:"true"` @@ -1878,14 +1880,13 @@ type CreateScanInput struct { // failures and retries. ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` - // The identifier for an input resource used to create a scan. + // The identifier for the resource object to be scanned. // // ResourceId is a required field ResourceId *ResourceId `locationName:"resourceId" type:"structure" required:"true"` // The unique name that CodeGuru Security uses to track revisions across multiple - // scans of the same resource. Only allowed for a STANDARD scan type. If not - // specified, it will be auto generated. + // scans of the same resource. Only allowed for a STANDARD scan type. // // ScanName is a required field ScanName *string `locationName:"scanName" min:"1" type:"string" required:"true"` @@ -2118,7 +2119,8 @@ func (s *CreateUploadUrlInput) SetScanName(v string) *CreateUploadUrlInput { type CreateUploadUrlOutput struct { _ struct{} `type:"structure"` - // The identifier for the uploaded code resource. + // The identifier for the uploaded code resource. Pass this to CreateScan to + // use the uploaded resources. // // CodeArtifactId is a required field CodeArtifactId *string `locationName:"codeArtifactId" type:"string" required:"true"` @@ -2133,8 +2135,8 @@ type CreateUploadUrlOutput struct { // RequestHeaders is a required field RequestHeaders map[string]*string `locationName:"requestHeaders" type:"map" required:"true" sensitive:"true"` - // A pre-signed S3 URL. You can upload the code file you want to scan and add - // the required requestHeaders using any HTTP client. + // A pre-signed S3 URL. You can upload the code file you want to scan with the + // required requestHeaders using any HTTP client. // // S3Url is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by CreateUploadUrlOutput's @@ -2180,12 +2182,13 @@ func (s *CreateUploadUrlOutput) SetS3Url(v string) *CreateUploadUrlOutput { return s } -// Information about account-level configuration. +// Information about the encryption configuration for an account. Required to +// call UpdateAccountConfiguration. type EncryptionConfig struct { _ struct{} `type:"structure"` - // The KMS key ARN to use for encryption. This must be provided as a header - // when uploading your code resource. + // The KMS key ARN that is used for encryption. If an AWS-managed key is used + // for encryption, returns empty. KmsKeyArn *string `locationName:"kmsKeyArn" min:"1" type:"string"` } @@ -2321,8 +2324,7 @@ type Finding struct { // such as maintainability or consistency. DetectorTags []*string `locationName:"detectorTags" type:"list"` - // The identifier for the component that generated a finding such as AWSCodeGuruSecurity - // or AWSInspector. + // The identifier for the component that generated a finding such as AmazonCodeGuruSecurity. GeneratorId *string `locationName:"generatorId" type:"string"` // The identifier for a finding. @@ -2337,7 +2339,10 @@ type Finding struct { // The identifier for the rule that generated the finding. RuleId *string `locationName:"ruleId" type:"string"` - // The severity of the finding. + // The severity of the finding. Severity can be critical, high, medium, low, + // or informational. For information on severity levels, see Finding severity + // (https://docs.aws.amazon.com/codeguru/latest/security-ug/findings-overview.html#severity-distribution) + // in the Amazon CodeGuru Security User Guide. Severity *string `locationName:"severity" type:"string" enum:"Severity"` // The status of the finding. A finding status can be open or closed. @@ -2533,26 +2538,25 @@ func (s *FindingIdentifier) SetScanName(v string) *FindingIdentifier { return s } -// The severity of the issue in the code that generated a finding. +// A numeric value corresponding to the severity of a finding, such as the number +// of open findings or the average time it takes to close findings of a given +// severity. type FindingMetricsValuePerSeverity struct { _ struct{} `type:"structure"` - // The severity of the finding is critical and should be addressed immediately. + // A numeric value corresponding to a critical finding. Critical *float64 `locationName:"critical" type:"double"` - // The severity of the finding is high and should be addressed as a near-term - // priority. + // A numeric value corresponding to a high severity finding. High *float64 `locationName:"high" type:"double"` - // The finding is related to quality or readability improvements and not considered - // actionable. + // A numeric value corresponding to an informational finding. Info *float64 `locationName:"info" type:"double"` - // The severity of the finding is low and does require action on its own. + // A numeric value corresponding to a low severity finding. Low *float64 `locationName:"low" type:"double"` - // The severity of the finding is medium and should be addressed as a mid-term - // priority. + // A numeric value corresponding to a medium severity finding. Medium *float64 `locationName:"medium" type:"double"` } @@ -2629,9 +2633,10 @@ func (s GetAccountConfigurationInput) GoString() string { type GetAccountConfigurationOutput struct { _ struct{} `type:"structure"` - // An EncryptionConfig object that contains the KMS key ARN to use for encryption. - // By default, CodeGuru Security uses an AWS-managed key for encryption. To - // specify your own key, call UpdateAccountConfiguration. + // An EncryptionConfig object that contains the KMS key ARN that is used for + // encryption. By default, CodeGuru Security uses an AWS-managed key for encryption. + // To specify your own key, call UpdateAccountConfiguration. If you do not specify + // a customer-managed key, returns empty. // // EncryptionConfig is a required field EncryptionConfig *EncryptionConfig `locationName:"encryptionConfig" type:"structure" required:"true"` @@ -2667,7 +2672,8 @@ type GetFindingsInput struct { // The maximum number of results to return in the response. Use this parameter // when paginating results. If additional results exist beyond the number you // specify, the nextToken element is returned in the response. Use nextToken - // in a subsequent request to retrieve additional results. + // in a subsequent request to retrieve additional results. If not specified, + // returns 1000 results. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // A token to use for paginating results that are returned in the response. @@ -2795,9 +2801,7 @@ type GetMetricsSummaryInput struct { _ struct{} `type:"structure" nopayload:"true"` // The date you want to retrieve summary metrics from, rounded to the nearest - // day. The date must be within the past two years since metrics data is only - // stored for two years. If a date outside of this range is passed, the response - // will be empty. + // day. The date must be within the past two years. // // Date is a required field Date *time.Time `location:"querystring" locationName:"date" type:"timestamp" required:"true"` @@ -2946,6 +2950,9 @@ type GetScanOutput struct { // CreatedAt is a required field CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` + // Details about the error that causes a scan to fail to be retrieved. + ErrorMessage *string `locationName:"errorMessage" min:"1" type:"string"` + // The number of times a scan has been re-run on a revised resource. NumberOfRevisions *int64 `locationName:"numberOfRevisions" type:"long"` @@ -2962,7 +2969,8 @@ type GetScanOutput struct { // The ARN for the scan name. ScanNameArn *string `locationName:"scanNameArn" min:"1" type:"string"` - // The current state of the scan. Pass either InProgress, Successful, or Failed. + // The current state of the scan. Returns either InProgress, Successful, or + // Failed. // // ScanState is a required field ScanState *string `locationName:"scanState" type:"string" required:"true" enum:"ScanState"` @@ -3002,6 +3010,12 @@ func (s *GetScanOutput) SetCreatedAt(v time.Time) *GetScanOutput { return s } +// SetErrorMessage sets the ErrorMessage field's value. +func (s *GetScanOutput) SetErrorMessage(v string) *GetScanOutput { + s.ErrorMessage = &v + return s +} + // SetNumberOfRevisions sets the NumberOfRevisions field's value. func (s *GetScanOutput) SetNumberOfRevisions(v int64) *GetScanOutput { s.NumberOfRevisions = &v @@ -3109,7 +3123,8 @@ func (s *InternalServerException) RequestID() string { type ListFindingsMetricsInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The end date of the interval which you want to retrieve metrics from. + // The end date of the interval which you want to retrieve metrics from. Round + // to the nearest day. // // EndDate is a required field EndDate *time.Time `location:"querystring" locationName:"endDate" type:"timestamp" required:"true"` @@ -3117,7 +3132,8 @@ type ListFindingsMetricsInput struct { // The maximum number of results to return in the response. Use this parameter // when paginating results. If additional results exist beyond the number you // specify, the nextToken element is returned in the response. Use nextToken - // in a subsequent request to retrieve additional results. + // in a subsequent request to retrieve additional results. If not specified, + // returns 1000 results. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // A token to use for paginating results that are returned in the response. @@ -3126,7 +3142,8 @@ type ListFindingsMetricsInput struct { // listing results after the first page. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` - // The start date of the interval which you want to retrieve metrics from. + // The start date of the interval which you want to retrieve metrics from. Rounds + // to the nearest day. // // StartDate is a required field StartDate *time.Time `location:"querystring" locationName:"startDate" type:"timestamp" required:"true"` @@ -3244,7 +3261,8 @@ type ListScansInput struct { // The maximum number of results to return in the response. Use this parameter // when paginating results. If additional results exist beyond the number you // specify, the nextToken element is returned in the response. Use nextToken - // in a subsequent request to retrieve additional results. + // in a subsequent request to retrieve additional results. If not specified, + // returns 100 results. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // A token to use for paginating results that are returned in the response. @@ -3344,8 +3362,8 @@ func (s *ListScansOutput) SetSummaries(v []*ScanSummary) *ListScansOutput { type ListTagsForResourceInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The ARN of the ScanName object. You can retrieve this ARN by calling ListScans - // or GetScan. + // The ARN of the ScanName object. You can retrieve this ARN by calling CreateScan, + // ListScans, or GetScan. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" min:"1" type:"string" required:"true"` @@ -3430,26 +3448,26 @@ func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForRe return s } -// Information about summary metrics in an account. +// A summary of metrics for an account as of a specified date. type MetricsSummary struct { _ struct{} `type:"structure"` // A list of CategoryWithFindingNum objects for the top 5 finding categories - // with the most open findings in an account. + // with the most findings. CategoriesWithMostFindings []*CategoryWithFindingNum `locationName:"categoriesWithMostFindings" type:"list"` // The date from which the metrics summary information was retrieved. Date *time.Time `locationName:"date" type:"timestamp"` - // The number of open findings of each severity in an account. + // The number of open findings of each severity. OpenFindings *FindingMetricsValuePerSeverity `locationName:"openFindings" type:"structure"` // A list of ScanNameWithFindingNum objects for the top 3 scans with the most - // number of open findings in an account. + // number of open critical findings. ScansWithMostOpenCriticalFindings []*ScanNameWithFindingNum `locationName:"scansWithMostOpenCriticalFindings" type:"list"` // A list of ScanNameWithFindingNum objects for the top 3 scans with the most - // number of open critical findings in an account. + // number of open findings. ScansWithMostOpenFindings []*ScanNameWithFindingNum `locationName:"scansWithMostOpenFindings" type:"list"` } @@ -3585,15 +3603,14 @@ func (s *Remediation) SetSuggestedFixes(v []*SuggestedFix) *Remediation { return s } -// Information about a resource, such as an Amazon S3 bucket or AWS Lambda function, -// that contains a finding. +// Information about a resource that contains a finding. type Resource struct { _ struct{} `type:"structure"` - // The identifier for the resource. + // The scanName of the scan that was run on the resource. Id *string `locationName:"id" type:"string"` - // The identifier for a section of the resource, such as an AWS Lambda layer. + // The identifier for a section of the resource. SubResourceId *string `locationName:"subResourceId" type:"string"` } @@ -3627,13 +3644,13 @@ func (s *Resource) SetSubResourceId(v string) *Resource { return s } -// The identifier for a resource object that contains resources where a finding -// was detected. +// The identifier for a resource object that contains resources to scan. Specifying +// a codeArtifactId is required to create a scan. type ResourceId struct { _ struct{} `type:"structure"` - // The identifier for the code file uploaded to the resource where a finding - // was detected. + // The identifier for the code file uploaded to the resource object. Returned + // by CreateUploadUrl when you upload resources to be scanned. CodeArtifactId *string `locationName:"codeArtifactId" type:"string"` } @@ -3741,11 +3758,11 @@ func (s *ResourceNotFoundException) RequestID() string { return s.RespMetadata.RequestID } -// Information about a scan with open findings. +// Information about the number of findings generated by a scan. type ScanNameWithFindingNum struct { _ struct{} `type:"structure"` - // The number of open findings generated by a scan. + // The number of findings generated by a scan. FindingNumber *int64 `locationName:"findingNumber" type:"integer"` // The name of the scan. @@ -3871,7 +3888,8 @@ func (s *ScanSummary) SetUpdatedAt(v time.Time) *ScanSummary { type SuggestedFix struct { _ struct{} `type:"structure"` - // The suggested code to add to your file. + // The suggested code fix. If applicable, includes code patch to replace your + // source code. Code *string `locationName:"code" type:"string"` // A description of the suggested code fix and why it is being suggested. @@ -3911,8 +3929,8 @@ func (s *SuggestedFix) SetDescription(v string) *SuggestedFix { type TagResourceInput struct { _ struct{} `type:"structure"` - // The ARN of the ScanName object. You can retrieve this ARN by calling ListScans - // or GetScan. + // The ARN of the ScanName object. You can retrieve this ARN by calling CreateScan, + // ListScans, or GetScan. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" min:"1" type:"string" required:"true"` @@ -4081,8 +4099,8 @@ func (s *ThrottlingException) RequestID() string { type UntagResourceInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The ARN of the ScanName object. You can retrieve this ARN by calling ListScans - // or GetScan. + // The ARN of the ScanName object. You can retrieve this ARN by calling CreateScan, + // ListScans, or GetScan. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" min:"1" type:"string" required:"true"` @@ -4167,8 +4185,10 @@ func (s UntagResourceOutput) GoString() string { type UpdateAccountConfigurationInput struct { _ struct{} `type:"structure"` - // The KMS key ARN you want to use for encryption. Defaults to service-side - // encryption if missing. + // The customer-managed KMS key ARN you want to use for encryption. If not specified, + // CodeGuru Security will use an AWS-managed key for encryption. If you previously + // specified a customer-managed KMS key and want CodeGuru Security to use an + // AWS-managed key for encryption instead, pass nothing. // // EncryptionConfig is a required field EncryptionConfig *EncryptionConfig `locationName:"encryptionConfig" type:"structure" required:"true"` @@ -4219,7 +4239,9 @@ func (s *UpdateAccountConfigurationInput) SetEncryptionConfig(v *EncryptionConfi type UpdateAccountConfigurationOutput struct { _ struct{} `type:"structure"` - // An EncryptionConfig object that contains the KMS key ARN to use for encryption. + // An EncryptionConfig object that contains the KMS key ARN that is used for + // encryption. If you did not specify a customer-managed KMS key in the request, + // returns empty. // // EncryptionConfig is a required field EncryptionConfig *EncryptionConfig `locationName:"encryptionConfig" type:"structure" required:"true"` @@ -4385,7 +4407,9 @@ type Vulnerability struct { Id *string `locationName:"id" type:"string"` // The number of times the vulnerability appears in your code. - ItemCount *int64 `locationName:"itemCount" type:"integer"` + // + // Deprecated: This shape is not used. + ItemCount *int64 `locationName:"itemCount" deprecated:"true" type:"integer"` // One or more URL addresses that contain details about a vulnerability. ReferenceUrls []*string `locationName:"referenceUrls" type:"list"` diff --git a/service/elasticache/api.go b/service/elasticache/api.go index 01b8c0d0dc9..44595095e85 100644 --- a/service/elasticache/api.go +++ b/service/elasticache/api.go @@ -8433,7 +8433,7 @@ func (c *ElastiCache) TestFailoverRequest(input *TestFailoverInput) (req *reques // TestFailover API operation for Amazon ElastiCache. // -// Represents the input of a TestFailover operation which test automatic failover +// Represents the input of a TestFailover operation which tests automatic failover // on a specified node group (called shard in the console) in a replication // group (called cluster in the console). // @@ -8446,7 +8446,7 @@ func (c *ElastiCache) TestFailoverRequest(input *TestFailoverInput) (req *reques // Note the following // // - A customer can use this operation to test automatic failover on up to -// 5 shards (called node groups in the ElastiCache API and Amazon CLI) in +// 15 shards (called node groups in the ElastiCache API and Amazon CLI) in // any rolling 24-hour period. // // - If calling this operation on shards in different clusters (called replication @@ -17194,8 +17194,7 @@ type DescribeUserGroupsOutput struct { // An optional marker returned from a prior request. Use this marker for pagination // of results from this operation. If this parameter is specified, the response - // includes only records beyond the marker, up to the value specified by MaxRecords. - // > + // includes only records beyond the marker, up to the value specified by MaxRecords.> Marker *string `type:"string"` // Returns a list of user groups. @@ -19007,9 +19006,11 @@ type ModifyCacheClusterInput struct { // Specifies the strategy to use to update the AUTH token. This parameter must // be specified with the auth-token parameter. Possible values: // - // * Rotate + // * ROTATE - default, if no update strategy is provided // - // * Set + // * SET - allowed only after ROTATE + // + // * DELETE - allowed only when transitioning to RBAC // // For more information, see Authenticating Users with Redis AUTH (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/auth.html) AuthTokenUpdateStrategy *string `type:"string" enum:"AuthTokenUpdateStrategyType"` @@ -19746,9 +19747,11 @@ type ModifyReplicationGroupInput struct { // Specifies the strategy to use to update the AUTH token. This parameter must // be specified with the auth-token parameter. Possible values: // - // * Rotate + // * ROTATE - default, if no update strategy is provided + // + // * SET - allowed only after ROTATE // - // * Set + // * DELETE - allowed only when transitioning to RBAC // // For more information, see Authenticating Users with Redis AUTH (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/auth.html) AuthTokenUpdateStrategy *string `type:"string" enum:"AuthTokenUpdateStrategyType"` @@ -24586,7 +24589,7 @@ type TestFailoverInput struct { // The name of the node group (called shard in the console) in this replication // group on which automatic failover is to be tested. You may test automatic - // failover on up to 5 node groups in any rolling 24-hour period. + // failover on up to 15 node groups in any rolling 24-hour period. // // NodeGroupId is a required field NodeGroupId *string `min:"1" type:"string" required:"true"` diff --git a/service/launchwizard/api.go b/service/launchwizard/api.go index 2ea6c32e76f..591faf180e1 100644 --- a/service/launchwizard/api.go +++ b/service/launchwizard/api.go @@ -10,6 +10,7 @@ import ( "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/restjson" ) const opCreateDeployment = "CreateDeployment" @@ -159,6 +160,10 @@ func (c *LaunchWizard) DeleteDeploymentRequest(input *DeleteDeploymentInput) (re // // Returned Error Types: // +// - ResourceLimitException +// You have exceeded an Launch Wizard resource limit. For example, you might +// have too many deployments in progress. +// // - InternalServerException // An internal error has occurred. Retry your request, but if the problem persists, // contact us with details by posting a question on re:Post (https://repost.aws/). @@ -366,6 +371,97 @@ func (c *LaunchWizard) GetWorkloadWithContext(ctx aws.Context, input *GetWorkloa return out, req.Send() } +const opGetWorkloadDeploymentPattern = "GetWorkloadDeploymentPattern" + +// GetWorkloadDeploymentPatternRequest generates a "aws/request.Request" representing the +// client's request for the GetWorkloadDeploymentPattern operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetWorkloadDeploymentPattern for more information on using the GetWorkloadDeploymentPattern +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetWorkloadDeploymentPatternRequest method. +// req, resp := client.GetWorkloadDeploymentPatternRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/launch-wizard-2018-05-10/GetWorkloadDeploymentPattern +func (c *LaunchWizard) GetWorkloadDeploymentPatternRequest(input *GetWorkloadDeploymentPatternInput) (req *request.Request, output *GetWorkloadDeploymentPatternOutput) { + op := &request.Operation{ + Name: opGetWorkloadDeploymentPattern, + HTTPMethod: "POST", + HTTPPath: "/getWorkloadDeploymentPattern", + } + + if input == nil { + input = &GetWorkloadDeploymentPatternInput{} + } + + output = &GetWorkloadDeploymentPatternOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetWorkloadDeploymentPattern API operation for AWS Launch Wizard. +// +// Returns details for a given workload and deployment pattern, including the +// available specifications. You can use the ListWorkloads (https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_ListWorkloads.html) +// operation to discover the available workload names and the ListWorkloadDeploymentPatterns +// (https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_ListWorkloadDeploymentPatterns.html) +// operation to discover the available deployment pattern names of a given workload. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Launch Wizard's +// API operation GetWorkloadDeploymentPattern for usage and error information. +// +// Returned Error Types: +// +// - InternalServerException +// An internal error has occurred. Retry your request, but if the problem persists, +// contact us with details by posting a question on re:Post (https://repost.aws/). +// +// - ValidationException +// The input fails to satisfy the constraints specified by an Amazon Web Services +// service. +// +// - ResourceNotFoundException +// The specified workload or deployment resource can't be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/launch-wizard-2018-05-10/GetWorkloadDeploymentPattern +func (c *LaunchWizard) GetWorkloadDeploymentPattern(input *GetWorkloadDeploymentPatternInput) (*GetWorkloadDeploymentPatternOutput, error) { + req, out := c.GetWorkloadDeploymentPatternRequest(input) + return out, req.Send() +} + +// GetWorkloadDeploymentPatternWithContext is the same as GetWorkloadDeploymentPattern with the addition of +// the ability to pass a context and additional request options. +// +// See GetWorkloadDeploymentPattern for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LaunchWizard) GetWorkloadDeploymentPatternWithContext(ctx aws.Context, input *GetWorkloadDeploymentPatternInput, opts ...request.Option) (*GetWorkloadDeploymentPatternOutput, error) { + req, out := c.GetWorkloadDeploymentPatternRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opListDeploymentEvents = "ListDeploymentEvents" // ListDeploymentEventsRequest generates a "aws/request.Request" representing the @@ -651,6 +747,93 @@ func (c *LaunchWizard) ListDeploymentsPagesWithContext(ctx aws.Context, input *L return p.Err() } +const opListTagsForResource = "ListTagsForResource" + +// ListTagsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsForResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListTagsForResource for more information on using the ListTagsForResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListTagsForResourceRequest method. +// req, resp := client.ListTagsForResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/launch-wizard-2018-05-10/ListTagsForResource +func (c *LaunchWizard) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { + op := &request.Operation{ + Name: opListTagsForResource, + HTTPMethod: "GET", + HTTPPath: "/tags/{resourceArn}", + } + + if input == nil { + input = &ListTagsForResourceInput{} + } + + output = &ListTagsForResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTagsForResource API operation for AWS Launch Wizard. +// +// Lists the tags associated with a specified resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Launch Wizard's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Types: +// +// - InternalServerException +// An internal error has occurred. Retry your request, but if the problem persists, +// contact us with details by posting a question on re:Post (https://repost.aws/). +// +// - ValidationException +// The input fails to satisfy the constraints specified by an Amazon Web Services +// service. +// +// - ResourceNotFoundException +// The specified workload or deployment resource can't be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/launch-wizard-2018-05-10/ListTagsForResource +func (c *LaunchWizard) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + return out, req.Send() +} + +// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of +// the ability to pass a context and additional request options. +// +// See ListTagsForResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LaunchWizard) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opListWorkloadDeploymentPatterns = "ListWorkloadDeploymentPatterns" // ListWorkloadDeploymentPatternsRequest generates a "aws/request.Request" representing the @@ -700,7 +883,9 @@ func (c *LaunchWizard) ListWorkloadDeploymentPatternsRequest(input *ListWorkload // ListWorkloadDeploymentPatterns API operation for AWS Launch Wizard. // -// Lists the workload deployment patterns. +// Lists the workload deployment patterns for a given workload name. You can +// use the ListWorkloads (https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_ListWorkloads.html) +// operation to discover the available workload names. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -844,7 +1029,9 @@ func (c *LaunchWizard) ListWorkloadsRequest(input *ListWorkloadsInput) (req *req // ListWorkloads API operation for AWS Launch Wizard. // -// Lists the workloads. +// Lists the available workload names. You can use the ListWorkloadDeploymentPatterns +// (https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_ListWorkloadDeploymentPatterns.html) +// operation to discover the available deployment patterns for a given workload. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -936,6 +1123,182 @@ func (c *LaunchWizard) ListWorkloadsPagesWithContext(ctx aws.Context, input *Lis return p.Err() } +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TagResource for more information on using the TagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the TagResourceRequest method. +// req, resp := client.TagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/launch-wizard-2018-05-10/TagResource +func (c *LaunchWizard) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { + op := &request.Operation{ + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/tags/{resourceArn}", + } + + if input == nil { + input = &TagResourceInput{} + } + + output = &TagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// TagResource API operation for AWS Launch Wizard. +// +// Adds the specified tags to the given resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Launch Wizard's +// API operation TagResource for usage and error information. +// +// Returned Error Types: +// +// - InternalServerException +// An internal error has occurred. Retry your request, but if the problem persists, +// contact us with details by posting a question on re:Post (https://repost.aws/). +// +// - ValidationException +// The input fails to satisfy the constraints specified by an Amazon Web Services +// service. +// +// - ResourceNotFoundException +// The specified workload or deployment resource can't be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/launch-wizard-2018-05-10/TagResource +func (c *LaunchWizard) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + return out, req.Send() +} + +// TagResourceWithContext is the same as TagResource with the addition of +// the ability to pass a context and additional request options. +// +// See TagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LaunchWizard) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUntagResource = "UntagResource" + +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UntagResource for more information on using the UntagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UntagResourceRequest method. +// req, resp := client.UntagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/launch-wizard-2018-05-10/UntagResource +func (c *LaunchWizard) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { + op := &request.Operation{ + Name: opUntagResource, + HTTPMethod: "DELETE", + HTTPPath: "/tags/{resourceArn}", + } + + if input == nil { + input = &UntagResourceInput{} + } + + output = &UntagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UntagResource API operation for AWS Launch Wizard. +// +// Removes the specified tags from the given resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Launch Wizard's +// API operation UntagResource for usage and error information. +// +// Returned Error Types: +// +// - InternalServerException +// An internal error has occurred. Retry your request, but if the problem persists, +// contact us with details by posting a question on re:Post (https://repost.aws/). +// +// - ValidationException +// The input fails to satisfy the constraints specified by an Amazon Web Services +// service. +// +// - ResourceNotFoundException +// The specified workload or deployment resource can't be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/launch-wizard-2018-05-10/UntagResource +func (c *LaunchWizard) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + return out, req.Send() +} + +// UntagResourceWithContext is the same as UntagResource with the addition of +// the ability to pass a context and additional request options. +// +// See UntagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LaunchWizard) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + type CreateDeploymentInput struct { _ struct{} `type:"structure"` @@ -957,8 +1320,13 @@ type CreateDeploymentInput struct { // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` - // The settings specified for the deployment. For more information on the specifications - // required for creating a deployment, see Workload specifications (https://docs.aws.amazon.com/launchwizard/latest/APIReference/launch-wizard-specifications.html). + // The settings specified for the deployment. These settings define how to deploy + // and configure your resources created by the deployment. For more information + // about the specifications required for creating a deployment for a SAP workload, + // see SAP deployment specifications (https://docs.aws.amazon.com/launchwizard/latest/APIReference/launch-wizard-specifications-sap.html). + // To retrieve the specifications required to create a deployment for other + // workloads, use the GetWorkloadDeploymentPattern (https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_GetWorkloadDeploymentPattern.html) + // operation. // // Specifications is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by CreateDeploymentInput's @@ -967,8 +1335,10 @@ type CreateDeploymentInput struct { // Specifications is a required field Specifications map[string]*string `locationName:"specifications" min:"1" type:"map" required:"true" sensitive:"true"` - // The name of the workload. You can use the ListWorkloadDeploymentPatterns - // (https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_ListWorkloadDeploymentPatterns.html) + // The tags to add to the deployment. + Tags map[string]*string `locationName:"tags" min:"1" type:"map"` + + // The name of the workload. You can use the ListWorkloads (https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_ListWorkloads.html) // operation to discover supported values for this parameter. // // WorkloadName is a required field @@ -1014,6 +1384,9 @@ func (s *CreateDeploymentInput) Validate() error { if s.Specifications != nil && len(s.Specifications) < 1 { invalidParams.Add(request.NewErrParamMinLen("Specifications", 1)) } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } if s.WorkloadName == nil { invalidParams.Add(request.NewErrParamRequired("WorkloadName")) } @@ -1051,6 +1424,12 @@ func (s *CreateDeploymentInput) SetSpecifications(v map[string]*string) *CreateD return s } +// SetTags sets the Tags field's value. +func (s *CreateDeploymentInput) SetTags(v map[string]*string) *CreateDeploymentInput { + s.Tags = v + return s +} + // SetWorkloadName sets the WorkloadName field's value. func (s *CreateDeploymentInput) SetWorkloadName(v string) *CreateDeploymentInput { s.WorkloadName = &v @@ -1177,6 +1556,58 @@ func (s *DeleteDeploymentOutput) SetStatusReason(v string) *DeleteDeploymentOutp return s } +// A field that details a condition of the specifications for a deployment. +type DeploymentConditionalField struct { + _ struct{} `type:"structure"` + + // The comparator of the condition. + // + // Valid values: Equal | NotEqual + Comparator *string `locationName:"comparator" type:"string"` + + // The name of the deployment condition. + Name *string `locationName:"name" type:"string"` + + // The value of the condition. + Value *string `locationName:"value" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeploymentConditionalField) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeploymentConditionalField) GoString() string { + return s.String() +} + +// SetComparator sets the Comparator field's value. +func (s *DeploymentConditionalField) SetComparator(v string) *DeploymentConditionalField { + s.Comparator = &v + return s +} + +// SetName sets the Name field's value. +func (s *DeploymentConditionalField) SetName(v string) *DeploymentConditionalField { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *DeploymentConditionalField) SetValue(v string) *DeploymentConditionalField { + s.Value = &v + return s +} + // The data associated with a deployment. type DeploymentData struct { _ struct{} `type:"structure"` @@ -1187,6 +1618,9 @@ type DeploymentData struct { // The time the deployment was deleted. DeletedAt *time.Time `locationName:"deletedAt" type:"timestamp"` + // The Amazon Resource Name (ARN) of the deployment. + DeploymentArn *string `locationName:"deploymentArn" type:"string"` + // The ID of the deployment. Id *string `locationName:"id" min:"2" type:"string"` @@ -1199,8 +1633,13 @@ type DeploymentData struct { // The resource group of the deployment. ResourceGroup *string `locationName:"resourceGroup" type:"string"` - // The specifications of the deployment. For more information on specifications - // for each deployment, see Workload specifications (https://docs.aws.amazon.com/launchwizard/latest/APIReference/launch-wizard-specifications.html). + // The settings specified for the deployment. These settings define how to deploy + // and configure your resources created by the deployment. For more information + // about the specifications required for creating a deployment for a SAP workload, + // see SAP deployment specifications (https://docs.aws.amazon.com/launchwizard/latest/APIReference/launch-wizard-specifications-sap.html). + // To retrieve the specifications required to create a deployment for other + // workloads, use the GetWorkloadDeploymentPattern (https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_GetWorkloadDeploymentPattern.html) + // operation. // // Specifications is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by DeploymentData's @@ -1210,6 +1649,9 @@ type DeploymentData struct { // The status of the deployment. Status *string `locationName:"status" type:"string" enum:"DeploymentStatus"` + // Information about the tags attached to a deployment. + Tags map[string]*string `locationName:"tags" min:"1" type:"map"` + // The name of the workload. WorkloadName *string `locationName:"workloadName" min:"1" type:"string"` } @@ -1244,6 +1686,12 @@ func (s *DeploymentData) SetDeletedAt(v time.Time) *DeploymentData { return s } +// SetDeploymentArn sets the DeploymentArn field's value. +func (s *DeploymentData) SetDeploymentArn(v string) *DeploymentData { + s.DeploymentArn = &v + return s +} + // SetId sets the Id field's value. func (s *DeploymentData) SetId(v string) *DeploymentData { s.Id = &v @@ -1280,6 +1728,12 @@ func (s *DeploymentData) SetStatus(v string) *DeploymentData { return s } +// SetTags sets the Tags field's value. +func (s *DeploymentData) SetTags(v map[string]*string) *DeploymentData { + s.Tags = v + return s +} + // SetWorkloadName sets the WorkloadName field's value. func (s *DeploymentData) SetWorkloadName(v string) *DeploymentData { s.WorkloadName = &v @@ -1476,6 +1930,74 @@ func (s *DeploymentFilter) SetValues(v []*string) *DeploymentFilter { return s } +// A field that details a specification of a deployment pattern. +type DeploymentSpecificationsField struct { + _ struct{} `type:"structure"` + + // The allowed values of the deployment specification. + AllowedValues []*string `locationName:"allowedValues" type:"list"` + + // The conditionals used for the deployment specification. + Conditionals []*DeploymentConditionalField `locationName:"conditionals" min:"1" type:"list"` + + // The description of the deployment specification. + Description *string `locationName:"description" type:"string"` + + // The name of the deployment specification. + Name *string `locationName:"name" type:"string"` + + // Indicates if the deployment specification is required. + Required *string `locationName:"required" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeploymentSpecificationsField) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeploymentSpecificationsField) GoString() string { + return s.String() +} + +// SetAllowedValues sets the AllowedValues field's value. +func (s *DeploymentSpecificationsField) SetAllowedValues(v []*string) *DeploymentSpecificationsField { + s.AllowedValues = v + return s +} + +// SetConditionals sets the Conditionals field's value. +func (s *DeploymentSpecificationsField) SetConditionals(v []*DeploymentConditionalField) *DeploymentSpecificationsField { + s.Conditionals = v + return s +} + +// SetDescription sets the Description field's value. +func (s *DeploymentSpecificationsField) SetDescription(v string) *DeploymentSpecificationsField { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *DeploymentSpecificationsField) SetName(v string) *DeploymentSpecificationsField { + s.Name = &v + return s +} + +// SetRequired sets the Required field's value. +func (s *DeploymentSpecificationsField) SetRequired(v string) *DeploymentSpecificationsField { + s.Required = &v + return s +} + type GetDeploymentInput struct { _ struct{} `type:"structure"` @@ -1528,8 +2050,105 @@ func (s *GetDeploymentInput) SetDeploymentId(v string) *GetDeploymentInput { type GetDeploymentOutput struct { _ struct{} `type:"structure"` - // An object that details the deployment. - Deployment *DeploymentData `locationName:"deployment" type:"structure"` + // An object that details the deployment. + Deployment *DeploymentData `locationName:"deployment" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetDeploymentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetDeploymentOutput) GoString() string { + return s.String() +} + +// SetDeployment sets the Deployment field's value. +func (s *GetDeploymentOutput) SetDeployment(v *DeploymentData) *GetDeploymentOutput { + s.Deployment = v + return s +} + +type GetWorkloadDeploymentPatternInput struct { + _ struct{} `type:"structure"` + + // The name of the deployment pattern. + // + // DeploymentPatternName is a required field + DeploymentPatternName *string `locationName:"deploymentPatternName" min:"1" type:"string" required:"true"` + + // The name of the workload. + // + // WorkloadName is a required field + WorkloadName *string `locationName:"workloadName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetWorkloadDeploymentPatternInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetWorkloadDeploymentPatternInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetWorkloadDeploymentPatternInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetWorkloadDeploymentPatternInput"} + if s.DeploymentPatternName == nil { + invalidParams.Add(request.NewErrParamRequired("DeploymentPatternName")) + } + if s.DeploymentPatternName != nil && len(*s.DeploymentPatternName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeploymentPatternName", 1)) + } + if s.WorkloadName == nil { + invalidParams.Add(request.NewErrParamRequired("WorkloadName")) + } + if s.WorkloadName != nil && len(*s.WorkloadName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkloadName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeploymentPatternName sets the DeploymentPatternName field's value. +func (s *GetWorkloadDeploymentPatternInput) SetDeploymentPatternName(v string) *GetWorkloadDeploymentPatternInput { + s.DeploymentPatternName = &v + return s +} + +// SetWorkloadName sets the WorkloadName field's value. +func (s *GetWorkloadDeploymentPatternInput) SetWorkloadName(v string) *GetWorkloadDeploymentPatternInput { + s.WorkloadName = &v + return s +} + +type GetWorkloadDeploymentPatternOutput struct { + _ struct{} `type:"structure"` + + // Details about the workload deployment pattern. + WorkloadDeploymentPattern *WorkloadDeploymentPatternData `locationName:"workloadDeploymentPattern" type:"structure"` } // String returns the string representation. @@ -1537,7 +2156,7 @@ type GetDeploymentOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetDeploymentOutput) String() string { +func (s GetWorkloadDeploymentPatternOutput) String() string { return awsutil.Prettify(s) } @@ -1546,13 +2165,13 @@ func (s GetDeploymentOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetDeploymentOutput) GoString() string { +func (s GetWorkloadDeploymentPatternOutput) GoString() string { return s.String() } -// SetDeployment sets the Deployment field's value. -func (s *GetDeploymentOutput) SetDeployment(v *DeploymentData) *GetDeploymentOutput { - s.Deployment = v +// SetWorkloadDeploymentPattern sets the WorkloadDeploymentPattern field's value. +func (s *GetWorkloadDeploymentPatternOutput) SetWorkloadDeploymentPattern(v *WorkloadDeploymentPatternData) *GetWorkloadDeploymentPatternOutput { + s.WorkloadDeploymentPattern = v return s } @@ -1822,9 +2441,10 @@ type ListDeploymentsInput struct { // Filters to scope the results. The following filters are supported: // - // * WORKLOAD_NAME + // * WORKLOAD_NAME - The name used in deployments. // - // * DEPLOYMENT_STATUS + // * DEPLOYMENT_STATUS - COMPLETED | CREATING | DELETE_IN_PROGRESS | DELETE_INITIATING + // | DELETE_FAILED | DELETED | FAILED | IN_PROGRESS | VALIDATING Filters []*DeploymentFilter `locationName:"filters" min:"1" type:"list"` // The maximum number of items to return for this request. To get the next page @@ -1932,6 +2552,86 @@ func (s *ListDeploymentsOutput) SetNextToken(v string) *ListDeploymentsOutput { return s } +type ListTagsForResourceInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The Amazon Resource Name (ARN) of the resource. + // + // ResourceArn is a required field + ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTagsForResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { + s.ResourceArn = &v + return s +} + +type ListTagsForResourceOutput struct { + _ struct{} `type:"structure"` + + // Information about the tags. + Tags map[string]*string `locationName:"tags" min:"1" type:"map"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceOutput) GoString() string { + return s.String() +} + +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput { + s.Tags = v + return s +} + type ListWorkloadDeploymentPatternsInput struct { _ struct{} `type:"structure"` @@ -2276,6 +2976,182 @@ func (s *ResourceNotFoundException) RequestID() string { return s.RespMetadata.RequestID } +type TagResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the resource. + // + // ResourceArn is a required field + ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` + + // One or more tags to attach to the resource. + // + // Tags is a required field + Tags map[string]*string `locationName:"tags" min:"1" type:"map" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { + s.ResourceArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput { + s.Tags = v + return s +} + +type TagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagResourceOutput) GoString() string { + return s.String() +} + +type UntagResourceInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The Amazon Resource Name (ARN) of the resource. + // + // ResourceArn is a required field + ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` + + // Keys identifying the tags to remove. + // + // TagKeys is a required field + TagKeys []*string `location:"querystring" locationName:"tagKeys" min:"1" type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UntagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) + } + if s.TagKeys != nil && len(s.TagKeys) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { + s.ResourceArn = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { + s.TagKeys = v + return s +} + +type UntagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceOutput) GoString() string { + return s.String() +} + // The input fails to satisfy the constraints specified by an Amazon Web Services // service. type ValidationException struct { @@ -2468,6 +3344,107 @@ func (s *WorkloadDataSummary) SetWorkloadName(v string) *WorkloadDataSummary { return s } +// The data that details a workload deployment pattern. +type WorkloadDeploymentPatternData struct { + _ struct{} `type:"structure"` + + // The name of the deployment pattern. + DeploymentPatternName *string `locationName:"deploymentPatternName" min:"1" type:"string"` + + // The description of the deployment pattern. + Description *string `locationName:"description" type:"string"` + + // The display name of the deployment pattern. + DisplayName *string `locationName:"displayName" type:"string"` + + // The settings specified for the deployment. These settings define how to deploy + // and configure your resources created by the deployment. For more information + // about the specifications required for creating a deployment for a SAP workload, + // see SAP deployment specifications (https://docs.aws.amazon.com/launchwizard/latest/APIReference/launch-wizard-specifications-sap.html). + // To retrieve the specifications required to create a deployment for other + // workloads, use the GetWorkloadDeploymentPattern (https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_GetWorkloadDeploymentPattern.html) + // operation. + Specifications []*DeploymentSpecificationsField `locationName:"specifications" min:"1" type:"list"` + + // The status of the deployment pattern. + Status *string `locationName:"status" type:"string" enum:"WorkloadDeploymentPatternStatus"` + + // The status message of the deployment pattern. + StatusMessage *string `locationName:"statusMessage" type:"string"` + + // The workload name of the deployment pattern. + WorkloadName *string `locationName:"workloadName" min:"1" type:"string"` + + // The workload version name of the deployment pattern. + WorkloadVersionName *string `locationName:"workloadVersionName" min:"5" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s WorkloadDeploymentPatternData) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s WorkloadDeploymentPatternData) GoString() string { + return s.String() +} + +// SetDeploymentPatternName sets the DeploymentPatternName field's value. +func (s *WorkloadDeploymentPatternData) SetDeploymentPatternName(v string) *WorkloadDeploymentPatternData { + s.DeploymentPatternName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *WorkloadDeploymentPatternData) SetDescription(v string) *WorkloadDeploymentPatternData { + s.Description = &v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *WorkloadDeploymentPatternData) SetDisplayName(v string) *WorkloadDeploymentPatternData { + s.DisplayName = &v + return s +} + +// SetSpecifications sets the Specifications field's value. +func (s *WorkloadDeploymentPatternData) SetSpecifications(v []*DeploymentSpecificationsField) *WorkloadDeploymentPatternData { + s.Specifications = v + return s +} + +// SetStatus sets the Status field's value. +func (s *WorkloadDeploymentPatternData) SetStatus(v string) *WorkloadDeploymentPatternData { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *WorkloadDeploymentPatternData) SetStatusMessage(v string) *WorkloadDeploymentPatternData { + s.StatusMessage = &v + return s +} + +// SetWorkloadName sets the WorkloadName field's value. +func (s *WorkloadDeploymentPatternData) SetWorkloadName(v string) *WorkloadDeploymentPatternData { + s.WorkloadName = &v + return s +} + +// SetWorkloadVersionName sets the WorkloadVersionName field's value. +func (s *WorkloadDeploymentPatternData) SetWorkloadVersionName(v string) *WorkloadDeploymentPatternData { + s.WorkloadVersionName = &v + return s +} + // Describes a workload deployment pattern. type WorkloadDeploymentPatternDataSummary struct { _ struct{} `type:"structure"` diff --git a/service/launchwizard/launchwizardiface/interface.go b/service/launchwizard/launchwizardiface/interface.go index fc87f1c0ff8..bce76e2899f 100644 --- a/service/launchwizard/launchwizardiface/interface.go +++ b/service/launchwizard/launchwizardiface/interface.go @@ -76,6 +76,10 @@ type LaunchWizardAPI interface { GetWorkloadWithContext(aws.Context, *launchwizard.GetWorkloadInput, ...request.Option) (*launchwizard.GetWorkloadOutput, error) GetWorkloadRequest(*launchwizard.GetWorkloadInput) (*request.Request, *launchwizard.GetWorkloadOutput) + GetWorkloadDeploymentPattern(*launchwizard.GetWorkloadDeploymentPatternInput) (*launchwizard.GetWorkloadDeploymentPatternOutput, error) + GetWorkloadDeploymentPatternWithContext(aws.Context, *launchwizard.GetWorkloadDeploymentPatternInput, ...request.Option) (*launchwizard.GetWorkloadDeploymentPatternOutput, error) + GetWorkloadDeploymentPatternRequest(*launchwizard.GetWorkloadDeploymentPatternInput) (*request.Request, *launchwizard.GetWorkloadDeploymentPatternOutput) + ListDeploymentEvents(*launchwizard.ListDeploymentEventsInput) (*launchwizard.ListDeploymentEventsOutput, error) ListDeploymentEventsWithContext(aws.Context, *launchwizard.ListDeploymentEventsInput, ...request.Option) (*launchwizard.ListDeploymentEventsOutput, error) ListDeploymentEventsRequest(*launchwizard.ListDeploymentEventsInput) (*request.Request, *launchwizard.ListDeploymentEventsOutput) @@ -90,6 +94,10 @@ type LaunchWizardAPI interface { ListDeploymentsPages(*launchwizard.ListDeploymentsInput, func(*launchwizard.ListDeploymentsOutput, bool) bool) error ListDeploymentsPagesWithContext(aws.Context, *launchwizard.ListDeploymentsInput, func(*launchwizard.ListDeploymentsOutput, bool) bool, ...request.Option) error + ListTagsForResource(*launchwizard.ListTagsForResourceInput) (*launchwizard.ListTagsForResourceOutput, error) + ListTagsForResourceWithContext(aws.Context, *launchwizard.ListTagsForResourceInput, ...request.Option) (*launchwizard.ListTagsForResourceOutput, error) + ListTagsForResourceRequest(*launchwizard.ListTagsForResourceInput) (*request.Request, *launchwizard.ListTagsForResourceOutput) + ListWorkloadDeploymentPatterns(*launchwizard.ListWorkloadDeploymentPatternsInput) (*launchwizard.ListWorkloadDeploymentPatternsOutput, error) ListWorkloadDeploymentPatternsWithContext(aws.Context, *launchwizard.ListWorkloadDeploymentPatternsInput, ...request.Option) (*launchwizard.ListWorkloadDeploymentPatternsOutput, error) ListWorkloadDeploymentPatternsRequest(*launchwizard.ListWorkloadDeploymentPatternsInput) (*request.Request, *launchwizard.ListWorkloadDeploymentPatternsOutput) @@ -103,6 +111,14 @@ type LaunchWizardAPI interface { ListWorkloadsPages(*launchwizard.ListWorkloadsInput, func(*launchwizard.ListWorkloadsOutput, bool) bool) error ListWorkloadsPagesWithContext(aws.Context, *launchwizard.ListWorkloadsInput, func(*launchwizard.ListWorkloadsOutput, bool) bool, ...request.Option) error + + TagResource(*launchwizard.TagResourceInput) (*launchwizard.TagResourceOutput, error) + TagResourceWithContext(aws.Context, *launchwizard.TagResourceInput, ...request.Option) (*launchwizard.TagResourceOutput, error) + TagResourceRequest(*launchwizard.TagResourceInput) (*request.Request, *launchwizard.TagResourceOutput) + + UntagResource(*launchwizard.UntagResourceInput) (*launchwizard.UntagResourceOutput, error) + UntagResourceWithContext(aws.Context, *launchwizard.UntagResourceInput, ...request.Option) (*launchwizard.UntagResourceOutput, error) + UntagResourceRequest(*launchwizard.UntagResourceInput) (*request.Request, *launchwizard.UntagResourceOutput) } var _ LaunchWizardAPI = (*launchwizard.LaunchWizard)(nil)