From 91a1f578ac29165a2ac16fcabb7b3072cccff148 Mon Sep 17 00:00:00 2001 From: awssdkgo Date: Mon, 15 Aug 2022 18:22:29 +0000 Subject: [PATCH] Release v1.44.77 (2022-08-15) === ### Service Client Updates * `service/cloudfront`: Updates service API and documentation * Adds Http 3 support to distributions * `service/identitystore`: Updates service documentation * `service/sso`: Updates service documentation * Documentation updates to reflect service rename - AWS IAM Identity Center (successor to AWS Single Sign-On) * `service/wisdom`: Updates service API and documentation --- CHANGELOG.md | 11 + aws/version.go | 2 +- models/apis/cloudfront/2020-05-31/api-2.json | 4 +- models/apis/cloudfront/2020-05-31/docs-2.json | 2 +- .../apis/identitystore/2020-06-15/docs-2.json | 2 +- models/apis/sso/2019-06-10/docs-2.json | 2 +- models/apis/wisdom/2020-10-19/api-2.json | 73 ++++ models/apis/wisdom/2020-10-19/docs-2.json | 36 ++ service/cloudfront/api.go | 23 +- service/connectwisdomservice/api.go | 341 ++++++++++++++++++ .../connectwisdomserviceiface/interface.go | 4 + service/identitystore/doc.go | 10 +- service/sso/doc.go | 2 +- 13 files changed, 499 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c9ad15364a..fbd0276658 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,14 @@ +Release v1.44.77 (2022-08-15) +=== + +### Service Client Updates +* `service/cloudfront`: Updates service API and documentation + * Adds Http 3 support to distributions +* `service/identitystore`: Updates service documentation +* `service/sso`: Updates service documentation + * Documentation updates to reflect service rename - AWS IAM Identity Center (successor to AWS Single Sign-On) +* `service/wisdom`: Updates service API and documentation + Release v1.44.76 (2022-08-12) === diff --git a/aws/version.go b/aws/version.go index e4d6ce6763..0383dfe46a 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.44.76" +const SDKVersion = "1.44.77" diff --git a/models/apis/cloudfront/2020-05-31/api-2.json b/models/apis/cloudfront/2020-05-31/api-2.json index 80574e745f..693f7a555e 100644 --- a/models/apis/cloudfront/2020-05-31/api-2.json +++ b/models/apis/cloudfront/2020-05-31/api-2.json @@ -4085,7 +4085,9 @@ "type":"string", "enum":[ "http1.1", - "http2" + "http2", + "http3", + "http2and3" ] }, "ICPRecordalStatus":{ diff --git a/models/apis/cloudfront/2020-05-31/docs-2.json b/models/apis/cloudfront/2020-05-31/docs-2.json index f71e0434d8..cdec055e49 100644 --- a/models/apis/cloudfront/2020-05-31/docs-2.json +++ b/models/apis/cloudfront/2020-05-31/docs-2.json @@ -1344,7 +1344,7 @@ "HttpVersion": { "base": null, "refs": { - "DistributionConfig$HttpVersion": "

(Optional) Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront. The default value for new web distributions is http2. Viewers that don't support HTTP/2 automatically use an earlier HTTP version.

For viewers and CloudFront to use HTTP/2, viewers must support TLS 1.2 or later, and must support Server Name Identification (SNI).

In general, configuring CloudFront to communicate with viewers using HTTP/2 reduces latency. You can improve performance by optimizing for HTTP/2. For more information, do an Internet search for \"http/2 optimization.\"

", + "DistributionConfig$HttpVersion": "

(Optional) Specify the maximum HTTP version(s) that you want viewers to use to communicate with CloudFront. The default value for new web distributions is http2. Viewers that don't support HTTP/2 automatically use an earlier HTTP version.

For viewers and CloudFront to use HTTP/2, viewers must support TLSv1.2 or later, and must support Server Name Indication (SNI).

For viewers and CloudFront to use HTTP/3, viewers must support TLSv1.3 and Server Name Indication (SNI). CloudFront supports HTTP/3 connection migration to allow the viewer to switch networks without losing connection. For more information about connection migration, see Connection Migration at RFC 9000. For more information about supported TLSv1.3 ciphers, see Supported protocols and ciphers between viewers and CloudFront.

