Update Go AWS SDK to the latest version

This commit is contained in:
Andrey Smirnov
2019-07-13 00:03:55 +03:00
committed by Andrey Smirnov
parent d08be990ef
commit 94a72b23ff
2183 changed files with 885887 additions and 228114 deletions
@@ -0,0 +1,365 @@
{
"version":"2.0",
"metadata":{
"apiVersion":"2017-12-19",
"endpointPrefix":"macie",
"jsonVersion":"1.1",
"protocol":"json",
"serviceFullName":"Amazon Macie",
"serviceId":"Macie",
"signatureVersion":"v4",
"targetPrefix":"MacieService",
"uid":"macie-2017-12-19"
},
"operations":{
"AssociateMemberAccount":{
"name":"AssociateMemberAccount",
"http":{
"method":"POST",
"requestUri":"/"
},
"input":{"shape":"AssociateMemberAccountRequest"},
"errors":[
{"shape":"InvalidInputException"},
{"shape":"LimitExceededException"},
{"shape":"InternalException"}
]
},
"AssociateS3Resources":{
"name":"AssociateS3Resources",
"http":{
"method":"POST",
"requestUri":"/"
},
"input":{"shape":"AssociateS3ResourcesRequest"},
"output":{"shape":"AssociateS3ResourcesResult"},
"errors":[
{"shape":"InvalidInputException"},
{"shape":"AccessDeniedException"},
{"shape":"LimitExceededException"},
{"shape":"InternalException"}
]
},
"DisassociateMemberAccount":{
"name":"DisassociateMemberAccount",
"http":{
"method":"POST",
"requestUri":"/"
},
"input":{"shape":"DisassociateMemberAccountRequest"},
"errors":[
{"shape":"InvalidInputException"},
{"shape":"InternalException"}
]
},
"DisassociateS3Resources":{
"name":"DisassociateS3Resources",
"http":{
"method":"POST",
"requestUri":"/"
},
"input":{"shape":"DisassociateS3ResourcesRequest"},
"output":{"shape":"DisassociateS3ResourcesResult"},
"errors":[
{"shape":"InvalidInputException"},
{"shape":"AccessDeniedException"},
{"shape":"InternalException"}
]
},
"ListMemberAccounts":{
"name":"ListMemberAccounts",
"http":{
"method":"POST",
"requestUri":"/"
},
"input":{"shape":"ListMemberAccountsRequest"},
"output":{"shape":"ListMemberAccountsResult"},
"errors":[
{"shape":"InternalException"},
{"shape":"InvalidInputException"}
]
},
"ListS3Resources":{
"name":"ListS3Resources",
"http":{
"method":"POST",
"requestUri":"/"
},
"input":{"shape":"ListS3ResourcesRequest"},
"output":{"shape":"ListS3ResourcesResult"},
"errors":[
{"shape":"InvalidInputException"},
{"shape":"AccessDeniedException"},
{"shape":"InternalException"}
]
},
"UpdateS3Resources":{
"name":"UpdateS3Resources",
"http":{
"method":"POST",
"requestUri":"/"
},
"input":{"shape":"UpdateS3ResourcesRequest"},
"output":{"shape":"UpdateS3ResourcesResult"},
"errors":[
{"shape":"InvalidInputException"},
{"shape":"AccessDeniedException"},
{"shape":"InternalException"}
]
}
},
"shapes":{
"AWSAccountId":{
"type":"string",
"pattern":"[0-9]{12}"
},
"AccessDeniedException":{
"type":"structure",
"members":{
"message":{"shape":"ExceptionMessage"},
"resourceType":{"shape":"ResourceType"}
},
"exception":true
},
"AssociateMemberAccountRequest":{
"type":"structure",
"required":["memberAccountId"],
"members":{
"memberAccountId":{"shape":"AWSAccountId"}
}
},
"AssociateS3ResourcesRequest":{
"type":"structure",
"required":["s3Resources"],
"members":{
"memberAccountId":{"shape":"AWSAccountId"},
"s3Resources":{"shape":"S3ResourcesClassification"}
}
},
"AssociateS3ResourcesResult":{
"type":"structure",
"members":{
"failedS3Resources":{"shape":"FailedS3Resources"}
}
},
"BucketName":{
"type":"string",
"max":500
},
"ClassificationType":{
"type":"structure",
"required":[
"oneTime",
"continuous"
],
"members":{
"oneTime":{"shape":"S3OneTimeClassificationType"},
"continuous":{"shape":"S3ContinuousClassificationType"}
}
},
"ClassificationTypeUpdate":{
"type":"structure",
"members":{
"oneTime":{"shape":"S3OneTimeClassificationType"},
"continuous":{"shape":"S3ContinuousClassificationType"}
}
},
"DisassociateMemberAccountRequest":{
"type":"structure",
"required":["memberAccountId"],
"members":{
"memberAccountId":{"shape":"AWSAccountId"}
}
},
"DisassociateS3ResourcesRequest":{
"type":"structure",
"required":["associatedS3Resources"],
"members":{
"memberAccountId":{"shape":"AWSAccountId"},
"associatedS3Resources":{"shape":"S3Resources"}
}
},
"DisassociateS3ResourcesResult":{
"type":"structure",
"members":{
"failedS3Resources":{"shape":"FailedS3Resources"}
}
},
"ErrorCode":{
"type":"string",
"max":10
},
"ExceptionMessage":{
"type":"string",
"max":10000
},
"FailedS3Resource":{
"type":"structure",
"members":{
"failedItem":{"shape":"S3Resource"},
"errorCode":{"shape":"ErrorCode"},
"errorMessage":{"shape":"ExceptionMessage"}
}
},
"FailedS3Resources":{
"type":"list",
"member":{"shape":"FailedS3Resource"}
},
"FieldName":{
"type":"string",
"max":1000
},
"InternalException":{
"type":"structure",
"members":{
"errorCode":{"shape":"ErrorCode"},
"message":{"shape":"ExceptionMessage"}
},
"exception":true,
"fault":true
},
"InvalidInputException":{
"type":"structure",
"members":{
"errorCode":{"shape":"ErrorCode"},
"message":{"shape":"ExceptionMessage"},
"fieldName":{"shape":"FieldName"}
},
"exception":true
},
"LimitExceededException":{
"type":"structure",
"members":{
"errorCode":{"shape":"ErrorCode"},
"message":{"shape":"ExceptionMessage"},
"resourceType":{"shape":"ResourceType"}
},
"exception":true
},
"ListMemberAccountsRequest":{
"type":"structure",
"members":{
"nextToken":{"shape":"NextToken"},
"maxResults":{"shape":"MaxResults"}
}
},
"ListMemberAccountsResult":{
"type":"structure",
"members":{
"memberAccounts":{"shape":"MemberAccounts"},
"nextToken":{"shape":"NextToken"}
}
},
"ListS3ResourcesRequest":{
"type":"structure",
"members":{
"memberAccountId":{"shape":"AWSAccountId"},
"nextToken":{"shape":"NextToken"},
"maxResults":{"shape":"MaxResults"}
}
},
"ListS3ResourcesResult":{
"type":"structure",
"members":{
"s3Resources":{"shape":"S3ResourcesClassification"},
"nextToken":{"shape":"NextToken"}
}
},
"MaxResults":{
"type":"integer",
"box":true,
"max":250
},
"MemberAccount":{
"type":"structure",
"members":{
"accountId":{"shape":"AWSAccountId"}
}
},
"MemberAccounts":{
"type":"list",
"member":{"shape":"MemberAccount"}
},
"NextToken":{
"type":"string",
"max":500
},
"Prefix":{
"type":"string",
"max":10000
},
"ResourceType":{
"type":"string",
"max":1000
},
"S3ContinuousClassificationType":{
"type":"string",
"enum":["FULL"]
},
"S3OneTimeClassificationType":{
"type":"string",
"enum":[
"FULL",
"NONE"
]
},
"S3Resource":{
"type":"structure",
"required":["bucketName"],
"members":{
"bucketName":{"shape":"BucketName"},
"prefix":{"shape":"Prefix"}
}
},
"S3ResourceClassification":{
"type":"structure",
"required":[
"bucketName",
"classificationType"
],
"members":{
"bucketName":{"shape":"BucketName"},
"prefix":{"shape":"Prefix"},
"classificationType":{"shape":"ClassificationType"}
}
},
"S3ResourceClassificationUpdate":{
"type":"structure",
"required":[
"bucketName",
"classificationTypeUpdate"
],
"members":{
"bucketName":{"shape":"BucketName"},
"prefix":{"shape":"Prefix"},
"classificationTypeUpdate":{"shape":"ClassificationTypeUpdate"}
}
},
"S3Resources":{
"type":"list",
"member":{"shape":"S3Resource"}
},
"S3ResourcesClassification":{
"type":"list",
"member":{"shape":"S3ResourceClassification"}
},
"S3ResourcesClassificationUpdate":{
"type":"list",
"member":{"shape":"S3ResourceClassificationUpdate"}
},
"UpdateS3ResourcesRequest":{
"type":"structure",
"required":["s3ResourcesUpdate"],
"members":{
"memberAccountId":{"shape":"AWSAccountId"},
"s3ResourcesUpdate":{"shape":"S3ResourcesClassificationUpdate"}
}
},
"UpdateS3ResourcesResult":{
"type":"structure",
"members":{
"failedS3Resources":{"shape":"FailedS3Resources"}
}
}
}
}
@@ -0,0 +1,261 @@
{
"version":"2.0",
"service":"<fullname>Amazon Macie</fullname> <p>Amazon Macie is a security service that uses machine learning to automatically discover, classify, and protect sensitive data in AWS. Macie recognizes sensitive data such as personally identifiable information (PII) or intellectual property, and provides you with dashboards and alerts that give visibility into how this data is being accessed or moved. For more information, see the <a href=\"https://docs.aws.amazon.com/macie/latest/userguide/what-is-macie.html\">Macie User Guide</a>. </p>",
"operations":{
"AssociateMemberAccount":"<p>Associates a specified AWS account with Amazon Macie as a member account.</p>",
"AssociateS3Resources":"<p>Associates specified S3 resources with Amazon Macie for monitoring and data classification. If memberAccountId isn't specified, the action associates specified S3 resources with Macie for the current master account. If memberAccountId is specified, the action associates specified S3 resources with Macie for the specified member account. </p>",
"DisassociateMemberAccount":"<p>Removes the specified member account from Amazon Macie.</p>",
"DisassociateS3Resources":"<p>Removes specified S3 resources from being monitored by Amazon Macie. If memberAccountId isn't specified, the action removes specified S3 resources from Macie for the current master account. If memberAccountId is specified, the action removes specified S3 resources from Macie for the specified member account.</p>",
"ListMemberAccounts":"<p>Lists all Amazon Macie member accounts for the current Amazon Macie master account.</p>",
"ListS3Resources":"<p>Lists all the S3 resources associated with Amazon Macie. If memberAccountId isn't specified, the action lists the S3 resources associated with Amazon Macie for the current master account. If memberAccountId is specified, the action lists the S3 resources associated with Amazon Macie for the specified member account. </p>",
"UpdateS3Resources":"<p>Updates the classification types for the specified S3 resources. If memberAccountId isn't specified, the action updates the classification types of the S3 resources associated with Amazon Macie for the current master account. If memberAccountId is specified, the action updates the classification types of the S3 resources associated with Amazon Macie for the specified member account. </p>"
},
"shapes":{
"AWSAccountId":{
"base":null,
"refs":{
"AssociateMemberAccountRequest$memberAccountId":"<p>The ID of the AWS account that you want to associate with Amazon Macie as a member account.</p>",
"AssociateS3ResourcesRequest$memberAccountId":"<p>The ID of the Amazon Macie member account whose resources you want to associate with Macie. </p>",
"DisassociateMemberAccountRequest$memberAccountId":"<p>The ID of the member account that you want to remove from Amazon Macie.</p>",
"DisassociateS3ResourcesRequest$memberAccountId":"<p>The ID of the Amazon Macie member account whose resources you want to remove from being monitored by Amazon Macie. </p>",
"ListS3ResourcesRequest$memberAccountId":"<p>The Amazon Macie member account ID whose associated S3 resources you want to list. </p>",
"MemberAccount$accountId":"<p>The AWS account ID of the Amazon Macie member account.</p>",
"UpdateS3ResourcesRequest$memberAccountId":"<p>The AWS ID of the Amazon Macie member account whose S3 resources' classification types you want to update. </p>"
}
},
"AccessDeniedException":{
"base":"<p>You do not have required permissions to access the requested resource.</p>",
"refs":{
}
},
"AssociateMemberAccountRequest":{
"base":null,
"refs":{
}
},
"AssociateS3ResourcesRequest":{
"base":null,
"refs":{
}
},
"AssociateS3ResourcesResult":{
"base":null,
"refs":{
}
},
"BucketName":{
"base":null,
"refs":{
"S3Resource$bucketName":"<p>The name of the S3 bucket.</p>",
"S3ResourceClassification$bucketName":"<p>The name of the S3 bucket that you want to associate with Amazon Macie.</p>",
"S3ResourceClassificationUpdate$bucketName":"<p>The name of the S3 bucket whose classification types you want to update.</p>"
}
},
"ClassificationType":{
"base":"<p>The classification type that Amazon Macie applies to the associated S3 resources. </p>",
"refs":{
"S3ResourceClassification$classificationType":"<p>The classification type that you want to specify for the resource associated with Amazon Macie. </p>"
}
},
"ClassificationTypeUpdate":{
"base":"<p>The classification type that Amazon Macie applies to the associated S3 resources. At least one of the classification types (oneTime or continuous) must be specified. </p>",
"refs":{
"S3ResourceClassificationUpdate$classificationTypeUpdate":"<p>The classification type that you want to update for the resource associated with Amazon Macie. </p>"
}
},
"DisassociateMemberAccountRequest":{
"base":null,
"refs":{
}
},
"DisassociateS3ResourcesRequest":{
"base":null,
"refs":{
}
},
"DisassociateS3ResourcesResult":{
"base":null,
"refs":{
}
},
"ErrorCode":{
"base":"Error code for the exception",
"refs":{
"FailedS3Resource$errorCode":"<p>The status code of a failed item.</p>",
"InternalException$errorCode":null,
"InvalidInputException$errorCode":null,
"LimitExceededException$errorCode":null
}
},
"ExceptionMessage":{
"base":null,
"refs":{
"AccessDeniedException$message":null,
"FailedS3Resource$errorMessage":"<p>The error message of a failed item.</p>",
"InternalException$message":null,
"InvalidInputException$message":null,
"LimitExceededException$message":null
}
},
"FailedS3Resource":{
"base":"<p>Includes details about the failed S3 resources.</p>",
"refs":{
"FailedS3Resources$member":null
}
},
"FailedS3Resources":{
"base":null,
"refs":{
"AssociateS3ResourcesResult$failedS3Resources":"<p>S3 resources that couldn't be associated with Amazon Macie. An error code and an error message are provided for each failed item. </p>",
"DisassociateS3ResourcesResult$failedS3Resources":"<p>S3 resources that couldn't be removed from being monitored and classified by Amazon Macie. An error code and an error message are provided for each failed item. </p>",
"UpdateS3ResourcesResult$failedS3Resources":"<p>The S3 resources whose classification types can't be updated. An error code and an error message are provided for each failed item. </p>"
}
},
"FieldName":{
"base":"Field that has invalid input",
"refs":{
"InvalidInputException$fieldName":null
}
},
"InternalException":{
"base":"<p>Internal server error.</p>",
"refs":{
}
},
"InvalidInputException":{
"base":"<p>The request was rejected because an invalid or out-of-range value was supplied for an input parameter. </p>",
"refs":{
}
},
"LimitExceededException":{
"base":"<p>The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded. </p>",
"refs":{
}
},
"ListMemberAccountsRequest":{
"base":null,
"refs":{
}
},
"ListMemberAccountsResult":{
"base":null,
"refs":{
}
},
"ListS3ResourcesRequest":{
"base":null,
"refs":{
}
},
"ListS3ResourcesResult":{
"base":null,
"refs":{
}
},
"MaxResults":{
"base":null,
"refs":{
"ListMemberAccountsRequest$maxResults":"<p>Use this parameter to indicate the maximum number of items that you want in the response. The default value is 250. </p>",
"ListS3ResourcesRequest$maxResults":"<p>Use this parameter to indicate the maximum number of items that you want in the response. The default value is 250. </p>"
}
},
"MemberAccount":{
"base":"<p>Contains information about the Amazon Macie member account.</p>",
"refs":{
"MemberAccounts$member":null
}
},
"MemberAccounts":{
"base":null,
"refs":{
"ListMemberAccountsResult$memberAccounts":"<p>A list of the Amazon Macie member accounts returned by the action. The current master account is also included in this list. </p>"
}
},
"NextToken":{
"base":null,
"refs":{
"ListMemberAccountsRequest$nextToken":"<p>Use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListMemberAccounts action. Subsequent calls to the action fill nextToken in the request with the value of nextToken from the previous response to continue listing data. </p>",
"ListMemberAccountsResult$nextToken":"<p>When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null. </p>",
"ListS3ResourcesRequest$nextToken":"<p>Use this parameter when paginating results. Set its value to null on your first call to the ListS3Resources action. Subsequent calls to the action fill nextToken in the request with the value of nextToken from the previous response to continue listing data. </p>",
"ListS3ResourcesResult$nextToken":"<p>When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null. </p>"
}
},
"Prefix":{
"base":null,
"refs":{
"S3Resource$prefix":"<p>The prefix of the S3 bucket. </p>",
"S3ResourceClassification$prefix":"<p>The prefix of the S3 bucket that you want to associate with Amazon Macie.</p>",
"S3ResourceClassificationUpdate$prefix":"<p>The prefix of the S3 bucket whose classification types you want to update.</p>"
}
},
"ResourceType":{
"base":"Resource type that caused the exception",
"refs":{
"AccessDeniedException$resourceType":null,
"LimitExceededException$resourceType":null
}
},
"S3ContinuousClassificationType":{
"base":null,
"refs":{
"ClassificationType$continuous":"<p>A continuous classification of the objects that are added to a specified S3 bucket. Amazon Macie begins performing continuous classification after a bucket is successfully associated with Amazon Macie. </p>",
"ClassificationTypeUpdate$continuous":"<p>A continuous classification of the objects that are added to a specified S3 bucket. Amazon Macie begins performing continuous classification after a bucket is successfully associated with Amazon Macie. </p>"
}
},
"S3OneTimeClassificationType":{
"base":null,
"refs":{
"ClassificationType$oneTime":"<p>A one-time classification of all of the existing objects in a specified S3 bucket. </p>",
"ClassificationTypeUpdate$oneTime":"<p>A one-time classification of all of the existing objects in a specified S3 bucket. </p>"
}
},
"S3Resource":{
"base":"<p>Contains information about the S3 resource. This data type is used as a request parameter in the DisassociateS3Resources action and can be used as a response parameter in the AssociateS3Resources and UpdateS3Resources actions. </p>",
"refs":{
"FailedS3Resource$failedItem":"<p>The failed S3 resources.</p>",
"S3Resources$member":null
}
},
"S3ResourceClassification":{
"base":"<p>The S3 resources that you want to associate with Amazon Macie for monitoring and data classification. This data type is used as a request parameter in the AssociateS3Resources action and a response parameter in the ListS3Resources action. </p>",
"refs":{
"S3ResourcesClassification$member":null
}
},
"S3ResourceClassificationUpdate":{
"base":"<p>The S3 resources whose classification types you want to update. This data type is used as a request parameter in the UpdateS3Resources action. </p>",
"refs":{
"S3ResourcesClassificationUpdate$member":null
}
},
"S3Resources":{
"base":null,
"refs":{
"DisassociateS3ResourcesRequest$associatedS3Resources":"<p>The S3 resources (buckets or prefixes) that you want to remove from being monitored and classified by Amazon Macie. </p>"
}
},
"S3ResourcesClassification":{
"base":null,
"refs":{
"AssociateS3ResourcesRequest$s3Resources":"<p>The S3 resources that you want to associate with Amazon Macie for monitoring and data classification. </p>",
"ListS3ResourcesResult$s3Resources":"<p>A list of the associated S3 resources returned by the action.</p>"
}
},
"S3ResourcesClassificationUpdate":{
"base":null,
"refs":{
"UpdateS3ResourcesRequest$s3ResourcesUpdate":"<p>The S3 resources whose classification types you want to update.</p>"
}
},
"UpdateS3ResourcesRequest":{
"base":null,
"refs":{
}
},
"UpdateS3ResourcesResult":{
"base":null,
"refs":{
}
}
}
}
@@ -0,0 +1,5 @@
{
"version":"1.0",
"examples":{
}
}
@@ -0,0 +1,14 @@
{
"pagination":{
"ListMemberAccounts":{
"input_token":"nextToken",
"output_token":"nextToken",
"limit_key":"maxResults"
},
"ListS3Resources":{
"input_token":"nextToken",
"output_token":"nextToken",
"limit_key":"maxResults"
}
}
}