diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ad4ae09189..f0e06ead212 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +Release v1.40.37 (2021-09-03) +=== + +### Service Client Updates +* `service/chime-sdk-identity`: Updates service documentation +* `service/chime-sdk-messaging`: Updates service documentation +* `service/codeguru-reviewer`: Updates service API +* `service/frauddetector`: Updates service API and documentation +* `service/outposts`: Updates service API and documentation + Release v1.40.36 (2021-09-02) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index 27762b927a8..ec0d71f1ff2 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -737,6 +737,7 @@ var awsPartition = partition{ "ap-east-1": endpoint{}, "ap-northeast-1": endpoint{}, "ap-northeast-2": endpoint{}, + "ap-northeast-3": endpoint{}, "ap-south-1": endpoint{}, "ap-southeast-1": endpoint{}, "ap-southeast-2": endpoint{}, diff --git a/aws/version.go b/aws/version.go index eb85d3dd2ef..34a8aff7a87 100644 --- a/aws/version.go +++ b/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.40.36" +const SDKVersion = "1.40.37" diff --git a/models/apis/chime-sdk-identity/2021-04-20/docs-2.json b/models/apis/chime-sdk-identity/2021-04-20/docs-2.json index cfe9a38c8fb..8c00c9f0793 100644 --- a/models/apis/chime-sdk-identity/2021-04-20/docs-2.json +++ b/models/apis/chime-sdk-identity/2021-04-20/docs-2.json @@ -1,6 +1,6 @@ { "version": "2.0", - "service": "

The Amazon Chime SDK Identity APIs in this section allow software developers to create and manage unique instances of their messaging applications. These APIs provide the overarching framework for creating and sending messages. For more information about the identity APIs, refer to .

", + "service": "

The Amazon Chime SDK Identity APIs in this section allow software developers to create and manage unique instances of their messaging applications. These APIs provide the overarching framework for creating and sending messages. For more information about the identity APIs, refer to Amazon Chime SDK identity.

", "operations": { "CreateAppInstance": "

Creates an Amazon Chime SDK messaging AppInstance under an AWS account. Only SDK messaging customers use this API. CreateAppInstance supports idempotency behavior as described in the AWS API Standard.

identity

", "CreateAppInstanceAdmin": "

Promotes an AppInstanceUser to an AppInstanceAdmin. The promoted user can perform the following actions.

Only an AppInstanceUser can be promoted to an AppInstanceAdmin role.

", diff --git a/models/apis/chime-sdk-messaging/2021-05-15/docs-2.json b/models/apis/chime-sdk-messaging/2021-05-15/docs-2.json index 8f8f6a692e8..9127d183818 100644 --- a/models/apis/chime-sdk-messaging/2021-05-15/docs-2.json +++ b/models/apis/chime-sdk-messaging/2021-05-15/docs-2.json @@ -1,6 +1,6 @@ { "version": "2.0", - "service": "

The Amazon Chime SDK Messaging APIs in this section allow software developers to send and receive messages in custom messaging applications. These APIs depend on the frameworks provided by the Amazon Chime SDK Identity APIs. For more information about the messaging APIs, see .

", + "service": "

The Amazon Chime SDK Messaging APIs in this section allow software developers to send and receive messages in custom messaging applications. These APIs depend on the frameworks provided by the Amazon Chime SDK Identity APIs. For more information about the messaging APIs, see Amazon Chime SDK messaging

", "operations": { "BatchCreateChannelMembership": "

Adds a specified number of users to a channel.

", "CreateChannel": "

Creates a channel to which you can add users and send messages.

Restriction: You can't change a channel's privacy.

The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