", "DistributionSummary$HttpVersion": "

Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront. The default value for new web distributions is http2. Viewers that don't support HTTP/2 will automatically use an earlier version.

" } }, diff --git a/models/apis/identitystore/2020-06-15/docs-2.json b/models/apis/identitystore/2020-06-15/docs-2.json index 197477800e..eec5ba4650 100644 --- a/models/apis/identitystore/2020-06-15/docs-2.json +++ b/models/apis/identitystore/2020-06-15/docs-2.json @@ -1,6 +1,6 @@ { "version": "2.0", - "service": "

The identity store service used by Amazon Web Services Single Sign On provides a single place to retrieve all of your identities (users and groups). For more information, see the Amazon Web Services SSO User Guide.

", + "service": "

The Identity Store service used by Amazon Web Services Single Sign On provides a single place to retrieve all of your identities (users and groups). For more information, see the Amazon Web Services SSO User Guide.

Although Amazon Web Services Single Sign-On was renamed, the sso and identitystore API namespaces will continue to retain their original name for backward compatibility purposes. For more information, see Amazon Web Services SSO rename.

This reference guide describes the identity store operations that you can call programatically and includes detailed information on data types and errors.

", "operations": { "DescribeGroup": "

Retrieves the group metadata and attributes from GroupId in an identity store.

", "DescribeUser": "

Retrieves the user metadata and attributes from UserId in an identity store.

", diff --git a/models/apis/sso/2019-06-10/docs-2.json b/models/apis/sso/2019-06-10/docs-2.json index 3de931f3de..5259d97584 100644 --- a/models/apis/sso/2019-06-10/docs-2.json +++ b/models/apis/sso/2019-06-10/docs-2.json @@ -1,6 +1,6 @@ { "version": "2.0", - "service": "

Amazon Web Services Single Sign On Portal is a web service that makes it easy for you to assign user access to Amazon Web Services SSO resources such as the AWS access portal. Users can get Amazon Web Services account applications and roles assigned to them and get federated into the application.

Although Amazon Web Services Single Sign-On was renamed, the sso and identitystore API namespaces will continue to retain their original name for backward compatibility purposes. For more information, see Amazon Web Services SSO rename.

This API reference guide describes the Amazon Web Services SSO Portal operations that you can call programatically and includes detailed information on data types and errors.

Amazon Web Services provides SDKs that consist of libraries and sample code for various programming languages and platforms, such as Java, Ruby, .Net, iOS, or Android. The SDKs provide a convenient way to create programmatic access to Amazon Web Services SSO and other Amazon Web Services services. For more information about the Amazon Web Services SDKs, including how to download and install them, see Tools for Amazon Web Services.

", + "service": "

Amazon Web Services Single Sign On Portal is a web service that makes it easy for you to assign user access to Amazon Web Services SSO resources such as the AWS access portal. Users can get Amazon Web Services account applications and roles assigned to them and get federated into the application.

Although Amazon Web Services Single Sign-On was renamed, the sso and identitystore API namespaces will continue to retain their original name for backward compatibility purposes. For more information, see Amazon Web Services SSO rename.

This reference guide describes the Amazon Web Services SSO Portal operations that you can call programatically and includes detailed information on data types and errors.

Amazon Web Services provides SDKs that consist of libraries and sample code for various programming languages and platforms, such as Java, Ruby, .Net, iOS, or Android. The SDKs provide a convenient way to create programmatic access to Amazon Web Services SSO and other Amazon Web Services services. For more information about the Amazon Web Services SDKs, including how to download and install them, see Tools for Amazon Web Services.

", "operations": { "GetRoleCredentials": "

Returns the STS short-term credentials for a given role name that is assigned to the user.

", "ListAccountRoles": "

Lists all roles that are assigned to the user for a given Amazon Web Services account.

