diff --git a/apis/macie/2017-12-19/api-2.json b/apis/macie/2017-12-19/api-2.json
deleted file mode 100644
index b5ea29b2cc2..00000000000
--- a/apis/macie/2017-12-19/api-2.json
+++ /dev/null
@@ -1,365 +0,0 @@
-{
- "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"}
- }
- }
- }
-}
diff --git a/apis/macie/2017-12-19/docs-2.json b/apis/macie/2017-12-19/docs-2.json
deleted file mode 100644
index 8d78d3f52c0..00000000000
--- a/apis/macie/2017-12-19/docs-2.json
+++ /dev/null
@@ -1,261 +0,0 @@
-{
- "version": "2.0",
- "service": "Amazon Macie Classic
Amazon Macie Classic has been discontinued and is no longer available.
A new Amazon Macie is now available with significant design improvements and additional features, at a lower price and in most Amazon Web Services Regions. We encourage you to take advantage of the new and improved features, and benefit from the reduced cost. To learn about features and pricing for the new Macie, see Amazon Macie. To learn how to use the new Macie, see the Amazon Macie User Guide.
",
- "operations": {
- "AssociateMemberAccount": "(Discontinued) Associates a specified Amazon Web Services account with Amazon Macie Classic as a member account.
",
- "AssociateS3Resources": "(Discontinued) Associates specified S3 resources with Amazon Macie Classic for monitoring and data classification. If memberAccountId
isn't specified, the action associates specified S3 resources with Macie Classic for the current Macie Classic administrator account. If memberAccountId
is specified, the action associates specified S3 resources with Macie Classic for the specified member account.
",
- "DisassociateMemberAccount": "(Discontinued) Removes the specified member account from Amazon Macie Classic.
",
- "DisassociateS3Resources": "(Discontinued) Removes specified S3 resources from being monitored by Amazon Macie Classic. If memberAccountId
isn't specified, the action removes specified S3 resources from Macie Classic for the current Macie Classic administrator account. If memberAccountId
is specified, the action removes specified S3 resources from Macie Classic for the specified member account.
",
- "ListMemberAccounts": "(Discontinued) Lists all Amazon Macie Classic member accounts for the current Macie Classic administrator account.
",
- "ListS3Resources": "(Discontinued) Lists all the S3 resources associated with Amazon Macie Classic. If memberAccountId
isn't specified, the action lists the S3 resources associated with Macie Classic for the current Macie Classic administrator account. If memberAccountId
is specified, the action lists the S3 resources associated with Macie Classic for the specified member account.
",
- "UpdateS3Resources": "(Discontinued) 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 Classic for the current Macie Classic administrator account. If memberAccountId
is specified, the action updates the classification types of the S3 resources associated with Macie Classic for the specified member account.
"
- },
- "shapes": {
- "AWSAccountId": {
- "base": null,
- "refs": {
- "AssociateMemberAccountRequest$memberAccountId": "(Discontinued) The ID of the Amazon Web Services account that you want to associate with Amazon Macie Classic as a member account.
",
- "AssociateS3ResourcesRequest$memberAccountId": "(Discontinued) The ID of the Amazon Macie Classic member account whose resources you want to associate with Macie Classic.
",
- "DisassociateMemberAccountRequest$memberAccountId": "(Discontinued) The ID of the member account that you want to remove from Amazon Macie Classic.
",
- "DisassociateS3ResourcesRequest$memberAccountId": "(Discontinued) The ID of the Amazon Macie Classic member account whose resources you want to remove from being monitored by Macie Classic.
",
- "ListS3ResourcesRequest$memberAccountId": "(Discontinued) The Amazon Macie Classic member account ID whose associated S3 resources you want to list.
",
- "MemberAccount$accountId": "(Discontinued) The Amazon Web Services account ID of the Amazon Macie Classic member account.
",
- "UpdateS3ResourcesRequest$memberAccountId": "(Discontinued) The Amazon Web Services account ID of the Amazon Macie Classic member account whose S3 resources' classification types you want to update.
"
- }
- },
- "AccessDeniedException": {
- "base": "(Discontinued) You do not have required permissions to access the requested resource.
",
- "refs": {
- }
- },
- "AssociateMemberAccountRequest": {
- "base": null,
- "refs": {
- }
- },
- "AssociateS3ResourcesRequest": {
- "base": null,
- "refs": {
- }
- },
- "AssociateS3ResourcesResult": {
- "base": null,
- "refs": {
- }
- },
- "BucketName": {
- "base": null,
- "refs": {
- "S3Resource$bucketName": "(Discontinued) The name of the S3 bucket.
",
- "S3ResourceClassification$bucketName": "(Discontinued) The name of the S3 bucket that you want to associate with Amazon Macie Classic.
",
- "S3ResourceClassificationUpdate$bucketName": "(Discontinued) The name of the S3 bucket whose classification types you want to update.
"
- }
- },
- "ClassificationType": {
- "base": "(Discontinued) The classification type that Amazon Macie Classic applies to the associated S3 resources.
",
- "refs": {
- "S3ResourceClassification$classificationType": "(Discontinued) The classification type that you want to specify for the resource associated with Amazon Macie Classic.
"
- }
- },
- "ClassificationTypeUpdate": {
- "base": "(Discontinued) The classification type that Amazon Macie Classic applies to the associated S3 resources. At least one of the classification types (oneTime
or continuous
) must be specified.
",
- "refs": {
- "S3ResourceClassificationUpdate$classificationTypeUpdate": "(Discontinued) The classification type that you want to update for the resource associated with Amazon Macie Classic.
"
- }
- },
- "DisassociateMemberAccountRequest": {
- "base": null,
- "refs": {
- }
- },
- "DisassociateS3ResourcesRequest": {
- "base": null,
- "refs": {
- }
- },
- "DisassociateS3ResourcesResult": {
- "base": null,
- "refs": {
- }
- },
- "ErrorCode": {
- "base": "Error code for the exception",
- "refs": {
- "FailedS3Resource$errorCode": "(Discontinued) The status code of a failed item.
",
- "InternalException$errorCode": null,
- "InvalidInputException$errorCode": null,
- "LimitExceededException$errorCode": null
- }
- },
- "ExceptionMessage": {
- "base": null,
- "refs": {
- "AccessDeniedException$message": null,
- "FailedS3Resource$errorMessage": "(Discontinued) The error message of a failed item.
",
- "InternalException$message": null,
- "InvalidInputException$message": null,
- "LimitExceededException$message": null
- }
- },
- "FailedS3Resource": {
- "base": "(Discontinued) Includes details about the failed S3 resources.
",
- "refs": {
- "FailedS3Resources$member": null
- }
- },
- "FailedS3Resources": {
- "base": null,
- "refs": {
- "AssociateS3ResourcesResult$failedS3Resources": "(Discontinued) S3 resources that couldn't be associated with Amazon Macie Classic. An error code and an error message are provided for each failed item.
",
- "DisassociateS3ResourcesResult$failedS3Resources": "(Discontinued) S3 resources that couldn't be removed from being monitored and classified by Amazon Macie Classic. An error code and an error message are provided for each failed item.
",
- "UpdateS3ResourcesResult$failedS3Resources": "(Discontinued) The S3 resources whose classification types can't be updated. An error code and an error message are provided for each failed item.
"
- }
- },
- "FieldName": {
- "base": "Field that has invalid input",
- "refs": {
- "InvalidInputException$fieldName": null
- }
- },
- "InternalException": {
- "base": "(Discontinued) Internal server error.
",
- "refs": {
- }
- },
- "InvalidInputException": {
- "base": "(Discontinued) The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
",
- "refs": {
- }
- },
- "LimitExceededException": {
- "base": "(Discontinued) The request was rejected because it attempted to create resources beyond the current Amazon Web Services account quotas. The error code describes the quota exceeded.
",
- "refs": {
- }
- },
- "ListMemberAccountsRequest": {
- "base": null,
- "refs": {
- }
- },
- "ListMemberAccountsResult": {
- "base": null,
- "refs": {
- }
- },
- "ListS3ResourcesRequest": {
- "base": null,
- "refs": {
- }
- },
- "ListS3ResourcesResult": {
- "base": null,
- "refs": {
- }
- },
- "MaxResults": {
- "base": null,
- "refs": {
- "ListMemberAccountsRequest$maxResults": "(Discontinued) Use this parameter to indicate the maximum number of items that you want in the response. The default value is 250.
",
- "ListS3ResourcesRequest$maxResults": "(Discontinued) Use this parameter to indicate the maximum number of items that you want in the response. The default value is 250.
"
- }
- },
- "MemberAccount": {
- "base": "(Discontinued) Contains information about the Amazon Macie Classic member account.
",
- "refs": {
- "MemberAccounts$member": null
- }
- },
- "MemberAccounts": {
- "base": null,
- "refs": {
- "ListMemberAccountsResult$memberAccounts": "(Discontinued) A list of the Amazon Macie Classic member accounts returned by the action. The current Macie Classic administrator account is also included in this list.
"
- }
- },
- "NextToken": {
- "base": null,
- "refs": {
- "ListMemberAccountsRequest$nextToken": "(Discontinued) 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.
",
- "ListMemberAccountsResult$nextToken": "(Discontinued) 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.
",
- "ListS3ResourcesRequest$nextToken": "(Discontinued) 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.
",
- "ListS3ResourcesResult$nextToken": "(Discontinued) 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.
"
- }
- },
- "Prefix": {
- "base": null,
- "refs": {
- "S3Resource$prefix": "(Discontinued) The prefix of the S3 bucket.
",
- "S3ResourceClassification$prefix": "(Discontinued) The prefix of the S3 bucket that you want to associate with Amazon Macie Classic.
",
- "S3ResourceClassificationUpdate$prefix": "(Discontinued) The prefix of the S3 bucket whose classification types you want to update.
"
- }
- },
- "ResourceType": {
- "base": "Resource type that caused the exception",
- "refs": {
- "AccessDeniedException$resourceType": null,
- "LimitExceededException$resourceType": null
- }
- },
- "S3ContinuousClassificationType": {
- "base": null,
- "refs": {
- "ClassificationType$continuous": "(Discontinued) A continuous classification of the objects that are added to a specified S3 bucket. Amazon Macie Classic begins performing continuous classification after a bucket is successfully associated with Macie Classic.
",
- "ClassificationTypeUpdate$continuous": "(Discontinued) A continuous classification of the objects that are added to a specified S3 bucket. Amazon Macie Classic begins performing continuous classification after a bucket is successfully associated with Macie Classic.
"
- }
- },
- "S3OneTimeClassificationType": {
- "base": null,
- "refs": {
- "ClassificationType$oneTime": "(Discontinued) A one-time classification of all of the existing objects in a specified S3 bucket.
",
- "ClassificationTypeUpdate$oneTime": "(Discontinued) A one-time classification of all of the existing objects in a specified S3 bucket.
"
- }
- },
- "S3Resource": {
- "base": "(Discontinued) 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.
",
- "refs": {
- "FailedS3Resource$failedItem": "(Discontinued) The failed S3 resources.
",
- "S3Resources$member": null
- }
- },
- "S3ResourceClassification": {
- "base": "(Discontinued) The S3 resources that you want to associate with Amazon Macie Classic 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.
",
- "refs": {
- "S3ResourcesClassification$member": null
- }
- },
- "S3ResourceClassificationUpdate": {
- "base": "(Discontinued) The S3 resources whose classification types you want to update. This data type is used as a request parameter in the UpdateS3Resources
action.
",
- "refs": {
- "S3ResourcesClassificationUpdate$member": null
- }
- },
- "S3Resources": {
- "base": null,
- "refs": {
- "DisassociateS3ResourcesRequest$associatedS3Resources": "(Discontinued) The S3 resources (buckets or prefixes) that you want to remove from being monitored and classified by Amazon Macie Classic.
"
- }
- },
- "S3ResourcesClassification": {
- "base": null,
- "refs": {
- "AssociateS3ResourcesRequest$s3Resources": "(Discontinued) The S3 resources that you want to associate with Amazon Macie Classic for monitoring and data classification.
",
- "ListS3ResourcesResult$s3Resources": "(Discontinued) A list of the associated S3 resources returned by the action.
"
- }
- },
- "S3ResourcesClassificationUpdate": {
- "base": null,
- "refs": {
- "UpdateS3ResourcesRequest$s3ResourcesUpdate": "(Discontinued) The S3 resources whose classification types you want to update.
"
- }
- },
- "UpdateS3ResourcesRequest": {
- "base": null,
- "refs": {
- }
- },
- "UpdateS3ResourcesResult": {
- "base": null,
- "refs": {
- }
- }
- }
-}
diff --git a/apis/macie/2017-12-19/endpoint-rule-set-1.json b/apis/macie/2017-12-19/endpoint-rule-set-1.json
deleted file mode 100644
index 94856ff2f2a..00000000000
--- a/apis/macie/2017-12-19/endpoint-rule-set-1.json
+++ /dev/null
@@ -1,314 +0,0 @@
-{
- "version": "1.0",
- "parameters": {
- "Region": {
- "builtIn": "AWS::Region",
- "required": false,
- "documentation": "The AWS region used to dispatch the request.",
- "type": "String"
- },
- "UseDualStack": {
- "builtIn": "AWS::UseDualStack",
- "required": true,
- "default": false,
- "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
- "type": "Boolean"
- },
- "UseFIPS": {
- "builtIn": "AWS::UseFIPS",
- "required": true,
- "default": false,
- "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
- "type": "Boolean"
- },
- "Endpoint": {
- "builtIn": "SDK::Endpoint",
- "required": false,
- "documentation": "Override the endpoint used to send this request",
- "type": "String"
- }
- },
- "rules": [
- {
- "conditions": [
- {
- "fn": "isSet",
- "argv": [
- {
- "ref": "Endpoint"
- }
- ]
- }
- ],
- "type": "tree",
- "rules": [
- {
- "conditions": [
- {
- "fn": "booleanEquals",
- "argv": [
- {
- "ref": "UseFIPS"
- },
- true
- ]
- }
- ],
- "error": "Invalid Configuration: FIPS and custom endpoint are not supported",
- "type": "error"
- },
- {
- "conditions": [
- {
- "fn": "booleanEquals",
- "argv": [
- {
- "ref": "UseDualStack"
- },
- true
- ]
- }
- ],
- "error": "Invalid Configuration: Dualstack and custom endpoint are not supported",
- "type": "error"
- },
- {
- "conditions": [],
- "endpoint": {
- "url": {
- "ref": "Endpoint"
- },
- "properties": {},
- "headers": {}
- },
- "type": "endpoint"
- }
- ]
- },
- {
- "conditions": [
- {
- "fn": "isSet",
- "argv": [
- {
- "ref": "Region"
- }
- ]
- }
- ],
- "type": "tree",
- "rules": [
- {
- "conditions": [
- {
- "fn": "aws.partition",
- "argv": [
- {
- "ref": "Region"
- }
- ],
- "assign": "PartitionResult"
- }
- ],
- "type": "tree",
- "rules": [
- {
- "conditions": [
- {
- "fn": "booleanEquals",
- "argv": [
- {
- "ref": "UseFIPS"
- },
- true
- ]
- },
- {
- "fn": "booleanEquals",
- "argv": [
- {
- "ref": "UseDualStack"
- },
- true
- ]
- }
- ],
- "type": "tree",
- "rules": [
- {
- "conditions": [
- {
- "fn": "booleanEquals",
- "argv": [
- true,
- {
- "fn": "getAttr",
- "argv": [
- {
- "ref": "PartitionResult"
- },
- "supportsFIPS"
- ]
- }
- ]
- },
- {
- "fn": "booleanEquals",
- "argv": [
- true,
- {
- "fn": "getAttr",
- "argv": [
- {
- "ref": "PartitionResult"
- },
- "supportsDualStack"
- ]
- }
- ]
- }
- ],
- "type": "tree",
- "rules": [
- {
- "conditions": [],
- "endpoint": {
- "url": "https://macie-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
- "properties": {},
- "headers": {}
- },
- "type": "endpoint"
- }
- ]
- },
- {
- "conditions": [],
- "error": "FIPS and DualStack are enabled, but this partition does not support one or both",
- "type": "error"
- }
- ]
- },
- {
- "conditions": [
- {
- "fn": "booleanEquals",
- "argv": [
- {
- "ref": "UseFIPS"
- },
- true
- ]
- }
- ],
- "type": "tree",
- "rules": [
- {
- "conditions": [
- {
- "fn": "booleanEquals",
- "argv": [
- true,
- {
- "fn": "getAttr",
- "argv": [
- {
- "ref": "PartitionResult"
- },
- "supportsFIPS"
- ]
- }
- ]
- }
- ],
- "type": "tree",
- "rules": [
- {
- "conditions": [],
- "endpoint": {
- "url": "https://macie-fips.{Region}.{PartitionResult#dnsSuffix}",
- "properties": {},
- "headers": {}
- },
- "type": "endpoint"
- }
- ]
- },
- {
- "conditions": [],
- "error": "FIPS is enabled but this partition does not support FIPS",
- "type": "error"
- }
- ]
- },
- {
- "conditions": [
- {
- "fn": "booleanEquals",
- "argv": [
- {
- "ref": "UseDualStack"
- },
- true
- ]
- }
- ],
- "type": "tree",
- "rules": [
- {
- "conditions": [
- {
- "fn": "booleanEquals",
- "argv": [
- true,
- {
- "fn": "getAttr",
- "argv": [
- {
- "ref": "PartitionResult"
- },
- "supportsDualStack"
- ]
- }
- ]
- }
- ],
- "type": "tree",
- "rules": [
- {
- "conditions": [],
- "endpoint": {
- "url": "https://macie.{Region}.{PartitionResult#dualStackDnsSuffix}",
- "properties": {},
- "headers": {}
- },
- "type": "endpoint"
- }
- ]
- },
- {
- "conditions": [],
- "error": "DualStack is enabled but this partition does not support DualStack",
- "type": "error"
- }
- ]
- },
- {
- "conditions": [],
- "endpoint": {
- "url": "https://macie.{Region}.{PartitionResult#dnsSuffix}",
- "properties": {},
- "headers": {}
- },
- "type": "endpoint"
- }
- ]
- }
- ]
- },
- {
- "conditions": [],
- "error": "Invalid Configuration: Missing Region",
- "type": "error"
- }
- ]
-}
\ No newline at end of file
diff --git a/apis/macie/2017-12-19/endpoint-tests-1.json b/apis/macie/2017-12-19/endpoint-tests-1.json
deleted file mode 100644
index 886dd05c625..00000000000
--- a/apis/macie/2017-12-19/endpoint-tests-1.json
+++ /dev/null
@@ -1,340 +0,0 @@
-{
- "testCases": [
- {
- "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
- "expect": {
- "endpoint": {
- "url": "https://macie.us-east-1.amazonaws.com"
- }
- },
- "params": {
- "Region": "us-east-1",
- "UseFIPS": false,
- "UseDualStack": false
- }
- },
- {
- "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
- "expect": {
- "endpoint": {
- "url": "https://macie-fips.us-east-1.amazonaws.com"
- }
- },
- "params": {
- "Region": "us-east-1",
- "UseFIPS": true,
- "UseDualStack": false
- }
- },
- {
- "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled",
- "expect": {
- "endpoint": {
- "url": "https://macie.us-west-2.amazonaws.com"
- }
- },
- "params": {
- "Region": "us-west-2",
- "UseFIPS": false,
- "UseDualStack": false
- }
- },
- {
- "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled",
- "expect": {
- "endpoint": {
- "url": "https://macie-fips.us-west-2.amazonaws.com"
- }
- },
- "params": {
- "Region": "us-west-2",
- "UseFIPS": true,
- "UseDualStack": false
- }
- },
- {
- "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
- "expect": {
- "endpoint": {
- "url": "https://macie-fips.us-east-1.api.aws"
- }
- },
- "params": {
- "Region": "us-east-1",
- "UseFIPS": true,
- "UseDualStack": true
- }
- },
- {
- "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
- "expect": {
- "endpoint": {
- "url": "https://macie.us-east-1.api.aws"
- }
- },
- "params": {
- "Region": "us-east-1",
- "UseFIPS": false,
- "UseDualStack": true
- }
- },
- {
- "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
- "expect": {
- "endpoint": {
- "url": "https://macie-fips.cn-north-1.api.amazonwebservices.com.cn"
- }
- },
- "params": {
- "Region": "cn-north-1",
- "UseFIPS": true,
- "UseDualStack": true
- }
- },
- {
- "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled",
- "expect": {
- "endpoint": {
- "url": "https://macie-fips.cn-north-1.amazonaws.com.cn"
- }
- },
- "params": {
- "Region": "cn-north-1",
- "UseFIPS": true,
- "UseDualStack": false
- }
- },
- {
- "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled",
- "expect": {
- "endpoint": {
- "url": "https://macie.cn-north-1.api.amazonwebservices.com.cn"
- }
- },
- "params": {
- "Region": "cn-north-1",
- "UseFIPS": false,
- "UseDualStack": true
- }
- },
- {
- "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled",
- "expect": {
- "endpoint": {
- "url": "https://macie.cn-north-1.amazonaws.com.cn"
- }
- },
- "params": {
- "Region": "cn-north-1",
- "UseFIPS": false,
- "UseDualStack": false
- }
- },
- {
- "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
- "expect": {
- "endpoint": {
- "url": "https://macie-fips.us-gov-east-1.api.aws"
- }
- },
- "params": {
- "Region": "us-gov-east-1",
- "UseFIPS": true,
- "UseDualStack": true
- }
- },
- {
- "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
- "expect": {
- "endpoint": {
- "url": "https://macie-fips.us-gov-east-1.amazonaws.com"
- }
- },
- "params": {
- "Region": "us-gov-east-1",
- "UseFIPS": true,
- "UseDualStack": false
- }
- },
- {
- "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
- "expect": {
- "endpoint": {
- "url": "https://macie.us-gov-east-1.api.aws"
- }
- },
- "params": {
- "Region": "us-gov-east-1",
- "UseFIPS": false,
- "UseDualStack": true
- }
- },
- {
- "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled",
- "expect": {
- "endpoint": {
- "url": "https://macie.us-gov-east-1.amazonaws.com"
- }
- },
- "params": {
- "Region": "us-gov-east-1",
- "UseFIPS": false,
- "UseDualStack": false
- }
- },
- {
- "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
- "expect": {
- "error": "FIPS and DualStack are enabled, but this partition does not support one or both"
- },
- "params": {
- "Region": "us-iso-east-1",
- "UseFIPS": true,
- "UseDualStack": true
- }
- },
- {
- "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
- "expect": {
- "endpoint": {
- "url": "https://macie-fips.us-iso-east-1.c2s.ic.gov"
- }
- },
- "params": {
- "Region": "us-iso-east-1",
- "UseFIPS": true,
- "UseDualStack": false
- }
- },
- {
- "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
- "expect": {
- "error": "DualStack is enabled but this partition does not support DualStack"
- },
- "params": {
- "Region": "us-iso-east-1",
- "UseFIPS": false,
- "UseDualStack": true
- }
- },
- {
- "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
- "expect": {
- "endpoint": {
- "url": "https://macie.us-iso-east-1.c2s.ic.gov"
- }
- },
- "params": {
- "Region": "us-iso-east-1",
- "UseFIPS": false,
- "UseDualStack": false
- }
- },
- {
- "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
- "expect": {
- "error": "FIPS and DualStack are enabled, but this partition does not support one or both"
- },
- "params": {
- "Region": "us-isob-east-1",
- "UseFIPS": true,
- "UseDualStack": true
- }
- },
- {
- "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
- "expect": {
- "endpoint": {
- "url": "https://macie-fips.us-isob-east-1.sc2s.sgov.gov"
- }
- },
- "params": {
- "Region": "us-isob-east-1",
- "UseFIPS": true,
- "UseDualStack": false
- }
- },
- {
- "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
- "expect": {
- "error": "DualStack is enabled but this partition does not support DualStack"
- },
- "params": {
- "Region": "us-isob-east-1",
- "UseFIPS": false,
- "UseDualStack": true
- }
- },
- {
- "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
- "expect": {
- "endpoint": {
- "url": "https://macie.us-isob-east-1.sc2s.sgov.gov"
- }
- },
- "params": {
- "Region": "us-isob-east-1",
- "UseFIPS": false,
- "UseDualStack": false
- }
- },
- {
- "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,
- "UseDualStack": false,
- "Endpoint": "https://example.com"
- }
- },
- {
- "documentation": "For custom endpoint with fips enabled and dualstack disabled",
- "expect": {
- "error": "Invalid Configuration: FIPS and custom endpoint are not supported"
- },
- "params": {
- "Region": "us-east-1",
- "UseFIPS": true,
- "UseDualStack": false,
- "Endpoint": "https://example.com"
- }
- },
- {
- "documentation": "For custom endpoint with fips disabled and dualstack enabled",
- "expect": {
- "error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
- },
- "params": {
- "Region": "us-east-1",
- "UseFIPS": false,
- "UseDualStack": true,
- "Endpoint": "https://example.com"
- }
- },
- {
- "documentation": "Missing region",
- "expect": {
- "error": "Invalid Configuration: Missing Region"
- }
- }
- ],
- "version": "1.0"
-}
\ No newline at end of file
diff --git a/apis/macie/2017-12-19/examples-1.json b/apis/macie/2017-12-19/examples-1.json
deleted file mode 100644
index 0ea7e3b0bbe..00000000000
--- a/apis/macie/2017-12-19/examples-1.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "version": "1.0",
- "examples": {
- }
-}
diff --git a/apis/macie/2017-12-19/paginators-1.json b/apis/macie/2017-12-19/paginators-1.json
deleted file mode 100644
index ec567c5ae40..00000000000
--- a/apis/macie/2017-12-19/paginators-1.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "pagination": {
- "ListMemberAccounts": {
- "input_token": "nextToken",
- "output_token": "nextToken",
- "limit_key": "maxResults"
- },
- "ListS3Resources": {
- "input_token": "nextToken",
- "output_token": "nextToken",
- "limit_key": "maxResults"
- }
- }
-}
diff --git a/gems/aws-sdk-macie/CHANGELOG.md b/gems/aws-sdk-macie/CHANGELOG.md
deleted file mode 100644
index 0fab5ca0015..00000000000
--- a/gems/aws-sdk-macie/CHANGELOG.md
+++ /dev/null
@@ -1,257 +0,0 @@
-Unreleased Changes
-------------------
-
-1.48.0 (2023-11-16)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-* Feature - Deprecated this service.
-
-1.47.0 (2023-09-27)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.46.0 (2023-09-19)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.45.0 (2023-07-11)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.44.0 (2023-07-06)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.43.0 (2023-06-28)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.42.0 (2023-06-15)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.41.0 (2023-05-31)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.40.0 (2023-01-18)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-* Issue - Replace runtime endpoint resolution approach with generated ruby code.
-
-1.39.0 (2022-10-25)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.38.0 (2022-03-04)
-------------------
-
-* Feature - Amazon Macie Classic (macie) has been discontinued and is no longer available. A new Amazon Macie (macie2) is now available with significant design improvements and additional features.
-
-1.37.0 (2022-02-24)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.36.0 (2022-02-03)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.35.0 (2021-12-21)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.34.0 (2021-11-30)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.33.0 (2021-11-04)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.32.0 (2021-10-18)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.31.0 (2021-09-01)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.30.0 (2021-07-30)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.29.0 (2021-07-28)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.28.0 (2021-03-10)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.27.0 (2021-02-05)
-------------------
-
-* Feature - Documentation updates for Amazon Macie Classic. We replaced the term "master account" with the term "administrator account." An administrator account is used to centrally manage multiple accounts.
-
-1.26.0 (2021-02-02)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.25.0 (2020-09-30)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.24.0 (2020-09-15)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.23.0 (2020-08-25)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.22.0 (2020-06-23)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.21.1 (2020-06-11)
-------------------
-
-* Issue - Republish previous version with correct dependency on `aws-sdk-core`.
-
-1.21.0 (2020-06-10)
-------------------
-
-* Issue - This version has been yanked. (#2327).
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.20.0 (2020-05-28)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.19.0 (2020-05-26)
-------------------
-
-* Feature - This is a documentation-only update to the Amazon Macie Classic API. This update corrects out-of-date references to the service name.
-
-1.18.0 (2020-05-07)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.17.0 (2020-03-09)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.16.0 (2019-10-23)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.15.0 (2019-07-25)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.14.0 (2019-07-01)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.13.0 (2019-06-17)
-------------------
-
-* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
-
-1.12.0 (2019-05-21)
-------------------
-
-* Feature - API update.
-
-1.11.0 (2019-05-15)
-------------------
-
-* Feature - API update.
-
-1.10.0 (2019-05-14)
-------------------
-
-* Feature - API update.
-
-1.9.0 (2019-03-21)
-------------------
-
-* Feature - API update.
-
-1.8.0 (2019-03-18)
-------------------
-
-* Feature - API update.
-
-1.7.0 (2019-03-14)
-------------------
-
-* Feature - API update.
-
-1.6.0 (2018-11-20)
-------------------
-
-* Feature - API update.
-
-1.5.0 (2018-10-24)
-------------------
-
-* Feature - API update.
-
-1.4.0 (2018-10-23)
-------------------
-
-* Feature - API update.
-
-1.3.0 (2018-09-06)
-------------------
-
-* Feature - Adds code paths and plugins for future SDK instrumentation and telemetry.
-
-1.2.0 (2018-09-05)
-------------------
-
-* Feature - API update.
-
-1.1.0 (2018-06-26)
-------------------
-
-* Feature - API update.
-
-1.0.0 (2018-06-21)
-------------------
-
-* Feature - Initial release of `aws-sdk-macie`.
diff --git a/gems/aws-sdk-macie/LICENSE.txt b/gems/aws-sdk-macie/LICENSE.txt
deleted file mode 100644
index d6456956733..00000000000
--- a/gems/aws-sdk-macie/LICENSE.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/gems/aws-sdk-macie/VERSION b/gems/aws-sdk-macie/VERSION
deleted file mode 100644
index 9db5ea12f52..00000000000
--- a/gems/aws-sdk-macie/VERSION
+++ /dev/null
@@ -1 +0,0 @@
-1.48.0
diff --git a/gems/aws-sdk-macie/aws-sdk-macie.gemspec b/gems/aws-sdk-macie/aws-sdk-macie.gemspec
deleted file mode 100644
index 48c2a549439..00000000000
--- a/gems/aws-sdk-macie/aws-sdk-macie.gemspec
+++ /dev/null
@@ -1,33 +0,0 @@
-# frozen_string_literal: true
-
-# WARNING ABOUT GENERATED CODE
-#
-# This file is generated. See the contributing guide for more information:
-# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
-#
-# WARNING ABOUT GENERATED CODE
-
-Gem::Specification.new do |spec|
-
- spec.name = 'aws-sdk-macie'
- spec.version = File.read(File.expand_path('../VERSION', __FILE__)).strip
- spec.summary = 'AWS SDK for Ruby - Amazon Macie'
- spec.description = '[DEPRECATED] Official AWS Ruby gem for Amazon Macie. This gem is part of the AWS SDK for Ruby.'
- spec.author = 'Amazon Web Services'
- spec.homepage = 'https://github.com/aws/aws-sdk-ruby'
- spec.license = 'Apache-2.0'
- spec.email = ['aws-dr-rubygems@amazon.com']
- spec.require_paths = ['lib']
- spec.files = Dir["LICENSE.txt", "CHANGELOG.md", "VERSION", "lib/**/*.rb"]
-
- spec.metadata = {
- 'source_code_uri' => 'https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-macie',
- 'changelog_uri' => 'https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-macie/CHANGELOG.md'
- }
-
- spec.add_dependency('aws-sdk-core', '~> 3', '>= 3.184.0')
- spec.add_dependency('aws-sigv4', '~> 1.1')
-
- spec.required_ruby_version = '>= 2.3'
- spec.post_install_message = '*** aws-sdk-macie is deprecated ***'
-end
diff --git a/gems/aws-sdk-macie/features/env.rb b/gems/aws-sdk-macie/features/env.rb
deleted file mode 100644
index c6349fcbc69..00000000000
--- a/gems/aws-sdk-macie/features/env.rb
+++ /dev/null
@@ -1,18 +0,0 @@
-# frozen_string_literal: true
-
-# WARNING ABOUT GENERATED CODE
-#
-# This file is generated. See the contributing guide for more information:
-# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
-#
-# WARNING ABOUT GENERATED CODE
-
-$:.unshift(File.expand_path('../../lib', __FILE__))
-$:.unshift(File.expand_path('../../../aws-sdk-core/features', __FILE__))
-$:.unshift(File.expand_path('../../../aws-sdk-core/lib', __FILE__))
-$:.unshift(File.expand_path('../../../aws-sigv4/lib', __FILE__))
-
-require 'features_helper'
-require 'aws-sdk-macie'
-
-Aws::Macie::Client.add_plugin(ApiCallTracker)
diff --git a/gems/aws-sdk-macie/features/step_definitions.rb b/gems/aws-sdk-macie/features/step_definitions.rb
deleted file mode 100644
index 1bc12528087..00000000000
--- a/gems/aws-sdk-macie/features/step_definitions.rb
+++ /dev/null
@@ -1,10 +0,0 @@
-# frozen_string_literal: true
-
-Before("@macie") do
- @service = Aws::Macie::Resource.new
- @client = @service.client
-end
-
-After("@macie") do
- # shared cleanup logic
-end
diff --git a/gems/aws-sdk-macie/lib/aws-sdk-macie.rb b/gems/aws-sdk-macie/lib/aws-sdk-macie.rb
deleted file mode 100644
index 04ab303a153..00000000000
--- a/gems/aws-sdk-macie/lib/aws-sdk-macie.rb
+++ /dev/null
@@ -1,57 +0,0 @@
-# frozen_string_literal: true
-
-# WARNING ABOUT GENERATED CODE
-#
-# This file is generated. See the contributing guide for more information:
-# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
-#
-# WARNING ABOUT GENERATED CODE
-
-
-require 'aws-sdk-core'
-require 'aws-sigv4'
-
-require_relative 'aws-sdk-macie/types'
-require_relative 'aws-sdk-macie/client_api'
-require_relative 'aws-sdk-macie/plugins/endpoints.rb'
-require_relative 'aws-sdk-macie/client'
-require_relative 'aws-sdk-macie/errors'
-require_relative 'aws-sdk-macie/resource'
-require_relative 'aws-sdk-macie/endpoint_parameters'
-require_relative 'aws-sdk-macie/endpoint_provider'
-require_relative 'aws-sdk-macie/endpoints'
-require_relative 'aws-sdk-macie/customizations'
-
-# This module provides support for Amazon Macie. This module is available in the
-# `aws-sdk-macie` gem.
-#
-# # Client
-#
-# The {Client} class provides one method for each API operation. Operation
-# methods each accept a hash of request parameters and return a response
-# structure.
-#
-# macie = Aws::Macie::Client.new
-# resp = macie.associate_member_account(params)
-#
-# See {Client} for more information.
-#
-# # Errors
-#
-# Errors returned from Amazon Macie are defined in the
-# {Errors} module and all extend {Errors::ServiceError}.
-#
-# begin
-# # do stuff
-# rescue Aws::Macie::Errors::ServiceError
-# # rescues all Amazon Macie API errors
-# end
-#
-# See {Errors} for more information.
-#
-# @!group service
-module Aws::Macie
-
- GEM_VERSION = '1.48.0'
-
-end
diff --git a/gems/aws-sdk-macie/lib/aws-sdk-macie/client.rb b/gems/aws-sdk-macie/lib/aws-sdk-macie/client.rb
deleted file mode 100644
index e722d97ebbc..00000000000
--- a/gems/aws-sdk-macie/lib/aws-sdk-macie/client.rb
+++ /dev/null
@@ -1,736 +0,0 @@
-# frozen_string_literal: true
-
-# WARNING ABOUT GENERATED CODE
-#
-# This file is generated. See the contributing guide for more information:
-# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
-#
-# WARNING ABOUT GENERATED CODE
-
-require 'seahorse/client/plugins/content_length.rb'
-require 'aws-sdk-core/plugins/credentials_configuration.rb'
-require 'aws-sdk-core/plugins/logging.rb'
-require 'aws-sdk-core/plugins/param_converter.rb'
-require 'aws-sdk-core/plugins/param_validator.rb'
-require 'aws-sdk-core/plugins/user_agent.rb'
-require 'aws-sdk-core/plugins/helpful_socket_errors.rb'
-require 'aws-sdk-core/plugins/retry_errors.rb'
-require 'aws-sdk-core/plugins/global_configuration.rb'
-require 'aws-sdk-core/plugins/regional_endpoint.rb'
-require 'aws-sdk-core/plugins/endpoint_discovery.rb'
-require 'aws-sdk-core/plugins/endpoint_pattern.rb'
-require 'aws-sdk-core/plugins/response_paging.rb'
-require 'aws-sdk-core/plugins/stub_responses.rb'
-require 'aws-sdk-core/plugins/idempotency_token.rb'
-require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
-require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
-require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
-require 'aws-sdk-core/plugins/transfer_encoding.rb'
-require 'aws-sdk-core/plugins/http_checksum.rb'
-require 'aws-sdk-core/plugins/checksum_algorithm.rb'
-require 'aws-sdk-core/plugins/request_compression.rb'
-require 'aws-sdk-core/plugins/defaults_mode.rb'
-require 'aws-sdk-core/plugins/recursion_detection.rb'
-require 'aws-sdk-core/plugins/sign.rb'
-require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
-
-Aws::Plugins::GlobalConfiguration.add_identifier(:macie)
-
-module Aws::Macie
- # An API client for Macie. To construct a client, you need to configure a `:region` and `:credentials`.
- #
- # client = Aws::Macie::Client.new(
- # region: region_name,
- # credentials: credentials,
- # # ...
- # )
- #
- # For details on configuring region and credentials see
- # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
- #
- # See {#initialize} for a full list of supported configuration options.
- class Client < Seahorse::Client::Base
-
- include Aws::ClientStubs
-
- @identifier = :macie
-
- set_api(ClientApi::API)
-
- add_plugin(Seahorse::Client::Plugins::ContentLength)
- add_plugin(Aws::Plugins::CredentialsConfiguration)
- add_plugin(Aws::Plugins::Logging)
- add_plugin(Aws::Plugins::ParamConverter)
- add_plugin(Aws::Plugins::ParamValidator)
- add_plugin(Aws::Plugins::UserAgent)
- add_plugin(Aws::Plugins::HelpfulSocketErrors)
- add_plugin(Aws::Plugins::RetryErrors)
- add_plugin(Aws::Plugins::GlobalConfiguration)
- add_plugin(Aws::Plugins::RegionalEndpoint)
- add_plugin(Aws::Plugins::EndpointDiscovery)
- add_plugin(Aws::Plugins::EndpointPattern)
- add_plugin(Aws::Plugins::ResponsePaging)
- add_plugin(Aws::Plugins::StubResponses)
- add_plugin(Aws::Plugins::IdempotencyToken)
- add_plugin(Aws::Plugins::JsonvalueConverter)
- add_plugin(Aws::Plugins::ClientMetricsPlugin)
- add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
- add_plugin(Aws::Plugins::TransferEncoding)
- add_plugin(Aws::Plugins::HttpChecksum)
- add_plugin(Aws::Plugins::ChecksumAlgorithm)
- add_plugin(Aws::Plugins::RequestCompression)
- add_plugin(Aws::Plugins::DefaultsMode)
- add_plugin(Aws::Plugins::RecursionDetection)
- add_plugin(Aws::Plugins::Sign)
- add_plugin(Aws::Plugins::Protocols::JsonRpc)
- add_plugin(Aws::Macie::Plugins::Endpoints)
-
- # @overload initialize(options)
- # @param [Hash] options
- # @option options [required, Aws::CredentialProvider] :credentials
- # Your AWS credentials. This can be an instance of any one of the
- # following classes:
- #
- # * `Aws::Credentials` - Used for configuring static, non-refreshing
- # credentials.
- #
- # * `Aws::SharedCredentials` - Used for loading static credentials from a
- # shared file, such as `~/.aws/config`.
- #
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
- #
- # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
- # assume a role after providing credentials via the web.
- #
- # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
- # access token generated from `aws login`.
- #
- # * `Aws::ProcessCredentials` - Used for loading credentials from a
- # process that outputs to stdout.
- #
- # * `Aws::InstanceProfileCredentials` - Used for loading credentials
- # from an EC2 IMDS on an EC2 instance.
- #
- # * `Aws::ECSCredentials` - Used for loading credentials from
- # instances running in ECS.
- #
- # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
- # from the Cognito Identity service.
- #
- # When `:credentials` are not configured directly, the following
- # locations will be searched for credentials:
- #
- # * `Aws.config[:credentials]`
- # * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
- # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
- # * `~/.aws/credentials`
- # * `~/.aws/config`
- # * EC2/ECS IMDS instance profile - When used by default, the timeouts
- # are very aggressive. Construct and pass an instance of
- # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
- # enable retries and extended timeouts. Instance profile credential
- # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
- # to true.
- #
- # @option options [required, String] :region
- # The AWS region to connect to. The configured `:region` is
- # used to determine the service `:endpoint`. When not passed,
- # a default `:region` is searched for in the following locations:
- #
- # * `Aws.config[:region]`
- # * `ENV['AWS_REGION']`
- # * `ENV['AMAZON_REGION']`
- # * `ENV['AWS_DEFAULT_REGION']`
- # * `~/.aws/credentials`
- # * `~/.aws/config`
- #
- # @option options [String] :access_key_id
- #
- # @option options [Boolean] :active_endpoint_cache (false)
- # When set to `true`, a thread polling for endpoints will be running in
- # the background every 60 secs (default). Defaults to `false`.
- #
- # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
- # Used only in `adaptive` retry mode. When true, the request will sleep
- # until there is sufficent client side capacity to retry the request.
- # When false, the request will raise a `RetryCapacityNotAvailableError` and will
- # not retry instead of sleeping.
- #
- # @option options [Boolean] :client_side_monitoring (false)
- # When `true`, client-side metrics will be collected for all API requests from
- # this client.
- #
- # @option options [String] :client_side_monitoring_client_id ("")
- # Allows you to provide an identifier for this client which will be attached to
- # all generated client side metrics. Defaults to an empty string.
- #
- # @option options [String] :client_side_monitoring_host ("127.0.0.1")
- # Allows you to specify the DNS hostname or IPv4 or IPv6 address that the client
- # side monitoring agent is running on, where client metrics will be published via UDP.
- #
- # @option options [Integer] :client_side_monitoring_port (31000)
- # Required for publishing client metrics. The port that the client side monitoring
- # agent is running on, where client metrics will be published via UDP.
- #
- # @option options [Aws::ClientSideMonitoring::Publisher] :client_side_monitoring_publisher (Aws::ClientSideMonitoring::Publisher)
- # Allows you to provide a custom client-side monitoring publisher class. By default,
- # will use the Client Side Monitoring Agent Publisher.
- #
- # @option options [Boolean] :convert_params (true)
- # When `true`, an attempt is made to coerce request parameters into
- # the required types.
- #
- # @option options [Boolean] :correct_clock_skew (true)
- # Used only in `standard` and adaptive retry modes. Specifies whether to apply
- # a clock skew correction and retry requests with skewed client clocks.
- #
- # @option options [String] :defaults_mode ("legacy")
- # See {Aws::DefaultsModeConfiguration} for a list of the
- # accepted modes and the configuration defaults that are included.
- #
- # @option options [Boolean] :disable_host_prefix_injection (false)
- # Set to true to disable SDK automatically adding host prefix
- # to default service endpoint when available.
- #
- # @option options [Boolean] :disable_request_compression (false)
- # When set to 'true' the request body will not be compressed
- # for supported operations.
- #
- # @option options [String] :endpoint
- # The client endpoint is normally constructed from the `:region`
- # option. You should only configure an `:endpoint` when connecting
- # to test or custom endpoints. This should be a valid HTTP(S) URI.
- #
- # @option options [Integer] :endpoint_cache_max_entries (1000)
- # Used for the maximum size limit of the LRU cache storing endpoints data
- # for endpoint discovery enabled operations. Defaults to 1000.
- #
- # @option options [Integer] :endpoint_cache_max_threads (10)
- # Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.
- #
- # @option options [Integer] :endpoint_cache_poll_interval (60)
- # When :endpoint_discovery and :active_endpoint_cache is enabled,
- # Use this option to config the time interval in seconds for making
- # requests fetching endpoints information. Defaults to 60 sec.
- #
- # @option options [Boolean] :endpoint_discovery (false)
- # When set to `true`, endpoint discovery will be enabled for operations when available.
- #
- # @option options [Boolean] :ignore_configured_endpoint_urls
- # Setting to true disables use of endpoint URLs provided via environment
- # variables and the shared configuration file.
- #
- # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
- # The log formatter.
- #
- # @option options [Symbol] :log_level (:info)
- # The log level to send messages to the `:logger` at.
- #
- # @option options [Logger] :logger
- # The Logger instance to send log messages to. If this option
- # is not set, logging will be disabled.
- #
- # @option options [Integer] :max_attempts (3)
- # An integer representing the maximum number attempts that will be made for
- # a single request, including the initial attempt. For example,
- # setting this value to 5 will result in a request being retried up to
- # 4 times. Used in `standard` and `adaptive` retry modes.
- #
- # @option options [String] :profile ("default")
- # Used when loading credentials from the shared credentials file
- # at HOME/.aws/credentials. When not specified, 'default' is used.
- #
- # @option options [Integer] :request_min_compression_size_bytes (10240)
- # The minimum size in bytes that triggers compression for request
- # bodies. The value must be non-negative integer value between 0
- # and 10485780 bytes inclusive.
- #
- # @option options [Proc] :retry_backoff
- # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
- # This option is only used in the `legacy` retry mode.
- #
- # @option options [Float] :retry_base_delay (0.3)
- # The base delay in seconds used by the default backoff function. This option
- # is only used in the `legacy` retry mode.
- #
- # @option options [Symbol] :retry_jitter (:none)
- # A delay randomiser function used by the default backoff function.
- # Some predefined functions can be referenced by name - :none, :equal, :full,
- # otherwise a Proc that takes and returns a number. This option is only used
- # in the `legacy` retry mode.
- #
- # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
- #
- # @option options [Integer] :retry_limit (3)
- # The maximum number of times to retry failed requests. Only
- # ~ 500 level server errors and certain ~ 400 level client errors
- # are retried. Generally, these are throttling errors, data
- # checksum errors, networking errors, timeout errors, auth errors,
- # endpoint discovery, and errors from expired credentials.
- # This option is only used in the `legacy` retry mode.
- #
- # @option options [Integer] :retry_max_delay (0)
- # The maximum number of seconds to delay between retries (0 for no limit)
- # used by the default backoff function. This option is only used in the
- # `legacy` retry mode.
- #
- # @option options [String] :retry_mode ("legacy")
- # Specifies which retry algorithm to use. Values are:
- #
- # * `legacy` - The pre-existing retry behavior. This is default value if
- # no retry mode is provided.
- #
- # * `standard` - A standardized set of retry rules across the AWS SDKs.
- # This includes support for retry quotas, which limit the number of
- # unsuccessful retries a client can make.
- #
- # * `adaptive` - An experimental retry mode that includes all the
- # functionality of `standard` mode along with automatic client side
- # throttling. This is a provisional mode that may change behavior
- # in the future.
- #
- #
- # @option options [String] :sdk_ua_app_id
- # A unique and opaque application ID that is appended to the
- # User-Agent header as app/. It should have a
- # maximum length of 50.
- #
- # @option options [String] :secret_access_key
- #
- # @option options [String] :session_token
- #
- # @option options [Boolean] :simple_json (false)
- # Disables request parameter conversion, validation, and formatting.
- # Also disable response data type conversions. This option is useful
- # when you want to ensure the highest level of performance by
- # avoiding overhead of walking request parameters and response data
- # structures.
- #
- # When `:simple_json` is enabled, the request parameters hash must
- # be formatted exactly as the DynamoDB API expects.
- #
- # @option options [Boolean] :stub_responses (false)
- # Causes the client to return stubbed responses. By default
- # fake responses are generated and returned. You can specify
- # the response data to return or errors to raise by calling
- # {ClientStubs#stub_responses}. See {ClientStubs} for more information.
- #
- # ** Please note ** When response stubbing is enabled, no HTTP
- # requests are made, and retries are disabled.
- #
- # @option options [Aws::TokenProvider] :token_provider
- # A Bearer Token Provider. This can be an instance of any one of the
- # following classes:
- #
- # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
- # tokens.
- #
- # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
- # access token generated from `aws login`.
- #
- # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
- # will be used to search for tokens configured for your profile in shared configuration files.
- #
- # @option options [Boolean] :use_dualstack_endpoint
- # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
- # will be used if available.
- #
- # @option options [Boolean] :use_fips_endpoint
- # When set to `true`, fips compatible endpoints will be used if available.
- # When a `fips` region is used, the region is normalized and this config
- # is set to `true`.
- #
- # @option options [Boolean] :validate_params (true)
- # When `true`, request parameters are validated before
- # sending the request.
- #
- # @option options [Aws::Macie::EndpointProvider] :endpoint_provider
- # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::Macie::EndpointParameters`
- #
- # @option options [URI::HTTP,String] :http_proxy A proxy to send
- # requests through. Formatted like 'http://proxy.com:123'.
- #
- # @option options [Float] :http_open_timeout (15) The number of
- # seconds to wait when opening a HTTP session before raising a
- # `Timeout::Error`.
- #
- # @option options [Float] :http_read_timeout (60) The default
- # number of seconds to wait for response data. This value can
- # safely be set per-request on the session.
- #
- # @option options [Float] :http_idle_timeout (5) The number of
- # seconds a connection is allowed to sit idle before it is
- # considered stale. Stale connections are closed and removed
- # from the pool before making a request.
- #
- # @option options [Float] :http_continue_timeout (1) The number of
- # seconds to wait for a 100-continue response before sending the
- # request body. This option has no effect unless the request has
- # "Expect" header set to "100-continue". Defaults to `nil` which
- # disables this behaviour. This value can safely be set per
- # request on the session.
- #
- # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
- # in seconds.
- #
- # @option options [Boolean] :http_wire_trace (false) When `true`,
- # HTTP debug output will be sent to the `:logger`.
- #
- # @option options [Boolean] :ssl_verify_peer (true) When `true`,
- # SSL peer certificates are verified when establishing a
- # connection.
- #
- # @option options [String] :ssl_ca_bundle Full path to the SSL
- # certificate authority bundle file that should be used when
- # verifying peer certificates. If you do not pass
- # `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
- # will be used if available.
- #
- # @option options [String] :ssl_ca_directory Full path of the
- # directory that contains the unbundled SSL certificate
- # authority files for verifying peer certificates. If you do
- # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
- # system default will be used if available.
- #
- def initialize(*args)
- super
- end
-
- # @!group API Operations
-
- # (Discontinued) Associates a specified Amazon Web Services account with
- # Amazon Macie Classic as a member account.
- #
- # @option params [required, String] :member_account_id
- # (Discontinued) The ID of the Amazon Web Services account that you want
- # to associate with Amazon Macie Classic as a member account.
- #
- # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
- #
- # @example Request syntax with placeholder values
- #
- # resp = client.associate_member_account({
- # member_account_id: "AWSAccountId", # required
- # })
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/AssociateMemberAccount AWS API Documentation
- #
- # @overload associate_member_account(params = {})
- # @param [Hash] params ({})
- def associate_member_account(params = {}, options = {})
- req = build_request(:associate_member_account, params)
- req.send_request(options)
- end
-
- # (Discontinued) Associates specified S3 resources with Amazon Macie
- # Classic for monitoring and data classification. If `memberAccountId`
- # isn't specified, the action associates specified S3 resources with
- # Macie Classic for the current Macie Classic administrator account. If
- # `memberAccountId` is specified, the action associates specified S3
- # resources with Macie Classic for the specified member account.
- #
- # @option params [String] :member_account_id
- # (Discontinued) The ID of the Amazon Macie Classic member account whose
- # resources you want to associate with Macie Classic.
- #
- # @option params [required, Array] :s3_resources
- # (Discontinued) The S3 resources that you want to associate with Amazon
- # Macie Classic for monitoring and data classification.
- #
- # @return [Types::AssociateS3ResourcesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
- #
- # * {Types::AssociateS3ResourcesResult#failed_s3_resources #failed_s3_resources} => Array<Types::FailedS3Resource>
- #
- # @example Request syntax with placeholder values
- #
- # resp = client.associate_s3_resources({
- # member_account_id: "AWSAccountId",
- # s3_resources: [ # required
- # {
- # bucket_name: "BucketName", # required
- # prefix: "Prefix",
- # classification_type: { # required
- # one_time: "FULL", # required, accepts FULL, NONE
- # continuous: "FULL", # required, accepts FULL
- # },
- # },
- # ],
- # })
- #
- # @example Response structure
- #
- # resp.failed_s3_resources #=> Array
- # resp.failed_s3_resources[0].failed_item.bucket_name #=> String
- # resp.failed_s3_resources[0].failed_item.prefix #=> String
- # resp.failed_s3_resources[0].error_code #=> String
- # resp.failed_s3_resources[0].error_message #=> String
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/AssociateS3Resources AWS API Documentation
- #
- # @overload associate_s3_resources(params = {})
- # @param [Hash] params ({})
- def associate_s3_resources(params = {}, options = {})
- req = build_request(:associate_s3_resources, params)
- req.send_request(options)
- end
-
- # (Discontinued) Removes the specified member account from Amazon Macie
- # Classic.
- #
- # @option params [required, String] :member_account_id
- # (Discontinued) The ID of the member account that you want to remove
- # from Amazon Macie Classic.
- #
- # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
- #
- # @example Request syntax with placeholder values
- #
- # resp = client.disassociate_member_account({
- # member_account_id: "AWSAccountId", # required
- # })
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/DisassociateMemberAccount AWS API Documentation
- #
- # @overload disassociate_member_account(params = {})
- # @param [Hash] params ({})
- def disassociate_member_account(params = {}, options = {})
- req = build_request(:disassociate_member_account, params)
- req.send_request(options)
- end
-
- # (Discontinued) Removes specified S3 resources from being monitored by
- # Amazon Macie Classic. If `memberAccountId` isn't specified, the
- # action removes specified S3 resources from Macie Classic for the
- # current Macie Classic administrator account. If `memberAccountId` is
- # specified, the action removes specified S3 resources from Macie
- # Classic for the specified member account.
- #
- # @option params [String] :member_account_id
- # (Discontinued) The ID of the Amazon Macie Classic member account whose
- # resources you want to remove from being monitored by Macie Classic.
- #
- # @option params [required, Array] :associated_s3_resources
- # (Discontinued) The S3 resources (buckets or prefixes) that you want to
- # remove from being monitored and classified by Amazon Macie Classic.
- #
- # @return [Types::DisassociateS3ResourcesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
- #
- # * {Types::DisassociateS3ResourcesResult#failed_s3_resources #failed_s3_resources} => Array<Types::FailedS3Resource>
- #
- # @example Request syntax with placeholder values
- #
- # resp = client.disassociate_s3_resources({
- # member_account_id: "AWSAccountId",
- # associated_s3_resources: [ # required
- # {
- # bucket_name: "BucketName", # required
- # prefix: "Prefix",
- # },
- # ],
- # })
- #
- # @example Response structure
- #
- # resp.failed_s3_resources #=> Array
- # resp.failed_s3_resources[0].failed_item.bucket_name #=> String
- # resp.failed_s3_resources[0].failed_item.prefix #=> String
- # resp.failed_s3_resources[0].error_code #=> String
- # resp.failed_s3_resources[0].error_message #=> String
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/DisassociateS3Resources AWS API Documentation
- #
- # @overload disassociate_s3_resources(params = {})
- # @param [Hash] params ({})
- def disassociate_s3_resources(params = {}, options = {})
- req = build_request(:disassociate_s3_resources, params)
- req.send_request(options)
- end
-
- # (Discontinued) Lists all Amazon Macie Classic member accounts for the
- # current Macie Classic administrator account.
- #
- # @option params [String] :next_token
- # (Discontinued) 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.
- #
- # @option params [Integer] :max_results
- # (Discontinued) Use this parameter to indicate the maximum number of
- # items that you want in the response. The default value is 250.
- #
- # @return [Types::ListMemberAccountsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
- #
- # * {Types::ListMemberAccountsResult#member_accounts #member_accounts} => Array<Types::MemberAccount>
- # * {Types::ListMemberAccountsResult#next_token #next_token} => String
- #
- # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
- #
- # @example Request syntax with placeholder values
- #
- # resp = client.list_member_accounts({
- # next_token: "NextToken",
- # max_results: 1,
- # })
- #
- # @example Response structure
- #
- # resp.member_accounts #=> Array
- # resp.member_accounts[0].account_id #=> String
- # resp.next_token #=> String
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/ListMemberAccounts AWS API Documentation
- #
- # @overload list_member_accounts(params = {})
- # @param [Hash] params ({})
- def list_member_accounts(params = {}, options = {})
- req = build_request(:list_member_accounts, params)
- req.send_request(options)
- end
-
- # (Discontinued) Lists all the S3 resources associated with Amazon Macie
- # Classic. If `memberAccountId` isn't specified, the action lists the
- # S3 resources associated with Macie Classic for the current Macie
- # Classic administrator account. If `memberAccountId` is specified, the
- # action lists the S3 resources associated with Macie Classic for the
- # specified member account.
- #
- # @option params [String] :member_account_id
- # (Discontinued) The Amazon Macie Classic member account ID whose
- # associated S3 resources you want to list.
- #
- # @option params [String] :next_token
- # (Discontinued) 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.
- #
- # @option params [Integer] :max_results
- # (Discontinued) Use this parameter to indicate the maximum number of
- # items that you want in the response. The default value is 250.
- #
- # @return [Types::ListS3ResourcesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
- #
- # * {Types::ListS3ResourcesResult#s3_resources #s3_resources} => Array<Types::S3ResourceClassification>
- # * {Types::ListS3ResourcesResult#next_token #next_token} => String
- #
- # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
- #
- # @example Request syntax with placeholder values
- #
- # resp = client.list_s3_resources({
- # member_account_id: "AWSAccountId",
- # next_token: "NextToken",
- # max_results: 1,
- # })
- #
- # @example Response structure
- #
- # resp.s3_resources #=> Array
- # resp.s3_resources[0].bucket_name #=> String
- # resp.s3_resources[0].prefix #=> String
- # resp.s3_resources[0].classification_type.one_time #=> String, one of "FULL", "NONE"
- # resp.s3_resources[0].classification_type.continuous #=> String, one of "FULL"
- # resp.next_token #=> String
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/ListS3Resources AWS API Documentation
- #
- # @overload list_s3_resources(params = {})
- # @param [Hash] params ({})
- def list_s3_resources(params = {}, options = {})
- req = build_request(:list_s3_resources, params)
- req.send_request(options)
- end
-
- # (Discontinued) 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 Classic for the current Macie Classic administrator account. If
- # `memberAccountId` is specified, the action updates the classification
- # types of the S3 resources associated with Macie Classic for the
- # specified member account.
- #
- # @option params [String] :member_account_id
- # (Discontinued) The Amazon Web Services account ID of the Amazon Macie
- # Classic member account whose S3 resources' classification types you
- # want to update.
- #
- # @option params [required, Array] :s3_resources_update
- # (Discontinued) The S3 resources whose classification types you want to
- # update.
- #
- # @return [Types::UpdateS3ResourcesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
- #
- # * {Types::UpdateS3ResourcesResult#failed_s3_resources #failed_s3_resources} => Array<Types::FailedS3Resource>
- #
- # @example Request syntax with placeholder values
- #
- # resp = client.update_s3_resources({
- # member_account_id: "AWSAccountId",
- # s3_resources_update: [ # required
- # {
- # bucket_name: "BucketName", # required
- # prefix: "Prefix",
- # classification_type_update: { # required
- # one_time: "FULL", # accepts FULL, NONE
- # continuous: "FULL", # accepts FULL
- # },
- # },
- # ],
- # })
- #
- # @example Response structure
- #
- # resp.failed_s3_resources #=> Array
- # resp.failed_s3_resources[0].failed_item.bucket_name #=> String
- # resp.failed_s3_resources[0].failed_item.prefix #=> String
- # resp.failed_s3_resources[0].error_code #=> String
- # resp.failed_s3_resources[0].error_message #=> String
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/UpdateS3Resources AWS API Documentation
- #
- # @overload update_s3_resources(params = {})
- # @param [Hash] params ({})
- def update_s3_resources(params = {}, options = {})
- req = build_request(:update_s3_resources, params)
- req.send_request(options)
- end
-
- # @!endgroup
-
- # @param params ({})
- # @api private
- def build_request(operation_name, params = {})
- handlers = @handlers.for(operation_name)
- context = Seahorse::Client::RequestContext.new(
- operation_name: operation_name,
- operation: config.api.operation(operation_name),
- client: self,
- params: params,
- config: config)
- context[:gem_name] = 'aws-sdk-macie'
- context[:gem_version] = '1.48.0'
- Seahorse::Client::Request.new(handlers, context)
- end
-
- # @api private
- # @deprecated
- def waiter_names
- []
- end
-
- class << self
-
- # @api private
- attr_reader :identifier
-
- # @api private
- def errors_module
- Errors
- end
-
- end
- end
-end
diff --git a/gems/aws-sdk-macie/lib/aws-sdk-macie/client_api.rb b/gems/aws-sdk-macie/lib/aws-sdk-macie/client_api.rb
deleted file mode 100644
index b5c83467edc..00000000000
--- a/gems/aws-sdk-macie/lib/aws-sdk-macie/client_api.rb
+++ /dev/null
@@ -1,266 +0,0 @@
-# frozen_string_literal: true
-
-# WARNING ABOUT GENERATED CODE
-#
-# This file is generated. See the contributing guide for more information:
-# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
-#
-# WARNING ABOUT GENERATED CODE
-
-module Aws::Macie
- # @api private
- module ClientApi
-
- include Seahorse::Model
-
- AWSAccountId = Shapes::StringShape.new(name: 'AWSAccountId')
- AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
- AssociateMemberAccountRequest = Shapes::StructureShape.new(name: 'AssociateMemberAccountRequest')
- AssociateS3ResourcesRequest = Shapes::StructureShape.new(name: 'AssociateS3ResourcesRequest')
- AssociateS3ResourcesResult = Shapes::StructureShape.new(name: 'AssociateS3ResourcesResult')
- BucketName = Shapes::StringShape.new(name: 'BucketName')
- ClassificationType = Shapes::StructureShape.new(name: 'ClassificationType')
- ClassificationTypeUpdate = Shapes::StructureShape.new(name: 'ClassificationTypeUpdate')
- DisassociateMemberAccountRequest = Shapes::StructureShape.new(name: 'DisassociateMemberAccountRequest')
- DisassociateS3ResourcesRequest = Shapes::StructureShape.new(name: 'DisassociateS3ResourcesRequest')
- DisassociateS3ResourcesResult = Shapes::StructureShape.new(name: 'DisassociateS3ResourcesResult')
- ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
- ExceptionMessage = Shapes::StringShape.new(name: 'ExceptionMessage')
- FailedS3Resource = Shapes::StructureShape.new(name: 'FailedS3Resource')
- FailedS3Resources = Shapes::ListShape.new(name: 'FailedS3Resources')
- FieldName = Shapes::StringShape.new(name: 'FieldName')
- InternalException = Shapes::StructureShape.new(name: 'InternalException')
- InvalidInputException = Shapes::StructureShape.new(name: 'InvalidInputException')
- LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
- ListMemberAccountsRequest = Shapes::StructureShape.new(name: 'ListMemberAccountsRequest')
- ListMemberAccountsResult = Shapes::StructureShape.new(name: 'ListMemberAccountsResult')
- ListS3ResourcesRequest = Shapes::StructureShape.new(name: 'ListS3ResourcesRequest')
- ListS3ResourcesResult = Shapes::StructureShape.new(name: 'ListS3ResourcesResult')
- MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
- MemberAccount = Shapes::StructureShape.new(name: 'MemberAccount')
- MemberAccounts = Shapes::ListShape.new(name: 'MemberAccounts')
- NextToken = Shapes::StringShape.new(name: 'NextToken')
- Prefix = Shapes::StringShape.new(name: 'Prefix')
- ResourceType = Shapes::StringShape.new(name: 'ResourceType')
- S3ContinuousClassificationType = Shapes::StringShape.new(name: 'S3ContinuousClassificationType')
- S3OneTimeClassificationType = Shapes::StringShape.new(name: 'S3OneTimeClassificationType')
- S3Resource = Shapes::StructureShape.new(name: 'S3Resource')
- S3ResourceClassification = Shapes::StructureShape.new(name: 'S3ResourceClassification')
- S3ResourceClassificationUpdate = Shapes::StructureShape.new(name: 'S3ResourceClassificationUpdate')
- S3Resources = Shapes::ListShape.new(name: 'S3Resources')
- S3ResourcesClassification = Shapes::ListShape.new(name: 'S3ResourcesClassification')
- S3ResourcesClassificationUpdate = Shapes::ListShape.new(name: 'S3ResourcesClassificationUpdate')
- UpdateS3ResourcesRequest = Shapes::StructureShape.new(name: 'UpdateS3ResourcesRequest')
- UpdateS3ResourcesResult = Shapes::StructureShape.new(name: 'UpdateS3ResourcesResult')
-
- AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
- AccessDeniedException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "resourceType"))
- AccessDeniedException.struct_class = Types::AccessDeniedException
-
- AssociateMemberAccountRequest.add_member(:member_account_id, Shapes::ShapeRef.new(shape: AWSAccountId, required: true, location_name: "memberAccountId"))
- AssociateMemberAccountRequest.struct_class = Types::AssociateMemberAccountRequest
-
- AssociateS3ResourcesRequest.add_member(:member_account_id, Shapes::ShapeRef.new(shape: AWSAccountId, location_name: "memberAccountId"))
- AssociateS3ResourcesRequest.add_member(:s3_resources, Shapes::ShapeRef.new(shape: S3ResourcesClassification, required: true, location_name: "s3Resources"))
- AssociateS3ResourcesRequest.struct_class = Types::AssociateS3ResourcesRequest
-
- AssociateS3ResourcesResult.add_member(:failed_s3_resources, Shapes::ShapeRef.new(shape: FailedS3Resources, location_name: "failedS3Resources"))
- AssociateS3ResourcesResult.struct_class = Types::AssociateS3ResourcesResult
-
- ClassificationType.add_member(:one_time, Shapes::ShapeRef.new(shape: S3OneTimeClassificationType, required: true, location_name: "oneTime"))
- ClassificationType.add_member(:continuous, Shapes::ShapeRef.new(shape: S3ContinuousClassificationType, required: true, location_name: "continuous"))
- ClassificationType.struct_class = Types::ClassificationType
-
- ClassificationTypeUpdate.add_member(:one_time, Shapes::ShapeRef.new(shape: S3OneTimeClassificationType, location_name: "oneTime"))
- ClassificationTypeUpdate.add_member(:continuous, Shapes::ShapeRef.new(shape: S3ContinuousClassificationType, location_name: "continuous"))
- ClassificationTypeUpdate.struct_class = Types::ClassificationTypeUpdate
-
- DisassociateMemberAccountRequest.add_member(:member_account_id, Shapes::ShapeRef.new(shape: AWSAccountId, required: true, location_name: "memberAccountId"))
- DisassociateMemberAccountRequest.struct_class = Types::DisassociateMemberAccountRequest
-
- DisassociateS3ResourcesRequest.add_member(:member_account_id, Shapes::ShapeRef.new(shape: AWSAccountId, location_name: "memberAccountId"))
- DisassociateS3ResourcesRequest.add_member(:associated_s3_resources, Shapes::ShapeRef.new(shape: S3Resources, required: true, location_name: "associatedS3Resources"))
- DisassociateS3ResourcesRequest.struct_class = Types::DisassociateS3ResourcesRequest
-
- DisassociateS3ResourcesResult.add_member(:failed_s3_resources, Shapes::ShapeRef.new(shape: FailedS3Resources, location_name: "failedS3Resources"))
- DisassociateS3ResourcesResult.struct_class = Types::DisassociateS3ResourcesResult
-
- FailedS3Resource.add_member(:failed_item, Shapes::ShapeRef.new(shape: S3Resource, location_name: "failedItem"))
- FailedS3Resource.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "errorCode"))
- FailedS3Resource.add_member(:error_message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "errorMessage"))
- FailedS3Resource.struct_class = Types::FailedS3Resource
-
- FailedS3Resources.member = Shapes::ShapeRef.new(shape: FailedS3Resource)
-
- InternalException.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "errorCode"))
- InternalException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
- InternalException.struct_class = Types::InternalException
-
- InvalidInputException.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "errorCode"))
- InvalidInputException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
- InvalidInputException.add_member(:field_name, Shapes::ShapeRef.new(shape: FieldName, location_name: "fieldName"))
- InvalidInputException.struct_class = Types::InvalidInputException
-
- LimitExceededException.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "errorCode"))
- LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
- LimitExceededException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "resourceType"))
- LimitExceededException.struct_class = Types::LimitExceededException
-
- ListMemberAccountsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
- ListMemberAccountsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
- ListMemberAccountsRequest.struct_class = Types::ListMemberAccountsRequest
-
- ListMemberAccountsResult.add_member(:member_accounts, Shapes::ShapeRef.new(shape: MemberAccounts, location_name: "memberAccounts"))
- ListMemberAccountsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
- ListMemberAccountsResult.struct_class = Types::ListMemberAccountsResult
-
- ListS3ResourcesRequest.add_member(:member_account_id, Shapes::ShapeRef.new(shape: AWSAccountId, location_name: "memberAccountId"))
- ListS3ResourcesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
- ListS3ResourcesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
- ListS3ResourcesRequest.struct_class = Types::ListS3ResourcesRequest
-
- ListS3ResourcesResult.add_member(:s3_resources, Shapes::ShapeRef.new(shape: S3ResourcesClassification, location_name: "s3Resources"))
- ListS3ResourcesResult.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
- ListS3ResourcesResult.struct_class = Types::ListS3ResourcesResult
-
- MemberAccount.add_member(:account_id, Shapes::ShapeRef.new(shape: AWSAccountId, location_name: "accountId"))
- MemberAccount.struct_class = Types::MemberAccount
-
- MemberAccounts.member = Shapes::ShapeRef.new(shape: MemberAccount)
-
- S3Resource.add_member(:bucket_name, Shapes::ShapeRef.new(shape: BucketName, required: true, location_name: "bucketName"))
- S3Resource.add_member(:prefix, Shapes::ShapeRef.new(shape: Prefix, location_name: "prefix"))
- S3Resource.struct_class = Types::S3Resource
-
- S3ResourceClassification.add_member(:bucket_name, Shapes::ShapeRef.new(shape: BucketName, required: true, location_name: "bucketName"))
- S3ResourceClassification.add_member(:prefix, Shapes::ShapeRef.new(shape: Prefix, location_name: "prefix"))
- S3ResourceClassification.add_member(:classification_type, Shapes::ShapeRef.new(shape: ClassificationType, required: true, location_name: "classificationType"))
- S3ResourceClassification.struct_class = Types::S3ResourceClassification
-
- S3ResourceClassificationUpdate.add_member(:bucket_name, Shapes::ShapeRef.new(shape: BucketName, required: true, location_name: "bucketName"))
- S3ResourceClassificationUpdate.add_member(:prefix, Shapes::ShapeRef.new(shape: Prefix, location_name: "prefix"))
- S3ResourceClassificationUpdate.add_member(:classification_type_update, Shapes::ShapeRef.new(shape: ClassificationTypeUpdate, required: true, location_name: "classificationTypeUpdate"))
- S3ResourceClassificationUpdate.struct_class = Types::S3ResourceClassificationUpdate
-
- S3Resources.member = Shapes::ShapeRef.new(shape: S3Resource)
-
- S3ResourcesClassification.member = Shapes::ShapeRef.new(shape: S3ResourceClassification)
-
- S3ResourcesClassificationUpdate.member = Shapes::ShapeRef.new(shape: S3ResourceClassificationUpdate)
-
- UpdateS3ResourcesRequest.add_member(:member_account_id, Shapes::ShapeRef.new(shape: AWSAccountId, location_name: "memberAccountId"))
- UpdateS3ResourcesRequest.add_member(:s3_resources_update, Shapes::ShapeRef.new(shape: S3ResourcesClassificationUpdate, required: true, location_name: "s3ResourcesUpdate"))
- UpdateS3ResourcesRequest.struct_class = Types::UpdateS3ResourcesRequest
-
- UpdateS3ResourcesResult.add_member(:failed_s3_resources, Shapes::ShapeRef.new(shape: FailedS3Resources, location_name: "failedS3Resources"))
- UpdateS3ResourcesResult.struct_class = Types::UpdateS3ResourcesResult
-
-
- # @api private
- API = Seahorse::Model::Api.new.tap do |api|
-
- api.version = "2017-12-19"
-
- api.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",
- }
-
- api.add_operation(:associate_member_account, Seahorse::Model::Operation.new.tap do |o|
- o.name = "AssociateMemberAccount"
- o.http_method = "POST"
- o.http_request_uri = "/"
- o.input = Shapes::ShapeRef.new(shape: AssociateMemberAccountRequest)
- o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
- o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
- o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
- o.errors << Shapes::ShapeRef.new(shape: InternalException)
- end)
-
- api.add_operation(:associate_s3_resources, Seahorse::Model::Operation.new.tap do |o|
- o.name = "AssociateS3Resources"
- o.http_method = "POST"
- o.http_request_uri = "/"
- o.input = Shapes::ShapeRef.new(shape: AssociateS3ResourcesRequest)
- o.output = Shapes::ShapeRef.new(shape: AssociateS3ResourcesResult)
- o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
- o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
- o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
- o.errors << Shapes::ShapeRef.new(shape: InternalException)
- end)
-
- api.add_operation(:disassociate_member_account, Seahorse::Model::Operation.new.tap do |o|
- o.name = "DisassociateMemberAccount"
- o.http_method = "POST"
- o.http_request_uri = "/"
- o.input = Shapes::ShapeRef.new(shape: DisassociateMemberAccountRequest)
- o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
- o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
- o.errors << Shapes::ShapeRef.new(shape: InternalException)
- end)
-
- api.add_operation(:disassociate_s3_resources, Seahorse::Model::Operation.new.tap do |o|
- o.name = "DisassociateS3Resources"
- o.http_method = "POST"
- o.http_request_uri = "/"
- o.input = Shapes::ShapeRef.new(shape: DisassociateS3ResourcesRequest)
- o.output = Shapes::ShapeRef.new(shape: DisassociateS3ResourcesResult)
- o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
- o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
- o.errors << Shapes::ShapeRef.new(shape: InternalException)
- end)
-
- api.add_operation(:list_member_accounts, Seahorse::Model::Operation.new.tap do |o|
- o.name = "ListMemberAccounts"
- o.http_method = "POST"
- o.http_request_uri = "/"
- o.input = Shapes::ShapeRef.new(shape: ListMemberAccountsRequest)
- o.output = Shapes::ShapeRef.new(shape: ListMemberAccountsResult)
- o.errors << Shapes::ShapeRef.new(shape: InternalException)
- o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
- o[:pager] = Aws::Pager.new(
- limit_key: "max_results",
- tokens: {
- "next_token" => "next_token"
- }
- )
- end)
-
- api.add_operation(:list_s3_resources, Seahorse::Model::Operation.new.tap do |o|
- o.name = "ListS3Resources"
- o.http_method = "POST"
- o.http_request_uri = "/"
- o.input = Shapes::ShapeRef.new(shape: ListS3ResourcesRequest)
- o.output = Shapes::ShapeRef.new(shape: ListS3ResourcesResult)
- o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
- o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
- o.errors << Shapes::ShapeRef.new(shape: InternalException)
- o[:pager] = Aws::Pager.new(
- limit_key: "max_results",
- tokens: {
- "next_token" => "next_token"
- }
- )
- end)
-
- api.add_operation(:update_s3_resources, Seahorse::Model::Operation.new.tap do |o|
- o.name = "UpdateS3Resources"
- o.http_method = "POST"
- o.http_request_uri = "/"
- o.input = Shapes::ShapeRef.new(shape: UpdateS3ResourcesRequest)
- o.output = Shapes::ShapeRef.new(shape: UpdateS3ResourcesResult)
- o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
- o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
- o.errors << Shapes::ShapeRef.new(shape: InternalException)
- end)
- end
-
- end
-end
diff --git a/gems/aws-sdk-macie/lib/aws-sdk-macie/customizations.rb b/gems/aws-sdk-macie/lib/aws-sdk-macie/customizations.rb
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/gems/aws-sdk-macie/lib/aws-sdk-macie/endpoint_parameters.rb b/gems/aws-sdk-macie/lib/aws-sdk-macie/endpoint_parameters.rb
deleted file mode 100644
index 5950200e6ea..00000000000
--- a/gems/aws-sdk-macie/lib/aws-sdk-macie/endpoint_parameters.rb
+++ /dev/null
@@ -1,66 +0,0 @@
-# frozen_string_literal: true
-
-# WARNING ABOUT GENERATED CODE
-#
-# This file is generated. See the contributing guide for more information:
-# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
-#
-# WARNING ABOUT GENERATED CODE
-
-module Aws::Macie
- # Endpoint parameters used to influence endpoints per request.
- #
- # @!attribute region
- # The AWS region used to dispatch the request.
- #
- # @return [String]
- #
- # @!attribute use_dual_stack
- # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
- #
- # @return [Boolean]
- #
- # @!attribute use_fips
- # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
- #
- # @return [Boolean]
- #
- # @!attribute endpoint
- # Override the endpoint used to send this request
- #
- # @return [String]
- #
- EndpointParameters = Struct.new(
- :region,
- :use_dual_stack,
- :use_fips,
- :endpoint,
- ) do
- include Aws::Structure
-
- # @api private
- class << self
- PARAM_MAP = {
- 'Region' => :region,
- 'UseDualStack' => :use_dual_stack,
- 'UseFIPS' => :use_fips,
- 'Endpoint' => :endpoint,
- }.freeze
- end
-
- def initialize(options = {})
- self[:region] = options[:region]
- self[:use_dual_stack] = options[:use_dual_stack]
- self[:use_dual_stack] = false if self[:use_dual_stack].nil?
- if self[:use_dual_stack].nil?
- raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
- end
- self[:use_fips] = options[:use_fips]
- self[:use_fips] = false if self[:use_fips].nil?
- if self[:use_fips].nil?
- raise ArgumentError, "Missing required EndpointParameter: :use_fips"
- end
- self[:endpoint] = options[:endpoint]
- end
- end
-end
diff --git a/gems/aws-sdk-macie/lib/aws-sdk-macie/endpoint_provider.rb b/gems/aws-sdk-macie/lib/aws-sdk-macie/endpoint_provider.rb
deleted file mode 100644
index 52d05dbaa74..00000000000
--- a/gems/aws-sdk-macie/lib/aws-sdk-macie/endpoint_provider.rb
+++ /dev/null
@@ -1,54 +0,0 @@
-# frozen_string_literal: true
-
-# WARNING ABOUT GENERATED CODE
-#
-# This file is generated. See the contributing guide for more information:
-# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
-#
-# WARNING ABOUT GENERATED CODE
-
-module Aws::Macie
- class EndpointProvider
- def resolve_endpoint(parameters)
- region = parameters.region
- use_dual_stack = parameters.use_dual_stack
- use_fips = parameters.use_fips
- endpoint = parameters.endpoint
- if Aws::Endpoints::Matchers.set?(endpoint)
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
- raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
- end
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
- raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
- end
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
- end
- if Aws::Endpoints::Matchers.set?(region)
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
- return Aws::Endpoints::Endpoint.new(url: "https://macie-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
- end
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
- end
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
- return Aws::Endpoints::Endpoint.new(url: "https://macie-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
- end
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
- end
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
- return Aws::Endpoints::Endpoint.new(url: "https://macie.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
- end
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
- end
- return Aws::Endpoints::Endpoint.new(url: "https://macie.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
- end
- end
- raise ArgumentError, "Invalid Configuration: Missing Region"
- raise ArgumentError, 'No endpoint could be resolved'
-
- end
- end
-end
diff --git a/gems/aws-sdk-macie/lib/aws-sdk-macie/endpoints.rb b/gems/aws-sdk-macie/lib/aws-sdk-macie/endpoints.rb
deleted file mode 100644
index d050cc65ec0..00000000000
--- a/gems/aws-sdk-macie/lib/aws-sdk-macie/endpoints.rb
+++ /dev/null
@@ -1,114 +0,0 @@
-# frozen_string_literal: true
-
-# WARNING ABOUT GENERATED CODE
-#
-# This file is generated. See the contributing guide for more information:
-# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
-#
-# WARNING ABOUT GENERATED CODE
-
-
-module Aws::Macie
- # @api private
- module Endpoints
-
- class AssociateMemberAccount
- def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
- Aws::Macie::EndpointParameters.new(
- region: context.config.region,
- use_dual_stack: context.config.use_dualstack_endpoint,
- use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
- )
- end
- end
-
- class AssociateS3Resources
- def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
- Aws::Macie::EndpointParameters.new(
- region: context.config.region,
- use_dual_stack: context.config.use_dualstack_endpoint,
- use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
- )
- end
- end
-
- class DisassociateMemberAccount
- def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
- Aws::Macie::EndpointParameters.new(
- region: context.config.region,
- use_dual_stack: context.config.use_dualstack_endpoint,
- use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
- )
- end
- end
-
- class DisassociateS3Resources
- def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
- Aws::Macie::EndpointParameters.new(
- region: context.config.region,
- use_dual_stack: context.config.use_dualstack_endpoint,
- use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
- )
- end
- end
-
- class ListMemberAccounts
- def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
- Aws::Macie::EndpointParameters.new(
- region: context.config.region,
- use_dual_stack: context.config.use_dualstack_endpoint,
- use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
- )
- end
- end
-
- class ListS3Resources
- def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
- Aws::Macie::EndpointParameters.new(
- region: context.config.region,
- use_dual_stack: context.config.use_dualstack_endpoint,
- use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
- )
- end
- end
-
- class UpdateS3Resources
- def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
- Aws::Macie::EndpointParameters.new(
- region: context.config.region,
- use_dual_stack: context.config.use_dualstack_endpoint,
- use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
- )
- end
- end
-
- end
-end
diff --git a/gems/aws-sdk-macie/lib/aws-sdk-macie/errors.rb b/gems/aws-sdk-macie/lib/aws-sdk-macie/errors.rb
deleted file mode 100644
index 866f97f53d4..00000000000
--- a/gems/aws-sdk-macie/lib/aws-sdk-macie/errors.rb
+++ /dev/null
@@ -1,132 +0,0 @@
-# frozen_string_literal: true
-
-# WARNING ABOUT GENERATED CODE
-#
-# This file is generated. See the contributing guide for more information:
-# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
-#
-# WARNING ABOUT GENERATED CODE
-
-module Aws::Macie
-
- # When Macie returns an error response, the Ruby SDK constructs and raises an error.
- # These errors all extend Aws::Macie::Errors::ServiceError < {Aws::Errors::ServiceError}
- #
- # You can rescue all Macie errors using ServiceError:
- #
- # begin
- # # do stuff
- # rescue Aws::Macie::Errors::ServiceError
- # # rescues all Macie API errors
- # end
- #
- #
- # ## Request Context
- # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
- # information about the request that generated the error.
- # See {Seahorse::Client::RequestContext} for more information.
- #
- # ## Error Classes
- # * {AccessDeniedException}
- # * {InternalException}
- # * {InvalidInputException}
- # * {LimitExceededException}
- #
- # Additionally, error classes are dynamically generated for service errors based on the error code
- # if they are not defined above.
- module Errors
-
- extend Aws::Errors::DynamicErrors
-
- class AccessDeniedException < ServiceError
-
- # @param [Seahorse::Client::RequestContext] context
- # @param [String] message
- # @param [Aws::Macie::Types::AccessDeniedException] data
- def initialize(context, message, data = Aws::EmptyStructure.new)
- super(context, message, data)
- end
-
- # @return [String]
- def message
- @message || @data[:message]
- end
-
- # @return [String]
- def resource_type
- @data[:resource_type]
- end
- end
-
- class InternalException < ServiceError
-
- # @param [Seahorse::Client::RequestContext] context
- # @param [String] message
- # @param [Aws::Macie::Types::InternalException] data
- def initialize(context, message, data = Aws::EmptyStructure.new)
- super(context, message, data)
- end
-
- # @return [String]
- def error_code
- @data[:error_code]
- end
-
- # @return [String]
- def message
- @message || @data[:message]
- end
- end
-
- class InvalidInputException < ServiceError
-
- # @param [Seahorse::Client::RequestContext] context
- # @param [String] message
- # @param [Aws::Macie::Types::InvalidInputException] data
- def initialize(context, message, data = Aws::EmptyStructure.new)
- super(context, message, data)
- end
-
- # @return [String]
- def error_code
- @data[:error_code]
- end
-
- # @return [String]
- def message
- @message || @data[:message]
- end
-
- # @return [String]
- def field_name
- @data[:field_name]
- end
- end
-
- class LimitExceededException < ServiceError
-
- # @param [Seahorse::Client::RequestContext] context
- # @param [String] message
- # @param [Aws::Macie::Types::LimitExceededException] data
- def initialize(context, message, data = Aws::EmptyStructure.new)
- super(context, message, data)
- end
-
- # @return [String]
- def error_code
- @data[:error_code]
- end
-
- # @return [String]
- def message
- @message || @data[:message]
- end
-
- # @return [String]
- def resource_type
- @data[:resource_type]
- end
- end
-
- end
-end
diff --git a/gems/aws-sdk-macie/lib/aws-sdk-macie/plugins/endpoints.rb b/gems/aws-sdk-macie/lib/aws-sdk-macie/plugins/endpoints.rb
deleted file mode 100644
index db142385ba7..00000000000
--- a/gems/aws-sdk-macie/lib/aws-sdk-macie/plugins/endpoints.rb
+++ /dev/null
@@ -1,82 +0,0 @@
-# frozen_string_literal: true
-
-# WARNING ABOUT GENERATED CODE
-#
-# This file is generated. See the contributing guide for more information:
-# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
-#
-# WARNING ABOUT GENERATED CODE
-
-
-module Aws::Macie
- module Plugins
- class Endpoints < Seahorse::Client::Plugin
- option(
- :endpoint_provider,
- doc_type: 'Aws::Macie::EndpointProvider',
- docstring: 'The endpoint provider used to resolve endpoints. Any '\
- 'object that responds to `#resolve_endpoint(parameters)` '\
- 'where `parameters` is a Struct similar to '\
- '`Aws::Macie::EndpointParameters`'
- ) do |cfg|
- Aws::Macie::EndpointProvider.new
- end
-
- # @api private
- class Handler < Seahorse::Client::Handler
- def call(context)
- # If endpoint was discovered, do not resolve or apply the endpoint.
- unless context[:discovered_endpoint]
- params = parameters_for_operation(context)
- endpoint = context.config.endpoint_provider.resolve_endpoint(params)
-
- context.http_request.endpoint = endpoint.url
- apply_endpoint_headers(context, endpoint.headers)
- end
-
- context[:endpoint_params] = params
- context[:auth_scheme] =
- Aws::Endpoints.resolve_auth_scheme(context, endpoint)
-
- @handler.call(context)
- end
-
- private
-
- def apply_endpoint_headers(context, headers)
- headers.each do |key, values|
- value = values
- .compact
- .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
- .join(',')
-
- context.http_request.headers[key] = value
- end
- end
-
- def parameters_for_operation(context)
- case context.operation_name
- when :associate_member_account
- Aws::Macie::Endpoints::AssociateMemberAccount.build(context)
- when :associate_s3_resources
- Aws::Macie::Endpoints::AssociateS3Resources.build(context)
- when :disassociate_member_account
- Aws::Macie::Endpoints::DisassociateMemberAccount.build(context)
- when :disassociate_s3_resources
- Aws::Macie::Endpoints::DisassociateS3Resources.build(context)
- when :list_member_accounts
- Aws::Macie::Endpoints::ListMemberAccounts.build(context)
- when :list_s3_resources
- Aws::Macie::Endpoints::ListS3Resources.build(context)
- when :update_s3_resources
- Aws::Macie::Endpoints::UpdateS3Resources.build(context)
- end
- end
- end
-
- def add_handlers(handlers, _config)
- handlers.add(Handler, step: :build, priority: 75)
- end
- end
- end
-end
diff --git a/gems/aws-sdk-macie/lib/aws-sdk-macie/resource.rb b/gems/aws-sdk-macie/lib/aws-sdk-macie/resource.rb
deleted file mode 100644
index fc0be787772..00000000000
--- a/gems/aws-sdk-macie/lib/aws-sdk-macie/resource.rb
+++ /dev/null
@@ -1,26 +0,0 @@
-# frozen_string_literal: true
-
-# WARNING ABOUT GENERATED CODE
-#
-# This file is generated. See the contributing guide for more information:
-# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
-#
-# WARNING ABOUT GENERATED CODE
-
-module Aws::Macie
-
- class Resource
-
- # @param options ({})
- # @option options [Client] :client
- def initialize(options = {})
- @client = options[:client] || Client.new(options)
- end
-
- # @return [Client]
- def client
- @client
- end
-
- end
-end
diff --git a/gems/aws-sdk-macie/lib/aws-sdk-macie/types.rb b/gems/aws-sdk-macie/lib/aws-sdk-macie/types.rb
deleted file mode 100644
index a5929f174e0..00000000000
--- a/gems/aws-sdk-macie/lib/aws-sdk-macie/types.rb
+++ /dev/null
@@ -1,493 +0,0 @@
-# frozen_string_literal: true
-
-# WARNING ABOUT GENERATED CODE
-#
-# This file is generated. See the contributing guide for more information:
-# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
-#
-# WARNING ABOUT GENERATED CODE
-
-module Aws::Macie
- module Types
-
- # (Discontinued) You do not have required permissions to access the
- # requested resource.
- #
- # @!attribute [rw] message
- # @return [String]
- #
- # @!attribute [rw] resource_type
- # Resource type that caused the exception
- # @return [String]
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/AccessDeniedException AWS API Documentation
- #
- class AccessDeniedException < Struct.new(
- :message,
- :resource_type)
- SENSITIVE = []
- include Aws::Structure
- end
-
- # @!attribute [rw] member_account_id
- # (Discontinued) The ID of the Amazon Web Services account that you
- # want to associate with Amazon Macie Classic as a member account.
- # @return [String]
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/AssociateMemberAccountRequest AWS API Documentation
- #
- class AssociateMemberAccountRequest < Struct.new(
- :member_account_id)
- SENSITIVE = []
- include Aws::Structure
- end
-
- # @!attribute [rw] member_account_id
- # (Discontinued) The ID of the Amazon Macie Classic member account
- # whose resources you want to associate with Macie Classic.
- # @return [String]
- #
- # @!attribute [rw] s3_resources
- # (Discontinued) The S3 resources that you want to associate with
- # Amazon Macie Classic for monitoring and data classification.
- # @return [Array]
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/AssociateS3ResourcesRequest AWS API Documentation
- #
- class AssociateS3ResourcesRequest < Struct.new(
- :member_account_id,
- :s3_resources)
- SENSITIVE = []
- include Aws::Structure
- end
-
- # @!attribute [rw] failed_s3_resources
- # (Discontinued) S3 resources that couldn't be associated with Amazon
- # Macie Classic. An error code and an error message are provided for
- # each failed item.
- # @return [Array]
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/AssociateS3ResourcesResult AWS API Documentation
- #
- class AssociateS3ResourcesResult < Struct.new(
- :failed_s3_resources)
- SENSITIVE = []
- include Aws::Structure
- end
-
- # (Discontinued) The classification type that Amazon Macie Classic
- # applies to the associated S3 resources.
- #
- # @!attribute [rw] one_time
- # (Discontinued) A one-time classification of all of the existing
- # objects in a specified S3 bucket.
- # @return [String]
- #
- # @!attribute [rw] continuous
- # (Discontinued) A continuous classification of the objects that are
- # added to a specified S3 bucket. Amazon Macie Classic begins
- # performing continuous classification after a bucket is successfully
- # associated with Macie Classic.
- # @return [String]
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/ClassificationType AWS API Documentation
- #
- class ClassificationType < Struct.new(
- :one_time,
- :continuous)
- SENSITIVE = []
- include Aws::Structure
- end
-
- # (Discontinued) The classification type that Amazon Macie Classic
- # applies to the associated S3 resources. At least one of the
- # classification types (`oneTime` or `continuous`) must be specified.
- #
- # @!attribute [rw] one_time
- # (Discontinued) A one-time classification of all of the existing
- # objects in a specified S3 bucket.
- # @return [String]
- #
- # @!attribute [rw] continuous
- # (Discontinued) A continuous classification of the objects that are
- # added to a specified S3 bucket. Amazon Macie Classic begins
- # performing continuous classification after a bucket is successfully
- # associated with Macie Classic.
- # @return [String]
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/ClassificationTypeUpdate AWS API Documentation
- #
- class ClassificationTypeUpdate < Struct.new(
- :one_time,
- :continuous)
- SENSITIVE = []
- include Aws::Structure
- end
-
- # @!attribute [rw] member_account_id
- # (Discontinued) The ID of the member account that you want to remove
- # from Amazon Macie Classic.
- # @return [String]
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/DisassociateMemberAccountRequest AWS API Documentation
- #
- class DisassociateMemberAccountRequest < Struct.new(
- :member_account_id)
- SENSITIVE = []
- include Aws::Structure
- end
-
- # @!attribute [rw] member_account_id
- # (Discontinued) The ID of the Amazon Macie Classic member account
- # whose resources you want to remove from being monitored by Macie
- # Classic.
- # @return [String]
- #
- # @!attribute [rw] associated_s3_resources
- # (Discontinued) The S3 resources (buckets or prefixes) that you want
- # to remove from being monitored and classified by Amazon Macie
- # Classic.
- # @return [Array]
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/DisassociateS3ResourcesRequest AWS API Documentation
- #
- class DisassociateS3ResourcesRequest < Struct.new(
- :member_account_id,
- :associated_s3_resources)
- SENSITIVE = []
- include Aws::Structure
- end
-
- # @!attribute [rw] failed_s3_resources
- # (Discontinued) S3 resources that couldn't be removed from being
- # monitored and classified by Amazon Macie Classic. An error code and
- # an error message are provided for each failed item.
- # @return [Array]
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/DisassociateS3ResourcesResult AWS API Documentation
- #
- class DisassociateS3ResourcesResult < Struct.new(
- :failed_s3_resources)
- SENSITIVE = []
- include Aws::Structure
- end
-
- # (Discontinued) Includes details about the failed S3 resources.
- #
- # @!attribute [rw] failed_item
- # (Discontinued) The failed S3 resources.
- # @return [Types::S3Resource]
- #
- # @!attribute [rw] error_code
- # (Discontinued) The status code of a failed item.
- # @return [String]
- #
- # @!attribute [rw] error_message
- # (Discontinued) The error message of a failed item.
- # @return [String]
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/FailedS3Resource AWS API Documentation
- #
- class FailedS3Resource < Struct.new(
- :failed_item,
- :error_code,
- :error_message)
- SENSITIVE = []
- include Aws::Structure
- end
-
- # (Discontinued) Internal server error.
- #
- # @!attribute [rw] error_code
- # Error code for the exception
- # @return [String]
- #
- # @!attribute [rw] message
- # @return [String]
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/InternalException AWS API Documentation
- #
- class InternalException < Struct.new(
- :error_code,
- :message)
- SENSITIVE = []
- include Aws::Structure
- end
-
- # (Discontinued) The request was rejected because an invalid or
- # out-of-range value was supplied for an input parameter.
- #
- # @!attribute [rw] error_code
- # Error code for the exception
- # @return [String]
- #
- # @!attribute [rw] message
- # @return [String]
- #
- # @!attribute [rw] field_name
- # Field that has invalid input
- # @return [String]
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/InvalidInputException AWS API Documentation
- #
- class InvalidInputException < Struct.new(
- :error_code,
- :message,
- :field_name)
- SENSITIVE = []
- include Aws::Structure
- end
-
- # (Discontinued) The request was rejected because it attempted to create
- # resources beyond the current Amazon Web Services account quotas. The
- # error code describes the quota exceeded.
- #
- # @!attribute [rw] error_code
- # Error code for the exception
- # @return [String]
- #
- # @!attribute [rw] message
- # @return [String]
- #
- # @!attribute [rw] resource_type
- # Resource type that caused the exception
- # @return [String]
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/LimitExceededException AWS API Documentation
- #
- class LimitExceededException < Struct.new(
- :error_code,
- :message,
- :resource_type)
- SENSITIVE = []
- include Aws::Structure
- end
-
- # @!attribute [rw] next_token
- # (Discontinued) 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.
- # @return [String]
- #
- # @!attribute [rw] max_results
- # (Discontinued) Use this parameter to indicate the maximum number of
- # items that you want in the response. The default value is 250.
- # @return [Integer]
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/ListMemberAccountsRequest AWS API Documentation
- #
- class ListMemberAccountsRequest < Struct.new(
- :next_token,
- :max_results)
- SENSITIVE = []
- include Aws::Structure
- end
-
- # @!attribute [rw] member_accounts
- # (Discontinued) A list of the Amazon Macie Classic member accounts
- # returned by the action. The current Macie Classic administrator
- # account is also included in this list.
- # @return [Array]
- #
- # @!attribute [rw] next_token
- # (Discontinued) 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.
- # @return [String]
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/ListMemberAccountsResult AWS API Documentation
- #
- class ListMemberAccountsResult < Struct.new(
- :member_accounts,
- :next_token)
- SENSITIVE = []
- include Aws::Structure
- end
-
- # @!attribute [rw] member_account_id
- # (Discontinued) The Amazon Macie Classic member account ID whose
- # associated S3 resources you want to list.
- # @return [String]
- #
- # @!attribute [rw] next_token
- # (Discontinued) 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.
- # @return [String]
- #
- # @!attribute [rw] max_results
- # (Discontinued) Use this parameter to indicate the maximum number of
- # items that you want in the response. The default value is 250.
- # @return [Integer]
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/ListS3ResourcesRequest AWS API Documentation
- #
- class ListS3ResourcesRequest < Struct.new(
- :member_account_id,
- :next_token,
- :max_results)
- SENSITIVE = []
- include Aws::Structure
- end
-
- # @!attribute [rw] s3_resources
- # (Discontinued) A list of the associated S3 resources returned by the
- # action.
- # @return [Array]
- #
- # @!attribute [rw] next_token
- # (Discontinued) 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.
- # @return [String]
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/ListS3ResourcesResult AWS API Documentation
- #
- class ListS3ResourcesResult < Struct.new(
- :s3_resources,
- :next_token)
- SENSITIVE = []
- include Aws::Structure
- end
-
- # (Discontinued) Contains information about the Amazon Macie Classic
- # member account.
- #
- # @!attribute [rw] account_id
- # (Discontinued) The Amazon Web Services account ID of the Amazon
- # Macie Classic member account.
- # @return [String]
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/MemberAccount AWS API Documentation
- #
- class MemberAccount < Struct.new(
- :account_id)
- SENSITIVE = []
- include Aws::Structure
- end
-
- # (Discontinued) 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.
- #
- # @!attribute [rw] bucket_name
- # (Discontinued) The name of the S3 bucket.
- # @return [String]
- #
- # @!attribute [rw] prefix
- # (Discontinued) The prefix of the S3 bucket.
- # @return [String]
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/S3Resource AWS API Documentation
- #
- class S3Resource < Struct.new(
- :bucket_name,
- :prefix)
- SENSITIVE = []
- include Aws::Structure
- end
-
- # (Discontinued) The S3 resources that you want to associate with Amazon
- # Macie Classic 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.
- #
- # @!attribute [rw] bucket_name
- # (Discontinued) The name of the S3 bucket that you want to associate
- # with Amazon Macie Classic.
- # @return [String]
- #
- # @!attribute [rw] prefix
- # (Discontinued) The prefix of the S3 bucket that you want to
- # associate with Amazon Macie Classic.
- # @return [String]
- #
- # @!attribute [rw] classification_type
- # (Discontinued) The classification type that you want to specify for
- # the resource associated with Amazon Macie Classic.
- # @return [Types::ClassificationType]
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/S3ResourceClassification AWS API Documentation
- #
- class S3ResourceClassification < Struct.new(
- :bucket_name,
- :prefix,
- :classification_type)
- SENSITIVE = []
- include Aws::Structure
- end
-
- # (Discontinued) The S3 resources whose classification types you want to
- # update. This data type is used as a request parameter in the
- # `UpdateS3Resources` action.
- #
- # @!attribute [rw] bucket_name
- # (Discontinued) The name of the S3 bucket whose classification types
- # you want to update.
- # @return [String]
- #
- # @!attribute [rw] prefix
- # (Discontinued) The prefix of the S3 bucket whose classification
- # types you want to update.
- # @return [String]
- #
- # @!attribute [rw] classification_type_update
- # (Discontinued) The classification type that you want to update for
- # the resource associated with Amazon Macie Classic.
- # @return [Types::ClassificationTypeUpdate]
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/S3ResourceClassificationUpdate AWS API Documentation
- #
- class S3ResourceClassificationUpdate < Struct.new(
- :bucket_name,
- :prefix,
- :classification_type_update)
- SENSITIVE = []
- include Aws::Structure
- end
-
- # @!attribute [rw] member_account_id
- # (Discontinued) The Amazon Web Services account ID of the Amazon
- # Macie Classic member account whose S3 resources' classification
- # types you want to update.
- # @return [String]
- #
- # @!attribute [rw] s3_resources_update
- # (Discontinued) The S3 resources whose classification types you want
- # to update.
- # @return [Array]
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/UpdateS3ResourcesRequest AWS API Documentation
- #
- class UpdateS3ResourcesRequest < Struct.new(
- :member_account_id,
- :s3_resources_update)
- SENSITIVE = []
- include Aws::Structure
- end
-
- # @!attribute [rw] failed_s3_resources
- # (Discontinued) The S3 resources whose classification types can't be
- # updated. An error code and an error message are provided for each
- # failed item.
- # @return [Array]
- #
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/UpdateS3ResourcesResult AWS API Documentation
- #
- class UpdateS3ResourcesResult < Struct.new(
- :failed_s3_resources)
- SENSITIVE = []
- include Aws::Structure
- end
-
- end
-end
diff --git a/gems/aws-sdk-macie/spec/endpoint_provider_spec.rb b/gems/aws-sdk-macie/spec/endpoint_provider_spec.rb
deleted file mode 100644
index e65e66ec23a..00000000000
--- a/gems/aws-sdk-macie/spec/endpoint_provider_spec.rb
+++ /dev/null
@@ -1,389 +0,0 @@
-# frozen_string_literal: true
-
-# WARNING ABOUT GENERATED CODE
-#
-# This file is generated. See the contributing guide for more information:
-# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
-#
-# WARNING ABOUT GENERATED CODE
-
-
-require_relative 'spec_helper'
-
-module Aws::Macie
- describe EndpointProvider do
- subject { Aws::Macie::EndpointProvider.new }
-
- context 'For region us-east-1 with FIPS disabled and DualStack disabled' do
- let(:expected) do
- {"endpoint"=>{"url"=>"https://macie.us-east-1.amazonaws.com"}}
- end
-
- it 'produces the expected output from the EndpointProvider' do
- params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>false, :use_dual_stack=>false})
- endpoint = subject.resolve_endpoint(params)
- expect(endpoint.url).to eq(expected['endpoint']['url'])
- expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {})
- expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {})
- end
- end
-
- context 'For region us-east-1 with FIPS enabled and DualStack disabled' do
- let(:expected) do
- {"endpoint"=>{"url"=>"https://macie-fips.us-east-1.amazonaws.com"}}
- end
-
- it 'produces the expected output from the EndpointProvider' do
- params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>true, :use_dual_stack=>false})
- endpoint = subject.resolve_endpoint(params)
- expect(endpoint.url).to eq(expected['endpoint']['url'])
- expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {})
- expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {})
- end
- end
-
- context 'For region us-west-2 with FIPS disabled and DualStack disabled' do
- let(:expected) do
- {"endpoint"=>{"url"=>"https://macie.us-west-2.amazonaws.com"}}
- end
-
- it 'produces the expected output from the EndpointProvider' do
- params = EndpointParameters.new(**{:region=>"us-west-2", :use_fips=>false, :use_dual_stack=>false})
- endpoint = subject.resolve_endpoint(params)
- expect(endpoint.url).to eq(expected['endpoint']['url'])
- expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {})
- expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {})
- end
- end
-
- context 'For region us-west-2 with FIPS enabled and DualStack disabled' do
- let(:expected) do
- {"endpoint"=>{"url"=>"https://macie-fips.us-west-2.amazonaws.com"}}
- end
-
- it 'produces the expected output from the EndpointProvider' do
- params = EndpointParameters.new(**{:region=>"us-west-2", :use_fips=>true, :use_dual_stack=>false})
- endpoint = subject.resolve_endpoint(params)
- expect(endpoint.url).to eq(expected['endpoint']['url'])
- expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {})
- expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {})
- end
- end
-
- context 'For region us-east-1 with FIPS enabled and DualStack enabled' do
- let(:expected) do
- {"endpoint"=>{"url"=>"https://macie-fips.us-east-1.api.aws"}}
- end
-
- it 'produces the expected output from the EndpointProvider' do
- params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>true, :use_dual_stack=>true})
- endpoint = subject.resolve_endpoint(params)
- expect(endpoint.url).to eq(expected['endpoint']['url'])
- expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {})
- expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {})
- end
- end
-
- context 'For region us-east-1 with FIPS disabled and DualStack enabled' do
- let(:expected) do
- {"endpoint"=>{"url"=>"https://macie.us-east-1.api.aws"}}
- end
-
- it 'produces the expected output from the EndpointProvider' do
- params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>false, :use_dual_stack=>true})
- endpoint = subject.resolve_endpoint(params)
- expect(endpoint.url).to eq(expected['endpoint']['url'])
- expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {})
- expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {})
- end
- end
-
- context 'For region cn-north-1 with FIPS enabled and DualStack enabled' do
- let(:expected) do
- {"endpoint"=>{"url"=>"https://macie-fips.cn-north-1.api.amazonwebservices.com.cn"}}
- end
-
- it 'produces the expected output from the EndpointProvider' do
- params = EndpointParameters.new(**{:region=>"cn-north-1", :use_fips=>true, :use_dual_stack=>true})
- endpoint = subject.resolve_endpoint(params)
- expect(endpoint.url).to eq(expected['endpoint']['url'])
- expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {})
- expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {})
- end
- end
-
- context 'For region cn-north-1 with FIPS enabled and DualStack disabled' do
- let(:expected) do
- {"endpoint"=>{"url"=>"https://macie-fips.cn-north-1.amazonaws.com.cn"}}
- end
-
- it 'produces the expected output from the EndpointProvider' do
- params = EndpointParameters.new(**{:region=>"cn-north-1", :use_fips=>true, :use_dual_stack=>false})
- endpoint = subject.resolve_endpoint(params)
- expect(endpoint.url).to eq(expected['endpoint']['url'])
- expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {})
- expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {})
- end
- end
-
- context 'For region cn-north-1 with FIPS disabled and DualStack enabled' do
- let(:expected) do
- {"endpoint"=>{"url"=>"https://macie.cn-north-1.api.amazonwebservices.com.cn"}}
- end
-
- it 'produces the expected output from the EndpointProvider' do
- params = EndpointParameters.new(**{:region=>"cn-north-1", :use_fips=>false, :use_dual_stack=>true})
- endpoint = subject.resolve_endpoint(params)
- expect(endpoint.url).to eq(expected['endpoint']['url'])
- expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {})
- expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {})
- end
- end
-
- context 'For region cn-north-1 with FIPS disabled and DualStack disabled' do
- let(:expected) do
- {"endpoint"=>{"url"=>"https://macie.cn-north-1.amazonaws.com.cn"}}
- end
-
- it 'produces the expected output from the EndpointProvider' do
- params = EndpointParameters.new(**{:region=>"cn-north-1", :use_fips=>false, :use_dual_stack=>false})
- endpoint = subject.resolve_endpoint(params)
- expect(endpoint.url).to eq(expected['endpoint']['url'])
- expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {})
- expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {})
- end
- end
-
- context 'For region us-gov-east-1 with FIPS enabled and DualStack enabled' do
- let(:expected) do
- {"endpoint"=>{"url"=>"https://macie-fips.us-gov-east-1.api.aws"}}
- end
-
- it 'produces the expected output from the EndpointProvider' do
- params = EndpointParameters.new(**{:region=>"us-gov-east-1", :use_fips=>true, :use_dual_stack=>true})
- endpoint = subject.resolve_endpoint(params)
- expect(endpoint.url).to eq(expected['endpoint']['url'])
- expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {})
- expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {})
- end
- end
-
- context 'For region us-gov-east-1 with FIPS enabled and DualStack disabled' do
- let(:expected) do
- {"endpoint"=>{"url"=>"https://macie-fips.us-gov-east-1.amazonaws.com"}}
- end
-
- it 'produces the expected output from the EndpointProvider' do
- params = EndpointParameters.new(**{:region=>"us-gov-east-1", :use_fips=>true, :use_dual_stack=>false})
- endpoint = subject.resolve_endpoint(params)
- expect(endpoint.url).to eq(expected['endpoint']['url'])
- expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {})
- expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {})
- end
- end
-
- context 'For region us-gov-east-1 with FIPS disabled and DualStack enabled' do
- let(:expected) do
- {"endpoint"=>{"url"=>"https://macie.us-gov-east-1.api.aws"}}
- end
-
- it 'produces the expected output from the EndpointProvider' do
- params = EndpointParameters.new(**{:region=>"us-gov-east-1", :use_fips=>false, :use_dual_stack=>true})
- endpoint = subject.resolve_endpoint(params)
- expect(endpoint.url).to eq(expected['endpoint']['url'])
- expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {})
- expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {})
- end
- end
-
- context 'For region us-gov-east-1 with FIPS disabled and DualStack disabled' do
- let(:expected) do
- {"endpoint"=>{"url"=>"https://macie.us-gov-east-1.amazonaws.com"}}
- end
-
- it 'produces the expected output from the EndpointProvider' do
- params = EndpointParameters.new(**{:region=>"us-gov-east-1", :use_fips=>false, :use_dual_stack=>false})
- endpoint = subject.resolve_endpoint(params)
- expect(endpoint.url).to eq(expected['endpoint']['url'])
- expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {})
- expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {})
- end
- end
-
- context 'For region us-iso-east-1 with FIPS enabled and DualStack enabled' do
- let(:expected) do
- {"error"=>"FIPS and DualStack are enabled, but this partition does not support one or both"}
- end
-
- it 'produces the expected output from the EndpointProvider' do
- params = EndpointParameters.new(**{:region=>"us-iso-east-1", :use_fips=>true, :use_dual_stack=>true})
- expect do
- subject.resolve_endpoint(params)
- end.to raise_error(ArgumentError, expected['error'])
- end
- end
-
- context 'For region us-iso-east-1 with FIPS enabled and DualStack disabled' do
- let(:expected) do
- {"endpoint"=>{"url"=>"https://macie-fips.us-iso-east-1.c2s.ic.gov"}}
- end
-
- it 'produces the expected output from the EndpointProvider' do
- params = EndpointParameters.new(**{:region=>"us-iso-east-1", :use_fips=>true, :use_dual_stack=>false})
- endpoint = subject.resolve_endpoint(params)
- expect(endpoint.url).to eq(expected['endpoint']['url'])
- expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {})
- expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {})
- end
- end
-
- context 'For region us-iso-east-1 with FIPS disabled and DualStack enabled' do
- let(:expected) do
- {"error"=>"DualStack is enabled but this partition does not support DualStack"}
- end
-
- it 'produces the expected output from the EndpointProvider' do
- params = EndpointParameters.new(**{:region=>"us-iso-east-1", :use_fips=>false, :use_dual_stack=>true})
- expect do
- subject.resolve_endpoint(params)
- end.to raise_error(ArgumentError, expected['error'])
- end
- end
-
- context 'For region us-iso-east-1 with FIPS disabled and DualStack disabled' do
- let(:expected) do
- {"endpoint"=>{"url"=>"https://macie.us-iso-east-1.c2s.ic.gov"}}
- end
-
- it 'produces the expected output from the EndpointProvider' do
- params = EndpointParameters.new(**{:region=>"us-iso-east-1", :use_fips=>false, :use_dual_stack=>false})
- endpoint = subject.resolve_endpoint(params)
- expect(endpoint.url).to eq(expected['endpoint']['url'])
- expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {})
- expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {})
- end
- end
-
- context 'For region us-isob-east-1 with FIPS enabled and DualStack enabled' do
- let(:expected) do
- {"error"=>"FIPS and DualStack are enabled, but this partition does not support one or both"}
- end
-
- it 'produces the expected output from the EndpointProvider' do
- params = EndpointParameters.new(**{:region=>"us-isob-east-1", :use_fips=>true, :use_dual_stack=>true})
- expect do
- subject.resolve_endpoint(params)
- end.to raise_error(ArgumentError, expected['error'])
- end
- end
-
- context 'For region us-isob-east-1 with FIPS enabled and DualStack disabled' do
- let(:expected) do
- {"endpoint"=>{"url"=>"https://macie-fips.us-isob-east-1.sc2s.sgov.gov"}}
- end
-
- it 'produces the expected output from the EndpointProvider' do
- params = EndpointParameters.new(**{:region=>"us-isob-east-1", :use_fips=>true, :use_dual_stack=>false})
- endpoint = subject.resolve_endpoint(params)
- expect(endpoint.url).to eq(expected['endpoint']['url'])
- expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {})
- expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {})
- end
- end
-
- context 'For region us-isob-east-1 with FIPS disabled and DualStack enabled' do
- let(:expected) do
- {"error"=>"DualStack is enabled but this partition does not support DualStack"}
- end
-
- it 'produces the expected output from the EndpointProvider' do
- params = EndpointParameters.new(**{:region=>"us-isob-east-1", :use_fips=>false, :use_dual_stack=>true})
- expect do
- subject.resolve_endpoint(params)
- end.to raise_error(ArgumentError, expected['error'])
- end
- end
-
- context 'For region us-isob-east-1 with FIPS disabled and DualStack disabled' do
- let(:expected) do
- {"endpoint"=>{"url"=>"https://macie.us-isob-east-1.sc2s.sgov.gov"}}
- end
-
- it 'produces the expected output from the EndpointProvider' do
- params = EndpointParameters.new(**{:region=>"us-isob-east-1", :use_fips=>false, :use_dual_stack=>false})
- endpoint = subject.resolve_endpoint(params)
- expect(endpoint.url).to eq(expected['endpoint']['url'])
- expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {})
- expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {})
- end
- end
-
- context 'For custom endpoint with region set and fips disabled and dualstack disabled' do
- let(:expected) do
- {"endpoint"=>{"url"=>"https://example.com"}}
- end
-
- it 'produces the expected output from the EndpointProvider' do
- params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>false, :use_dual_stack=>false, :endpoint=>"https://example.com"})
- endpoint = subject.resolve_endpoint(params)
- expect(endpoint.url).to eq(expected['endpoint']['url'])
- expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {})
- expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {})
- end
- end
-
- context 'For custom endpoint with region not set and fips disabled and dualstack disabled' do
- let(:expected) do
- {"endpoint"=>{"url"=>"https://example.com"}}
- end
-
- it 'produces the expected output from the EndpointProvider' do
- params = EndpointParameters.new(**{:use_fips=>false, :use_dual_stack=>false, :endpoint=>"https://example.com"})
- endpoint = subject.resolve_endpoint(params)
- expect(endpoint.url).to eq(expected['endpoint']['url'])
- expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {})
- expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {})
- end
- end
-
- context 'For custom endpoint with fips enabled and dualstack disabled' do
- let(:expected) do
- {"error"=>"Invalid Configuration: FIPS and custom endpoint are not supported"}
- end
-
- it 'produces the expected output from the EndpointProvider' do
- params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>true, :use_dual_stack=>false, :endpoint=>"https://example.com"})
- expect do
- subject.resolve_endpoint(params)
- end.to raise_error(ArgumentError, expected['error'])
- end
- end
-
- context 'For custom endpoint with fips disabled and dualstack enabled' do
- let(:expected) do
- {"error"=>"Invalid Configuration: Dualstack and custom endpoint are not supported"}
- end
-
- it 'produces the expected output from the EndpointProvider' do
- params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>false, :use_dual_stack=>true, :endpoint=>"https://example.com"})
- expect do
- subject.resolve_endpoint(params)
- end.to raise_error(ArgumentError, expected['error'])
- end
- end
-
- context 'Missing region' do
- let(:expected) do
- {"error"=>"Invalid Configuration: Missing Region"}
- end
-
- it 'produces the expected output from the EndpointProvider' do
- params = EndpointParameters.new(**{})
- expect do
- subject.resolve_endpoint(params)
- end.to raise_error(ArgumentError, expected['error'])
- end
- end
-
- end
-end
diff --git a/gems/aws-sdk-macie/spec/spec_helper.rb b/gems/aws-sdk-macie/spec/spec_helper.rb
deleted file mode 100644
index 30875412de0..00000000000
--- a/gems/aws-sdk-macie/spec/spec_helper.rb
+++ /dev/null
@@ -1,18 +0,0 @@
-# frozen_string_literal: true
-
-# WARNING ABOUT GENERATED CODE
-#
-# This file is generated. See the contributing guide for more information:
-# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
-#
-# WARNING ABOUT GENERATED CODE
-
-require_relative '../../aws-sdk-core/spec/shared_spec_helper'
-
-$:.unshift(File.expand_path('../../lib', __FILE__))
-$:.unshift(File.expand_path('../../../aws-sdk-core/lib', __FILE__))
-$:.unshift(File.expand_path('../../../aws-sigv4/lib', __FILE__))
-
-require 'rspec'
-require 'webmock/rspec'
-require 'aws-sdk-macie'
diff --git a/services.json b/services.json
index 34a72a9f67f..f8c09365a9f 100644
--- a/services.json
+++ b/services.json
@@ -680,10 +680,6 @@
"Aws::MachineLearning::Plugins::PredictEndpoint"
]
},
- "Macie": {
- "models": "macie/2017-12-19",
- "deprecated": true
- },
"Macie2": {
"models": "macie2/2020-01-01"
},