", diff --git a/models/apis/codeguru-reviewer/2019-09-19/api-2.json b/models/apis/codeguru-reviewer/2019-09-19/api-2.json index 6c090d2c5ae..e3715e1fb41 100644 --- a/models/apis/codeguru-reviewer/2019-09-19/api-2.json +++ b/models/apis/codeguru-reviewer/2019-09-19/api-2.json @@ -884,7 +884,8 @@ "PythonBestPractices", "JavaBestPractices", "ResourceLeaks", - "SecurityIssues" + "SecurityIssues", + "CodeInconsistencies" ] }, "RecommendationFeedback":{ diff --git a/models/apis/frauddetector/2019-11-15/api-2.json b/models/apis/frauddetector/2019-11-15/api-2.json index c7f24774a4f..c17e56e3349 100644 --- a/models/apis/frauddetector/2019-11-15/api-2.json +++ b/models/apis/frauddetector/2019-11-15/api-2.json @@ -1548,6 +1548,25 @@ "type":"list", "member":{"shape":"ExternalModel"} }, + "ExternalModelOutputs":{ + "type":"structure", + "members":{ + "externalModel":{"shape":"ExternalModelSummary"}, + "outputs":{"shape":"ExternalModelPredictionMap"} + } + }, + "ExternalModelPredictionMap":{ + "type":"map", + "key":{"shape":"string"}, + "value":{"shape":"string"} + }, + "ExternalModelSummary":{ + "type":"structure", + "members":{ + "modelEndpoint":{"shape":"string"}, + "modelSource":{"shape":"ModelSource"} + } + }, "ExternalModelsMaxResults":{ "type":"integer", "box":true, @@ -1669,7 +1688,8 @@ "type":"structure", "members":{ "modelScores":{"shape":"ListOfModelScores"}, - "ruleResults":{"shape":"ListOfRuleResults"} + "ruleResults":{"shape":"ListOfRuleResults"}, + "externalModelOutputs":{"shape":"ListOfExternalModelOutputs"} } }, "GetEventTypesRequest":{ @@ -1861,6 +1881,10 @@ "type":"string", "enum":["DETECTORPL"] }, + "ListOfExternalModelOutputs":{ + "type":"list", + "member":{"shape":"ExternalModelOutputs"} + }, "ListOfLogOddsMetrics":{ "type":"list", "member":{"shape":"LogOddsMetric"} diff --git a/models/apis/frauddetector/2019-11-15/docs-2.json b/models/apis/frauddetector/2019-11-15/docs-2.json index 4914c3048a6..2aa6b634ea9 100644 --- a/models/apis/frauddetector/2019-11-15/docs-2.json +++ b/models/apis/frauddetector/2019-11-15/docs-2.json @@ -475,6 +475,24 @@ "GetExternalModelsResult$externalModels": "

Gets the Amazon SageMaker models.

" } }, + "ExternalModelOutputs": { + "base": "

The fraud prediction scores from Amazon SageMaker model.

", + "refs": { + "ListOfExternalModelOutputs$member": null + } + }, + "ExternalModelPredictionMap": { + "base": null, + "refs": { + "ExternalModelOutputs$outputs": "

The fraud prediction scores from Amazon SageMaker model.

" + } + }, + "ExternalModelSummary": { + "base": "

The Amazon SageMaker model.

", + "refs": { + "ExternalModelOutputs$externalModel": "

The Amazon SageMaker model.

" + } + }, "ExternalModelsMaxResults": { "base": null, "refs": { @@ -679,6 +697,12 @@ "UpdateRuleVersionRequest$language": "

The language.

" } }, + "ListOfExternalModelOutputs": { + "base": null, + "refs": { + "GetEventPredictionResult$externalModelOutputs": "

The model scores for Amazon SageMaker models.

" + } + }, "ListOfLogOddsMetrics": { "base": null, "refs": { @@ -801,6 +825,7 @@ "base": null, "refs": { "ExternalModel$modelSource": "

The source of the model.

", + "ExternalModelSummary$modelSource": "

The source of the model.

", "PutExternalModelRequest$modelSource": "

The source of the model.

" } }, @@ -1546,6 +1571,9 @@ "ExternalModel$modelEndpoint": "

The Amazon SageMaker model endpoints.

", "ExternalModel$invokeModelEndpointRoleArn": "

The role used to invoke the model.

", "ExternalModelEndpointDataBlobMap$key": null, + "ExternalModelPredictionMap$key": null, + "ExternalModelPredictionMap$value": null, + "ExternalModelSummary$modelEndpoint": "

The endpoint of the Amazon SageMaker model.

", "FieldValidationMessage$fieldName": "

The field name.

", "FieldValidationMessage$identifier": "

The message ID.

", "FieldValidationMessage$title": "

The message title.