", diff --git a/models/apis/wisdom/2020-10-19/api-2.json b/models/apis/wisdom/2020-10-19/api-2.json index 7630d34f4d..16dbe167e4 100644 --- a/models/apis/wisdom/2020-10-19/api-2.json +++ b/models/apis/wisdom/2020-10-19/api-2.json @@ -355,6 +355,22 @@ ], "idempotent":true }, + "PutFeedback":{ + "name":"PutFeedback", + "http":{ + "method":"PUT", + "requestUri":"/assistants/{assistantId}/feedback", + "responseCode":200 + }, + "input":{"shape":"PutFeedbackRequest"}, + "output":{"shape":"PutFeedbackResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"} + ], + "idempotent":true + }, "QueryAssistant":{ "name":"QueryAssistant", "http":{ @@ -999,6 +1015,13 @@ "text":{"shape":"SensitiveString"} } }, + "FeedbackData":{ + "type":"structure", + "required":["relevance"], + "members":{ + "relevance":{"shape":"Relevance"} + } + }, "Filter":{ "type":"structure", "required":[ @@ -1492,6 +1515,42 @@ }, "exception":true }, + "PutFeedbackRequest":{ + "type":"structure", + "required":[ + "assistantId", + "feedback", + "targetId", + "targetType" + ], + "members":{ + "assistantId":{ + "shape":"UuidOrArn", + "location":"uri", + "locationName":"assistantId" + }, + "feedback":{"shape":"FeedbackData"}, + "targetId":{"shape":"String"}, + "targetType":{"shape":"TargetType"} + } + }, + "PutFeedbackResponse":{ + "type":"structure", + "required":[ + "assistantArn", + "assistantId", + "feedback", + "targetId", + "targetType" + ], + "members":{ + "assistantArn":{"shape":"UuidOrArn"}, + "assistantId":{"shape":"Uuid"}, + "feedback":{"shape":"FeedbackData"}, + "targetId":{"shape":"Uuid"}, + "targetType":{"shape":"TargetType"} + } + }, "QueryAssistantRequest":{ "type":"structure", "required":[ @@ -1597,6 +1656,13 @@ "type":"string", "enum":["KNOWLEDGE_CONTENT"] }, + "Relevance":{ + "type":"string", + "enum":[ + "HELPFUL", + "NOT_HELPFUL" + ] + }, "RelevanceLevel":{ "type":"string", "enum":[ @@ -1867,6 +1933,13 @@ "key":{"shape":"TagKey"}, "value":{"shape":"TagValue"} }, + "TargetType":{ + "type":"string", + "enum":[ + "RECOMMENDATION", + "RESULT" + ] + }, "TooManyTagsException":{ "type":"structure", "members":{ diff --git a/models/apis/wisdom/2020-10-19/docs-2.json b/models/apis/wisdom/2020-10-19/docs-2.json index a9ee1df192..a76a5310a1 100644 --- a/models/apis/wisdom/2020-10-19/docs-2.json +++ b/models/apis/wisdom/2020-10-19/docs-2.json @@ -24,6 +24,7 @@ "ListKnowledgeBases": "

Lists the knowledge bases.

", "ListTagsForResource": "

Lists the tags for the specified resource.

", "NotifyRecommendationsReceived": "

Removes the specified recommendations from the specified assistant's queue of newly available recommendations. You can use this API in conjunction with GetRecommendations and a waitTimeSeconds input for long-polling behavior and avoiding duplicate recommendations.

", + "PutFeedback": "

Submits feedback to Wisdom. The feedback is used to improve future recommendations from GetRecommendations or results from QueryAssistant. Feedback can be resubmitted up to 6 hours after submission.

", "QueryAssistant": "

Performs a manual search against the specified assistant. To retrieve recommendations for an assistant, use GetRecommendations.

", "RemoveKnowledgeBaseTemplateUri": "

Removes a URI template from a knowledge base.

", "SearchContent": "

Searches for content in a specified knowledge base. Can be used to get a specific content resource by its name.

", @@ -343,6 +344,13 @@ "Document$title": "

The title of the document.

" } }, + "FeedbackData": { + "base": "

The feedback to submit to Wisdom.

", + "refs": { + "PutFeedbackRequest$feedback": "

The feedback.

", + "PutFeedbackResponse$feedback": "

The feedback.

" + } + }, "Filter": { "base": "

A search filter.

", "refs": { @@ -666,6 +674,16 @@ "refs": { } }, + "PutFeedbackRequest": { + "base": null, + "refs": { + } + }, + "PutFeedbackResponse": { + "base": null, + "refs": { + } + }, "QueryAssistantRequest": { "base": null, "refs": { @@ -751,6 +769,12 @@ "RecommendationData$type": "

The type of recommendation.

" } }, + "Relevance": { + "base": null, + "refs": { + "FeedbackData$relevance": "

The relevance of the target this feedback is for.

" + } + }, "RelevanceLevel": { "base": null, "refs": { @@ -886,6 +910,7 @@ "ConflictException$message": null, "NotifyRecommendationsReceivedError$recommendationId": "

The identifier of the recommendation that is in error.

", "PreconditionFailedException$message": null, + "PutFeedbackRequest$targetId": "

The identifier of a recommendation. or The identifier of the result data.

", "RecommendationData$recommendationId": "

The identifier of the recommendation.

", "RecommendationIdList$member": null, "ResourceNotFoundException$message": null, @@ -954,6 +979,13 @@ "TagResourceRequest$tags": "

The tags used to organize, track, or control access for this resource.

" } }, + "TargetType": { + "base": null, + "refs": { + "PutFeedbackRequest$targetType": "

The type of the targetId for which The feedback. is targeted.

", + "PutFeedbackResponse$targetType": "

The type of the targetId for which The feedback. is targeted.

" + } + }, "TooManyTagsException": { "base": "

Amazon Connect Wisdom throws this exception if you have too many tags in your tag set.

", "refs": { @@ -1025,6 +1057,8 @@ "KnowledgeBaseAssociationData$knowledgeBaseId": "

The identifier of the knowledge base.

", "KnowledgeBaseData$knowledgeBaseId": "

The identifier of the knowledge base.

", "KnowledgeBaseSummary$knowledgeBaseId": "

The identifier of the knowledge base.

", + "PutFeedbackResponse$assistantId": "

The identifier of the Wisdom assistant.

", + "PutFeedbackResponse$targetId": "

The identifier of a recommendation. or The identifier of the result data.

", "RecommendationTrigger$id": "

The identifier of the recommendation trigger.

", "ResultData$resultId": "

The identifier of the result data.

", "SessionData$sessionId": "

The identifier of the session.

", @@ -1060,6 +1094,8 @@ "ListContentsRequest$knowledgeBaseId": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "NotifyRecommendationsReceivedRequest$assistantId": "

The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "NotifyRecommendationsReceivedRequest$sessionId": "

The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "PutFeedbackRequest$assistantId": "

The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "PutFeedbackResponse$assistantArn": "

The Amazon Resource Name (ARN) of the Wisdom assistant.

", "QueryAssistantRequest$assistantId": "