", diff --git a/models/apis/outposts/2019-12-03/api-2.json b/models/apis/outposts/2019-12-03/api-2.json index 4ff0ca30198..77b5a948f4d 100644 --- a/models/apis/outposts/2019-12-03/api-2.json +++ b/models/apis/outposts/2019-12-03/api-2.json @@ -13,6 +13,23 @@ "uid":"outposts-2019-12-03" }, "operations":{ + "CreateOrder":{ + "name":"CreateOrder", + "http":{ + "method":"POST", + "requestUri":"/orders" + }, + "input":{"shape":"CreateOrderInput"}, + "output":{"shape":"CreateOrderOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"AccessDeniedException"}, + {"shape":"NotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ServiceQuotaExceededException"} + ] + }, "CreateOutpost":{ "name":"CreateOutpost", "http":{ @@ -217,6 +234,26 @@ "error":{"httpStatusCode":409}, "exception":true }, + "CreateOrderInput":{ + "type":"structure", + "required":[ + "OutpostIdentifier", + "LineItems", + "PaymentOption" + ], + "members":{ + "OutpostIdentifier":{"shape":"OutpostIdentifier"}, + "LineItems":{"shape":"LineItemRequestListDefinition"}, + "PaymentOption":{"shape":"PaymentOption"}, + "PaymentTerm":{"shape":"PaymentTerm"} + } + }, + "CreateOrderOutput":{ + "type":"structure", + "members":{ + "Order":{"shape":"Order"} + } + }, "CreateOutpostInput":{ "type":"structure", "required":[ @@ -323,6 +360,7 @@ "Outpost":{"shape":"Outpost"} } }, + "ISO8601Timestamp":{"type":"timestamp"}, "InstanceType":{"type":"string"}, "InstanceTypeItem":{ "type":"structure", @@ -354,6 +392,41 @@ "max":5, "min":1 }, + "LineItem":{ + "type":"structure", + "members":{ + "CatalogItemId":{"shape":"SkuCode"}, + "LineItemId":{"shape":"LineItemId"}, + "Quantity":{"shape":"LineItemQuantity"}, + "Status":{"shape":"Status"} + } + }, + "LineItemId":{ + "type":"string", + "pattern":"ooi-[a-f0-9]{17}" + }, + "LineItemListDefinition":{ + "type":"list", + "member":{"shape":"LineItem"} + }, + "LineItemQuantity":{ + "type":"integer", + "max":20, + "min":1 + }, + "LineItemRequest":{ + "type":"structure", + "members":{ + "CatalogItemId":{"shape":"SkuCode"}, + "Quantity":{"shape":"LineItemQuantity"} + } + }, + "LineItemRequestListDefinition":{ + "type":"list", + "member":{"shape":"LineItemRequest"}, + "max":20, + "min":1 + }, "ListOutpostsInput":{ "type":"structure", "members":{ @@ -444,6 +517,35 @@ "error":{"httpStatusCode":404}, "exception":true }, + "Order":{ + "type":"structure", + "members":{ + "OutpostId":{"shape":"OutpostIdOnly"}, + "OrderId":{"shape":"OrderId"}, + "Status":{"shape":"OrderStatus"}, + "LineItems":{"shape":"LineItemListDefinition"}, + "PaymentOption":{"shape":"PaymentOption"}, + "OrderSubmissionDate":{"shape":"ISO8601Timestamp"}, + "OrderFulfilledDate":{"shape":"ISO8601Timestamp"} + } + }, + "OrderId":{ + "type":"string", + "max":20, + "min":1, + "pattern":"oo-[a-f0-9]{17}$" + }, + "OrderStatus":{ + "type":"string", + "enum":[ + "RECEIVED", + "PENDING", + "PROCESSING", + "INSTALLING", + "FULFILLED", + "CANCELLED" + ] + }, "Outpost":{ "type":"structure", "members":{ @@ -478,6 +580,18 @@ "min":1, "pattern":"^(arn:aws([a-z-]+)?:outposts:[a-z\\d-]+:\\d{12}:outpost/)?op-[a-f0-9]{17}$" }, + "OutpostIdOnly":{ + "type":"string", + "max":20, + "min":1, + "pattern":"^op-[a-f0-9]{17}$" + }, + "OutpostIdentifier":{ + "type":"string", + "max":180, + "min":1, + "pattern":"^(arn:aws([a-z-]+)?:outposts:[a-z\\d-]+:\\d{12}:outpost/)?op-[a-f0-9]{17}$" + }, "OutpostName":{ "type":"string", "max":255, @@ -490,6 +604,18 @@ "min":12, "pattern":"\\d{12}" }, + "PaymentOption":{ + "type":"string", + "enum":[ + "ALL_UPFRONT", + "NO_UPFRONT", + "PARTIAL_UPFRONT" + ] + }, + "PaymentTerm":{ + "type":"string", + "enum":["THREE_YEARS"] + }, "ResourceType":{ "type":"string", "enum":["OUTPOST"] @@ -537,6 +663,18 @@ "min":1, "pattern":"^[\\S ]+$" }, + "SkuCode":{ + "type":"string", + "max":10, + "min":1, + "pattern":"OR-[A-Z0-9]{7}" + }, + "Status":{ + "type":"string", + "max":1000, + "min":1, + "pattern":"^[\\S ]+$" + }, "String":{ "type":"string", "max":1000, diff --git a/models/apis/outposts/2019-12-03/docs-2.json b/models/apis/outposts/2019-12-03/docs-2.json index 9f25860a307..ee8664c108a 100644 --- a/models/apis/outposts/2019-12-03/docs-2.json +++ b/models/apis/outposts/2019-12-03/docs-2.json @@ -2,6 +2,7 @@ "version": "2.0", "service": "

AWS Outposts is a fully managed service that extends AWS infrastructure, APIs, and tools to customer premises. By providing local access to AWS managed infrastructure, AWS Outposts enables customers to build and run applications on premises using the same programming interfaces as in AWS Regions, while using local compute and storage resources for lower latency and local data processing needs.

", "operations": { + "CreateOrder": "

Creates an order for an Outpost.

", "CreateOutpost": "

Creates an Outpost.

You can specify AvailabilityZone or AvailabilityZoneId.

", "DeleteOutpost": "

Deletes the Outpost.

", "DeleteSite": "

Deletes the site.

", @@ -66,6 +67,16 @@ "refs": { } }, + "CreateOrderInput": { + "base": null, + "refs": { + } + }, + "CreateOrderOutput": { + "base": null, + "refs": { + } + }, "CreateOutpostInput": { "base": null, "refs": { @@ -127,6 +138,13 @@ "refs": { } }, + "ISO8601Timestamp": { + "base": null, + "refs": { + "Order$OrderSubmissionDate": "

The submission date for the order.

", + "Order$OrderFulfilledDate": "

The fulfillment date of the order.

" + } + }, "InstanceType": { "base": "

The instance type.

", "refs": { @@ -163,6 +181,43 @@ "ListOutpostsInput$LifeCycleStatusFilter": "

A filter for the lifecycle status of the Outpost.

Filter values are case sensitive. If you specify multiple values for a filter, the values are joined with an OR, and the request returns all results that match any of the specified values.

" } }, + "LineItem": { + "base": "

Information about a line item.

", + "refs": { + "LineItemListDefinition$member": null + } + }, + "LineItemId": { + "base": null, + "refs": { + "LineItem$LineItemId": "

The ID of the line item.

" + } + }, + "LineItemListDefinition": { + "base": null, + "refs": { + "Order$LineItems": "

The line items for the order

" + } + }, + "LineItemQuantity": { + "base": null, + "refs": { + "LineItem$Quantity": "

The quantity of the line item.

", + "LineItemRequest$Quantity": "

The quantity of a line item request.

" + } + }, + "LineItemRequest": { + "base": "

Information about a line item request.

", + "refs": { + "LineItemRequestListDefinition$member": null + } + }, + "LineItemRequestListDefinition": { + "base": null, + "refs": { + "CreateOrderInput$LineItems": "

The line items that make up the order.

" + } + }, "ListOutpostsInput": { "base": null, "refs": { @@ -206,6 +261,24 @@ "refs": { } }, + "Order": { + "base": "

Information about an order.

", + "refs": { + "CreateOrderOutput$Order": "

Information about this order.

" + } + }, + "OrderId": { + "base": null, + "refs": { + "Order$OrderId": "

The ID of the order.

" + } + }, + "OrderStatus": { + "base": null, + "refs": { + "Order$Status": "

The status of the order

" + } + }, "Outpost": { "base": "

Information about an Outpost.

", "refs": { @@ -229,13 +302,25 @@ } }, "OutpostId": { - "base": "

The ID of the Outpost.

", + "base": null, "refs": { - "DeleteOutpostInput$OutpostId": null, - "GetOutpostInput$OutpostId": null, - "GetOutpostInstanceTypesInput$OutpostId": null, - "GetOutpostInstanceTypesOutput$OutpostId": null, - "Outpost$OutpostId": null + "DeleteOutpostInput$OutpostId": "

The ID of the Outpost.

", + "GetOutpostInput$OutpostId": "

The ID of the Outpost.

", + "GetOutpostInstanceTypesInput$OutpostId": "

The ID of the Outpost.

", + "GetOutpostInstanceTypesOutput$OutpostId": "

The ID of the Outpost.

", + "Outpost$OutpostId": "

The ID of the Outpost.

" + } + }, + "OutpostIdOnly": { + "base": null, + "refs": { + "Order$OutpostId": "

The ID of the Outpost.

" + } + }, + "OutpostIdentifier": { + "base": null, + "refs": { + "CreateOrderInput$OutpostIdentifier": "

The ID or the Amazon Resource Name (ARN) of the Outpost.

" } }, "OutpostName": { @@ -251,6 +336,19 @@ "Outpost$OwnerId": null } }, + "PaymentOption": { + "base": null, + "refs": { + "CreateOrderInput$PaymentOption": "

The payment option for the order.

", + "Order$PaymentOption": "

The payment option for the order.

" + } + }, + "PaymentTerm": { + "base": null, + "refs": { + "CreateOrderInput$PaymentTerm": "

The payment terms for the order.

" + } + }, "ResourceType": { "base": null, "refs": { @@ -296,6 +394,19 @@ "Site$Name": null } }, + "SkuCode": { + "base": null, + "refs": { + "LineItem$CatalogItemId": "

The ID of the catalog item.

", + "LineItemRequest$CatalogItemId": "

The ID of the catalog item.

" + } + }, + "Status": { + "base": null, + "refs": { + "LineItem$Status": "

The status of the line item.

" + } + }, "String": { "base": null, "refs": { diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index 560a972b4b9..468731fd7d3 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -626,6 +626,7 @@ "ap-east-1" : { }, "ap-northeast-1" : { }, "ap-northeast-2" : { }, + "ap-northeast-3" : { }, "ap-south-1" : { }, "ap-southeast-1" : { }, "ap-southeast-2" : { }, diff --git a/service/chimesdkidentity/doc.go b/service/chimesdkidentity/doc.go index 474f01e7be2..d467aa175af 100644 --- a/service/chimesdkidentity/doc.go +++ b/service/chimesdkidentity/doc.go @@ -6,7 +6,8 @@ // The Amazon Chime SDK Identity APIs in this section allow software developers // to create and manage unique instances of their messaging applications. These // APIs provide the overarching framework for creating and sending messages. -// For more information about the identity APIs, refer to . +// For more information about the identity APIs, refer to Amazon Chime SDK identity +// (https://docs.aws.amazon.com/chime/latest/APIReference/API_Operations_Amazon_Chime_SDK_Identity.html). // // See https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20 for more information on this service. // diff --git a/service/chimesdkmessaging/doc.go b/service/chimesdkmessaging/doc.go index c9a796c18ff..cdc7aa94811 100644 --- a/service/chimesdkmessaging/doc.go +++ b/service/chimesdkmessaging/doc.go @@ -6,7 +6,8 @@ // The Amazon Chime SDK Messaging APIs in this section allow software developers // to send and receive messages in custom messaging applications. These APIs // depend on the frameworks provided by the Amazon Chime SDK Identity APIs. -// For more information about the messaging APIs, see . +// For more information about the messaging APIs, see Amazon Chime SDK messaging +// (https://docs.aws.amazon.com/chime/latest/APIReference/API_Operations_Amazon_Chime_SDK_Messaging) // // See https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-messaging-2021-05-15 for more information on this service. // diff --git a/service/codegurureviewer/api.go b/service/codegurureviewer/api.go index 54c8e89db73..5800596ac5e 100644 --- a/service/codegurureviewer/api.go +++ b/service/codegurureviewer/api.go @@ -5434,6 +5434,9 @@ const ( // RecommendationCategorySecurityIssues is a RecommendationCategory enum value RecommendationCategorySecurityIssues = "SecurityIssues" + + // RecommendationCategoryCodeInconsistencies is a RecommendationCategory enum value + RecommendationCategoryCodeInconsistencies = "CodeInconsistencies" ) // RecommendationCategory_Values returns all elements of the RecommendationCategory enum @@ -5449,6 +5452,7 @@ func RecommendationCategory_Values() []string { RecommendationCategoryJavaBestPractices, RecommendationCategoryResourceLeaks, RecommendationCategorySecurityIssues, + RecommendationCategoryCodeInconsistencies, } } diff --git a/service/frauddetector/api.go b/service/frauddetector/api.go index 19aa22b9d77..4733c80e367 100644 --- a/service/frauddetector/api.go +++ b/service/frauddetector/api.go @@ -9622,6 +9622,72 @@ func (s *ExternalModel) SetOutputConfiguration(v *ModelOutputConfiguration) *Ext return s } +// The fraud prediction scores from Amazon SageMaker model. +type ExternalModelOutputs struct { + _ struct{} `type:"structure"` + + // The Amazon SageMaker model. + ExternalModel *ExternalModelSummary `locationName:"externalModel" type:"structure"` + + // The fraud prediction scores from Amazon SageMaker model. + Outputs map[string]*string `locationName:"outputs" type:"map"` +} + +// String returns the string representation +func (s ExternalModelOutputs) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExternalModelOutputs) GoString() string { + return s.String() +} + +// SetExternalModel sets the ExternalModel field's value. +func (s *ExternalModelOutputs) SetExternalModel(v *ExternalModelSummary) *ExternalModelOutputs { + s.ExternalModel = v + return s +} + +// SetOutputs sets the Outputs field's value. +func (s *ExternalModelOutputs) SetOutputs(v map[string]*string) *ExternalModelOutputs { + s.Outputs = v + return s +} + +// The Amazon SageMaker model. +type ExternalModelSummary struct { + _ struct{} `type:"structure"` + + // The endpoint of the Amazon SageMaker model. + ModelEndpoint *string `locationName:"modelEndpoint" type:"string"` + + // The source of the model. + ModelSource *string `locationName:"modelSource" type:"string" enum:"ModelSource"` +} + +// String returns the string representation +func (s ExternalModelSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExternalModelSummary) GoString() string { + return s.String() +} + +// SetModelEndpoint sets the ModelEndpoint field's value. +func (s *ExternalModelSummary) SetModelEndpoint(v string) *ExternalModelSummary { + s.ModelEndpoint = &v + return s +} + +// SetModelSource sets the ModelSource field's value. +func (s *ExternalModelSummary) SetModelSource(v string) *ExternalModelSummary { + s.ModelSource = &v + return s +} + // The message details. type FieldValidationMessage struct { _ struct{} `type:"structure"` @@ -10354,6 +10420,9 @@ func (s *GetEventPredictionInput) SetExternalModelEndpointDataBlobs(v map[string type GetEventPredictionOutput struct { _ struct{} `type:"structure"` + // The model scores for Amazon SageMaker models. + ExternalModelOutputs []*ExternalModelOutputs `locationName:"externalModelOutputs" type:"list"` + // The model scores. Amazon Fraud Detector generates model scores between 0 // and 1000, where 0 is low fraud risk and 1000 is high fraud risk. Model scores // are directly related to the false positive rate (FPR). For example, a score @@ -10375,6 +10444,12 @@ func (s GetEventPredictionOutput) GoString() string { return s.String() } +// SetExternalModelOutputs sets the ExternalModelOutputs field's value. +func (s *GetEventPredictionOutput) SetExternalModelOutputs(v []*ExternalModelOutputs) *GetEventPredictionOutput { + s.ExternalModelOutputs = v + return s +} + // SetModelScores sets the ModelScores field's value. func (s *GetEventPredictionOutput) SetModelScores(v []*ModelScores) *GetEventPredictionOutput { s.ModelScores = v diff --git a/service/outposts/api.go b/service/outposts/api.go index 30935b4be5e..49515954faa 100644 --- a/service/outposts/api.go +++ b/service/outposts/api.go @@ -4,6 +4,7 @@ package outposts import ( "fmt" + "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" @@ -12,6 +13,100 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/restjson" ) +const opCreateOrder = "CreateOrder" + +// CreateOrderRequest generates a "aws/request.Request" representing the +// client's request for the CreateOrder operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateOrder for more information on using the CreateOrder +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateOrderRequest method. +// req, resp := client.CreateOrderRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/CreateOrder +func (c *Outposts) CreateOrderRequest(input *CreateOrderInput) (req *request.Request, output *CreateOrderOutput) { + op := &request.Operation{ + Name: opCreateOrder, + HTTPMethod: "POST", + HTTPPath: "/orders", + } + + if input == nil { + input = &CreateOrderInput{} + } + + output = &CreateOrderOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateOrder API operation for AWS Outposts. +// +// Creates an order for an Outpost. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Outposts's +// API operation CreateOrder for usage and error information. +// +// Returned Error Types: +// * ValidationException +// A parameter is not valid. +// +// * ConflictException +// Updating or deleting this resource can cause an inconsistent state. +// +// * AccessDeniedException +// You do not have permission to perform this operation. +// +// * NotFoundException +// The specified request is not valid. +// +// * InternalServerException +// An internal error has occurred. +// +// * ServiceQuotaExceededException +// You have exceeded a service quota. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/CreateOrder +func (c *Outposts) CreateOrder(input *CreateOrderInput) (*CreateOrderOutput, error) { + req, out := c.CreateOrderRequest(input) + return out, req.Send() +} + +// CreateOrderWithContext is the same as CreateOrder with the addition of +// the ability to pass a context and additional request options. +// +// See CreateOrder for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Outposts) CreateOrderWithContext(ctx aws.Context, input *CreateOrderInput, opts ...request.Option) (*CreateOrderOutput, error) { + req, out := c.CreateOrderRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateOutpost = "CreateOutpost" // CreateOutpostRequest generates a "aws/request.Request" representing the @@ -1134,6 +1229,120 @@ func (s *ConflictException) RequestID() string { return s.RespMetadata.RequestID } +type CreateOrderInput struct { + _ struct{} `type:"structure"` + + // The line items that make up the order. + // + // LineItems is a required field + LineItems []*LineItemRequest `min:"1" type:"list" required:"true"` + + // The ID or the Amazon Resource Name (ARN) of the Outpost. + // + // OutpostIdentifier is a required field + OutpostIdentifier *string `min:"1" type:"string" required:"true"` + + // The payment option for the order. + // + // PaymentOption is a required field + PaymentOption *string `type:"string" required:"true" enum:"PaymentOption"` + + // The payment terms for the order. + PaymentTerm *string `type:"string" enum:"PaymentTerm"` +} + +// String returns the string representation +func (s CreateOrderInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateOrderInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateOrderInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateOrderInput"} + if s.LineItems == nil { + invalidParams.Add(request.NewErrParamRequired("LineItems")) + } + if s.LineItems != nil && len(s.LineItems) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LineItems", 1)) + } + if s.OutpostIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("OutpostIdentifier")) + } + if s.OutpostIdentifier != nil && len(*s.OutpostIdentifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OutpostIdentifier", 1)) + } + if s.PaymentOption == nil { + invalidParams.Add(request.NewErrParamRequired("PaymentOption")) + } + if s.LineItems != nil { + for i, v := range s.LineItems { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "LineItems", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLineItems sets the LineItems field's value. +func (s *CreateOrderInput) SetLineItems(v []*LineItemRequest) *CreateOrderInput { + s.LineItems = v + return s +} + +// SetOutpostIdentifier sets the OutpostIdentifier field's value. +func (s *CreateOrderInput) SetOutpostIdentifier(v string) *CreateOrderInput { + s.OutpostIdentifier = &v + return s +} + +// SetPaymentOption sets the PaymentOption field's value. +func (s *CreateOrderInput) SetPaymentOption(v string) *CreateOrderInput { + s.PaymentOption = &v + return s +} + +// SetPaymentTerm sets the PaymentTerm field's value. +func (s *CreateOrderInput) SetPaymentTerm(v string) *CreateOrderInput { + s.PaymentTerm = &v + return s +} + +type CreateOrderOutput struct { + _ struct{} `type:"structure"` + + // Information about this order. + Order *Order `type:"structure"` +} + +// String returns the string representation +func (s CreateOrderOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateOrderOutput) GoString() string { + return s.String() +} + +// SetOrder sets the Order field's value. +func (s *CreateOrderOutput) SetOrder(v *Order) *CreateOrderOutput { + s.Order = v + return s +} + type CreateOutpostInput struct { _ struct{} `type:"structure"` @@ -1629,6 +1838,106 @@ func (s *InternalServerException) RequestID() string { return s.RespMetadata.RequestID } +// Information about a line item. +type LineItem struct { + _ struct{} `type:"structure"` + + // The ID of the catalog item. + CatalogItemId *string `min:"1" type:"string"` + + // The ID of the line item. + LineItemId *string `type:"string"` + + // The quantity of the line item. + Quantity *int64 `min:"1" type:"integer"` + + // The status of the line item. + Status *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s LineItem) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LineItem) GoString() string { + return s.String() +} + +// SetCatalogItemId sets the CatalogItemId field's value. +func (s *LineItem) SetCatalogItemId(v string) *LineItem { + s.CatalogItemId = &v + return s +} + +// SetLineItemId sets the LineItemId field's value. +func (s *LineItem) SetLineItemId(v string) *LineItem { + s.LineItemId = &v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *LineItem) SetQuantity(v int64) *LineItem { + s.Quantity = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *LineItem) SetStatus(v string) *LineItem { + s.Status = &v + return s +} + +// Information about a line item request. +type LineItemRequest struct { + _ struct{} `type:"structure"` + + // The ID of the catalog item. + CatalogItemId *string `min:"1" type:"string"` + + // The quantity of a line item request. + Quantity *int64 `min:"1" type:"integer"` +} + +// String returns the string representation +func (s LineItemRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LineItemRequest) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *LineItemRequest) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LineItemRequest"} + if s.CatalogItemId != nil && len(*s.CatalogItemId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CatalogItemId", 1)) + } + if s.Quantity != nil && *s.Quantity < 1 { + invalidParams.Add(request.NewErrParamMinValue("Quantity", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCatalogItemId sets the CatalogItemId field's value. +func (s *LineItemRequest) SetCatalogItemId(v string) *LineItemRequest { + s.CatalogItemId = &v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *LineItemRequest) SetQuantity(v int64) *LineItemRequest { + s.Quantity = &v + return s +} + type ListOutpostsInput struct { _ struct{} `type:"structure"` @@ -1957,6 +2266,84 @@ func (s *NotFoundException) RequestID() string { return s.RespMetadata.RequestID } +// Information about an order. +type Order struct { + _ struct{} `type:"structure"` + + // The line items for the order + LineItems []*LineItem `type:"list"` + + // The fulfillment date of the order. + OrderFulfilledDate *time.Time `type:"timestamp"` + + // The ID of the order. + OrderId *string `min:"1" type:"string"` + + // The submission date for the order. + OrderSubmissionDate *time.Time `type:"timestamp"` + + // The ID of the Outpost. + OutpostId *string `min:"1" type:"string"` + + // The payment option for the order. + PaymentOption *string `type:"string" enum:"PaymentOption"` + + // The status of the order + Status *string `type:"string" enum:"OrderStatus"` +} + +// String returns the string representation +func (s Order) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Order) GoString() string { + return s.String() +} + +// SetLineItems sets the LineItems field's value. +func (s *Order) SetLineItems(v []*LineItem) *Order { + s.LineItems = v + return s +} + +// SetOrderFulfilledDate sets the OrderFulfilledDate field's value. +func (s *Order) SetOrderFulfilledDate(v time.Time) *Order { + s.OrderFulfilledDate = &v + return s +} + +// SetOrderId sets the OrderId field's value. +func (s *Order) SetOrderId(v string) *Order { + s.OrderId = &v + return s +} + +// SetOrderSubmissionDate sets the OrderSubmissionDate field's value. +func (s *Order) SetOrderSubmissionDate(v time.Time) *Order { + s.OrderSubmissionDate = &v + return s +} + +// SetOutpostId sets the OutpostId field's value. +func (s *Order) SetOutpostId(v string) *Order { + s.OutpostId = &v + return s +} + +// SetPaymentOption sets the PaymentOption field's value. +func (s *Order) SetPaymentOption(v string) *Order { + s.PaymentOption = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Order) SetStatus(v string) *Order { + s.Status = &v + return s +} + // Information about an Outpost. type Outpost struct { _ struct{} `type:"structure"` @@ -2396,6 +2783,70 @@ func (s *ValidationException) RequestID() string { return s.RespMetadata.RequestID } +const ( + // OrderStatusReceived is a OrderStatus enum value + OrderStatusReceived = "RECEIVED" + + // OrderStatusPending is a OrderStatus enum value + OrderStatusPending = "PENDING" + + // OrderStatusProcessing is a OrderStatus enum value + OrderStatusProcessing = "PROCESSING" + + // OrderStatusInstalling is a OrderStatus enum value + OrderStatusInstalling = "INSTALLING" + + // OrderStatusFulfilled is a OrderStatus enum value + OrderStatusFulfilled = "FULFILLED" + + // OrderStatusCancelled is a OrderStatus enum value + OrderStatusCancelled = "CANCELLED" +) + +// OrderStatus_Values returns all elements of the OrderStatus enum +func OrderStatus_Values() []string { + return []string{ + OrderStatusReceived, + OrderStatusPending, + OrderStatusProcessing, + OrderStatusInstalling, + OrderStatusFulfilled, + OrderStatusCancelled, + } +} + +const ( + // PaymentOptionAllUpfront is a PaymentOption enum value + PaymentOptionAllUpfront = "ALL_UPFRONT" + + // PaymentOptionNoUpfront is a PaymentOption enum value + PaymentOptionNoUpfront = "NO_UPFRONT" + + // PaymentOptionPartialUpfront is a PaymentOption enum value + PaymentOptionPartialUpfront = "PARTIAL_UPFRONT" +) + +// PaymentOption_Values returns all elements of the PaymentOption enum +func PaymentOption_Values() []string { + return []string{ + PaymentOptionAllUpfront, + PaymentOptionNoUpfront, + PaymentOptionPartialUpfront, + } +} + +const ( + // PaymentTermThreeYears is a PaymentTerm enum value + PaymentTermThreeYears = "THREE_YEARS" +) + +// PaymentTerm_Values returns all elements of the PaymentTerm enum +func PaymentTerm_Values() []string { + return []string{ + PaymentTermThreeYears, + } +} + const ( // ResourceTypeOutpost is a ResourceType enum value ResourceTypeOutpost = "OUTPOST" diff --git a/service/outposts/outpostsiface/interface.go b/service/outposts/outpostsiface/interface.go index b89818a4df0..c6ac3a5ad75 100644 --- a/service/outposts/outpostsiface/interface.go +++ b/service/outposts/outpostsiface/interface.go @@ -26,7 +26,7 @@ import ( // // myFunc uses an SDK service client to make a request to // // AWS Outposts. // func myFunc(svc outpostsiface.OutpostsAPI) bool { -// // Make svc.CreateOutpost request +// // Make svc.CreateOrder request // } // // func main() { @@ -42,7 +42,7 @@ import ( // type mockOutpostsClient struct { // outpostsiface.OutpostsAPI // } -// func (m *mockOutpostsClient) CreateOutpost(input *outposts.CreateOutpostInput) (*outposts.CreateOutpostOutput, error) { +// func (m *mockOutpostsClient) CreateOrder(input *outposts.CreateOrderInput) (*outposts.CreateOrderOutput, error) { // // mock response/functionality // } // @@ -60,6 +60,10 @@ import ( // and waiters. Its suggested to use the pattern above for testing, or using // tooling to generate mocks to satisfy the interfaces. type OutpostsAPI interface { + CreateOrder(*outposts.CreateOrderInput) (*outposts.CreateOrderOutput, error) + CreateOrderWithContext(aws.Context, *outposts.CreateOrderInput, ...request.Option) (*outposts.CreateOrderOutput, error) + CreateOrderRequest(*outposts.CreateOrderInput) (*request.Request, *outposts.CreateOrderOutput) + CreateOutpost(*outposts.CreateOutpostInput) (*outposts.CreateOutpostOutput, error) CreateOutpostWithContext(aws.Context, *outposts.CreateOutpostInput, ...request.Option) (*outposts.CreateOutpostOutput, error) CreateOutpostRequest(*outposts.CreateOutpostInput) (*request.Request, *outposts.CreateOutpostOutput)