The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "RemoveKnowledgeBaseTemplateUriRequest$knowledgeBaseId": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "SearchContentRequest$knowledgeBaseId": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", diff --git a/service/cloudfront/api.go b/service/cloudfront/api.go index f6ff1d11f4..a96f523c92 100644 --- a/service/cloudfront/api.go +++ b/service/cloudfront/api.go @@ -15664,17 +15664,20 @@ type DistributionConfig struct { // Enabled is a required field Enabled *bool `type:"boolean" required:"true"` - // (Optional) Specify the maximum HTTP version that you want viewers to use + // (Optional) Specify the maximum HTTP version(s) that you want viewers to use // to communicate with CloudFront. The default value for new web distributions // is http2. Viewers that don't support HTTP/2 automatically use an earlier // HTTP version. // - // For viewers and CloudFront to use HTTP/2, viewers must support TLS 1.2 or - // later, and must support Server Name Identification (SNI). + // For viewers and CloudFront to use HTTP/2, viewers must support TLSv1.2 or + // later, and must support Server Name Indication (SNI). // - // In general, configuring CloudFront to communicate with viewers using HTTP/2 - // reduces latency. You can improve performance by optimizing for HTTP/2. For - // more information, do an Internet search for "http/2 optimization." + // For viewers and CloudFront to use HTTP/3, viewers must support TLSv1.3 and + // Server Name Indication (SNI). CloudFront supports HTTP/3 connection migration + // to allow the viewer to switch networks without losing connection. For more + // information about connection migration, see Connection Migration (https://www.rfc-editor.org/rfc/rfc9000.html#name-connection-migration) + // at RFC 9000. For more information about supported TLSv1.3 ciphers, see Supported + // protocols and ciphers between viewers and CloudFront (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/secure-connections-supported-viewer-protocols-ciphers.html). HttpVersion *string `type:"string" enum:"HttpVersion"` // If you want CloudFront to respond to IPv6 DNS requests with an IPv6 address @@ -31120,6 +31123,12 @@ const ( // HttpVersionHttp2 is a HttpVersion enum value HttpVersionHttp2 = "http2" + + // HttpVersionHttp3 is a HttpVersion enum value + HttpVersionHttp3 = "http3" + + // HttpVersionHttp2and3 is a HttpVersion enum value + HttpVersionHttp2and3 = "http2and3" ) // HttpVersion_Values returns all elements of the HttpVersion enum @@ -31127,6 +31136,8 @@ func HttpVersion_Values() []string { return []string{ HttpVersionHttp11, HttpVersionHttp2, + HttpVersionHttp3, + HttpVersionHttp2and3, } } diff --git a/service/connectwisdomservice/api.go b/service/connectwisdomservice/api.go index 99f66267b3..0129927c8e 100644 --- a/service/connectwisdomservice/api.go +++ b/service/connectwisdomservice/api.go @@ -2185,6 +2185,94 @@ func (c *ConnectWisdomService) NotifyRecommendationsReceivedWithContext(ctx aws. return out, req.Send() } +const opPutFeedback = "PutFeedback" + +// PutFeedbackRequest generates a "aws/request.Request" representing the +// client's request for the PutFeedback 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 PutFeedback for more information on using the PutFeedback +// 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 PutFeedbackRequest method. +// req, resp := client.PutFeedbackRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/PutFeedback +func (c *ConnectWisdomService) PutFeedbackRequest(input *PutFeedbackInput) (req *request.Request, output *PutFeedbackOutput) { + op := &request.Operation{ + Name: opPutFeedback, + HTTPMethod: "PUT", + HTTPPath: "/assistants/{assistantId}/feedback", + } + + if input == nil { + input = &PutFeedbackInput{} + } + + output = &PutFeedbackOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutFeedback API operation for Amazon Connect Wisdom Service. +// +// Submits feedback to Wisdom. The feedback is used to improve future recommendations +// from GetRecommendations (https://docs.aws.amazon.com/wisdom/latest/APIReference/API_GetRecommendations.html) +// or results from QueryAssistant (https://docs.aws.amazon.com/wisdom/latest/APIReference/API_QueryAssistant.html). +// Feedback can be resubmitted up to 6 hours after submission. +// +// 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 Amazon Connect Wisdom Service's +// API operation PutFeedback for usage and error information. +// +// Returned Error Types: +// +// - ValidationException +// The input fails to satisfy the constraints specified by a service. +// +// - AccessDeniedException +// You do not have sufficient access to perform this action. +// +// - ResourceNotFoundException +// The specified resource does not exist. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wisdom-2020-10-19/PutFeedback +func (c *ConnectWisdomService) PutFeedback(input *PutFeedbackInput) (*PutFeedbackOutput, error) { + req, out := c.PutFeedbackRequest(input) + return out, req.Send() +} + +// PutFeedbackWithContext is the same as PutFeedback with the addition of +// the ability to pass a context and additional request options. +// +// See PutFeedback 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 *ConnectWisdomService) PutFeedbackWithContext(ctx aws.Context, input *PutFeedbackInput, opts ...request.Option) (*PutFeedbackOutput, error) { + req, out := c.PutFeedbackRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opQueryAssistant = "QueryAssistant" // QueryAssistantRequest generates a "aws/request.Request" representing the @@ -5372,6 +5460,53 @@ func (s *DocumentText) SetText(v string) *DocumentText { return s } +// The feedback to submit to Wisdom. +type FeedbackData struct { + _ struct{} `type:"structure"` + + // The relevance of the target this feedback is for. + // + // Relevance is a required field + Relevance *string `locationName:"relevance" type:"string" required:"true" enum:"Relevance"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s FeedbackData) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s FeedbackData) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *FeedbackData) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "FeedbackData"} + if s.Relevance == nil { + invalidParams.Add(request.NewErrParamRequired("Relevance")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRelevance sets the Relevance field's value. +func (s *FeedbackData) SetRelevance(v string) *FeedbackData { + s.Relevance = &v + return s +} + // A search filter. type Filter struct { _ struct{} `type:"structure"` @@ -7222,6 +7357,180 @@ func (s *PreconditionFailedException) RequestID() string { return s.RespMetadata.RequestID } +type PutFeedbackInput struct { + _ struct{} `type:"structure"` + + // The identifier of the Wisdom assistant. Can be either the ID or the ARN. + // URLs cannot contain the ARN. + // + // AssistantId is a required field + AssistantId *string `location:"uri" locationName:"assistantId" type:"string" required:"true"` + + // The feedback. + // + // Feedback is a required field + Feedback *FeedbackData `locationName:"feedback" type:"structure" required:"true"` + + // The identifier of a recommendation. or The identifier of the result data. + // + // TargetId is a required field + TargetId *string `locationName:"targetId" type:"string" required:"true"` + + // The type of the targetId for which The feedback. is targeted. + // + // TargetType is a required field + TargetType *string `locationName:"targetType" type:"string" required:"true" enum:"TargetType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutFeedbackInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutFeedbackInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutFeedbackInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutFeedbackInput"} + if s.AssistantId == nil { + invalidParams.Add(request.NewErrParamRequired("AssistantId")) + } + if s.AssistantId != nil && len(*s.AssistantId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AssistantId", 1)) + } + if s.Feedback == nil { + invalidParams.Add(request.NewErrParamRequired("Feedback")) + } + if s.TargetId == nil { + invalidParams.Add(request.NewErrParamRequired("TargetId")) + } + if s.TargetType == nil { + invalidParams.Add(request.NewErrParamRequired("TargetType")) + } + if s.Feedback != nil { + if err := s.Feedback.Validate(); err != nil { + invalidParams.AddNested("Feedback", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAssistantId sets the AssistantId field's value. +func (s *PutFeedbackInput) SetAssistantId(v string) *PutFeedbackInput { + s.AssistantId = &v + return s +} + +// SetFeedback sets the Feedback field's value. +func (s *PutFeedbackInput) SetFeedback(v *FeedbackData) *PutFeedbackInput { + s.Feedback = v + return s +} + +// SetTargetId sets the TargetId field's value. +func (s *PutFeedbackInput) SetTargetId(v string) *PutFeedbackInput { + s.TargetId = &v + return s +} + +// SetTargetType sets the TargetType field's value. +func (s *PutFeedbackInput) SetTargetType(v string) *PutFeedbackInput { + s.TargetType = &v + return s +} + +type PutFeedbackOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the Wisdom assistant. + // + // AssistantArn is a required field + AssistantArn *string `locationName:"assistantArn" type:"string" required:"true"` + + // The identifier of the Wisdom assistant. + // + // AssistantId is a required field + AssistantId *string `locationName:"assistantId" type:"string" required:"true"` + + // The feedback. + // + // Feedback is a required field + Feedback *FeedbackData `locationName:"feedback" type:"structure" required:"true"` + + // The identifier of a recommendation. or The identifier of the result data. + // + // TargetId is a required field + TargetId *string `locationName:"targetId" type:"string" required:"true"` + + // The type of the targetId for which The feedback. is targeted. + // + // TargetType is a required field + TargetType *string `locationName:"targetType" type:"string" required:"true" enum:"TargetType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutFeedbackOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutFeedbackOutput) GoString() string { + return s.String() +} + +// SetAssistantArn sets the AssistantArn field's value. +func (s *PutFeedbackOutput) SetAssistantArn(v string) *PutFeedbackOutput { + s.AssistantArn = &v + return s +} + +// SetAssistantId sets the AssistantId field's value. +func (s *PutFeedbackOutput) SetAssistantId(v string) *PutFeedbackOutput { + s.AssistantId = &v + return s +} + +// SetFeedback sets the Feedback field's value. +func (s *PutFeedbackOutput) SetFeedback(v *FeedbackData) *PutFeedbackOutput { + s.Feedback = v + return s +} + +// SetTargetId sets the TargetId field's value. +func (s *PutFeedbackOutput) SetTargetId(v string) *PutFeedbackOutput { + s.TargetId = &v + return s +} + +// SetTargetType sets the TargetType field's value. +func (s *PutFeedbackOutput) SetTargetType(v string) *PutFeedbackOutput { + s.TargetType = &v + return s +} + type QueryAssistantInput struct { _ struct{} `type:"structure"` @@ -9382,6 +9691,22 @@ func RecommendationType_Values() []string { } } +const ( + // RelevanceHelpful is a Relevance enum value + RelevanceHelpful = "HELPFUL" + + // RelevanceNotHelpful is a Relevance enum value + RelevanceNotHelpful = "NOT_HELPFUL" +) + +// Relevance_Values returns all elements of the Relevance enum +func Relevance_Values() []string { + return []string{ + RelevanceHelpful, + RelevanceNotHelpful, + } +} + const ( // RelevanceLevelHigh is a RelevanceLevel enum value RelevanceLevelHigh = "HIGH" @@ -9401,3 +9726,19 @@ func RelevanceLevel_Values() []string { RelevanceLevelLow, } } + +const ( + // TargetTypeRecommendation is a TargetType enum value + TargetTypeRecommendation = "RECOMMENDATION" + + // TargetTypeResult is a TargetType enum value + TargetTypeResult = "RESULT" +) + +// TargetType_Values returns all elements of the TargetType enum +func TargetType_Values() []string { + return []string{ + TargetTypeRecommendation, + TargetTypeResult, + } +} diff --git a/service/connectwisdomservice/connectwisdomserviceiface/interface.go b/service/connectwisdomservice/connectwisdomserviceiface/interface.go index 8d5a1acea0..fc43b39bb4 100644 --- a/service/connectwisdomservice/connectwisdomserviceiface/interface.go +++ b/service/connectwisdomservice/connectwisdomserviceiface/interface.go @@ -160,6 +160,10 @@ type ConnectWisdomServiceAPI interface { NotifyRecommendationsReceivedWithContext(aws.Context, *connectwisdomservice.NotifyRecommendationsReceivedInput, ...request.Option) (*connectwisdomservice.NotifyRecommendationsReceivedOutput, error) NotifyRecommendationsReceivedRequest(*connectwisdomservice.NotifyRecommendationsReceivedInput) (*request.Request, *connectwisdomservice.NotifyRecommendationsReceivedOutput) + PutFeedback(*connectwisdomservice.PutFeedbackInput) (*connectwisdomservice.PutFeedbackOutput, error) + PutFeedbackWithContext(aws.Context, *connectwisdomservice.PutFeedbackInput, ...request.Option) (*connectwisdomservice.PutFeedbackOutput, error) + PutFeedbackRequest(*connectwisdomservice.PutFeedbackInput) (*request.Request, *connectwisdomservice.PutFeedbackOutput) + QueryAssistant(*connectwisdomservice.QueryAssistantInput) (*connectwisdomservice.QueryAssistantOutput, error) QueryAssistantWithContext(aws.Context, *connectwisdomservice.QueryAssistantInput, ...request.Option) (*connectwisdomservice.QueryAssistantOutput, error) QueryAssistantRequest(*connectwisdomservice.QueryAssistantInput) (*request.Request, *connectwisdomservice.QueryAssistantOutput) diff --git a/service/identitystore/doc.go b/service/identitystore/doc.go index 99f22ab4ba..e77fd92cf5 100644 --- a/service/identitystore/doc.go +++ b/service/identitystore/doc.go @@ -3,10 +3,18 @@ // Package identitystore provides the client and types for making API // requests to AWS SSO Identity Store. // -// The identity store service used by Amazon Web Services Single Sign On provides +// The Identity Store service used by Amazon Web Services Single Sign On provides // a single place to retrieve all of your identities (users and groups). For // more information, see the Amazon Web Services SSO User Guide (https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html). // +// Although Amazon Web Services Single Sign-On was renamed, the sso and identitystore +// API namespaces will continue to retain their original name for backward compatibility +// purposes. For more information, see Amazon Web Services SSO rename (https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html#renamed). +// +// This reference guide describes the identity store operations that you can +// call programatically and includes detailed information on data types and +// errors. +// // See https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15 for more information on this service. // // See identitystore package documentation for more information. diff --git a/service/sso/doc.go b/service/sso/doc.go index 5e2cd8242e..ebcc9b4051 100644 --- a/service/sso/doc.go +++ b/service/sso/doc.go @@ -12,7 +12,7 @@ // API namespaces will continue to retain their original name for backward compatibility // purposes. For more information, see Amazon Web Services SSO rename (https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html#renamed). // -// This API reference guide describes the Amazon Web Services SSO Portal operations +// This reference guide describes the Amazon Web Services SSO Portal operations // that you can call programatically and includes detailed information on data // types and errors. //