From 30ac919af49bdd73947b06486ae2f8c41786bb8e Mon Sep 17 00:00:00 2001 From: AWS SDK for Go v2 automation user Date: Mon, 16 May 2022 18:12:27 +0000 Subject: [PATCH] Regenerated Clients --- .../0e5bd4a31c594240abb4096cf458d67c.json | 8 + .../1285eb09d1c54dfc80660e4e0549bc29.json | 8 + .../36579f0944a1461f905a8482c857e9ea.json | 8 + .../4d1a1a952c454be7a6dcdc0e01c542f5.json | 8 + .../503c26b92f38434493e62fbc8652d80f.json | 8 + .../ab8829ba4dfd4e2bb9cb227afa2c8275.json | 8 + .../f10130289c3f4cb6ba16af30e5c54ad6.json | 8 + .../api_op_BatchDeleteImportData.go | 12 +- .../api_op_CreateTags.go | 2 +- .../api_op_DescribeAgents.go | 2 +- .../api_op_DescribeConfigurations.go | 2 +- .../api_op_DescribeExportConfigurations.go | 2 +- .../api_op_GetDiscoverySummary.go | 4 + .../api_op_ListConfigurations.go | 4 +- .../api_op_StartDataCollectionByAgentIds.go | 10 +- .../api_op_StartExportTask.go | 6 +- .../api_op_StartImportTask.go | 39 +-- .../deserializers.go | 127 ++++++++ service/applicationdiscoveryservice/doc.go | 132 ++++---- .../types/errors.go | 4 +- .../types/types.go | 113 +++++-- service/cloudfront/deserializers.go | 99 ++++++ service/cloudfront/types/errors.go | 24 ++ .../api_op_CreateProjectVersion.go | 2 +- service/rekognition/doc.go | 222 ++++++++++++- ...i_op_AddDraftAppVersionResourceMappings.go | 8 +- service/resiliencehub/api_op_CreateApp.go | 7 +- .../api_op_CreateRecommendationTemplate.go | 4 +- service/resiliencehub/api_op_DeleteApp.go | 8 +- .../api_op_DeleteAppAssessment.go | 8 +- .../api_op_DeleteResiliencyPolicy.go | 8 +- service/resiliencehub/api_op_DescribeApp.go | 4 +- .../api_op_DescribeAppAssessment.go | 4 +- ...ribeAppVersionResourcesResolutionStatus.go | 8 +- .../api_op_DescribeAppVersionTemplate.go | 8 +- ...ibeDraftAppVersionResourcesImportStatus.go | 8 +- .../api_op_DescribeResiliencyPolicy.go | 4 +- ...api_op_ImportResourcesToDraftAppVersion.go | 24 +- .../api_op_ListAlarmRecommendations.go | 4 +- .../api_op_ListAppAssessments.go | 4 +- .../api_op_ListAppComponentCompliances.go | 4 +- .../api_op_ListAppComponentRecommendations.go | 4 +- .../api_op_ListAppVersionResourceMappings.go | 4 +- .../api_op_ListAppVersionResources.go | 4 +- .../resiliencehub/api_op_ListAppVersions.go | 4 +- service/resiliencehub/api_op_ListApps.go | 4 +- .../api_op_ListRecommendationTemplates.go | 4 +- .../api_op_ListSopRecommendations.go | 4 +- .../api_op_ListTestRecommendations.go | 4 +- ...i_op_ListUnsupportedAppVersionResources.go | 4 +- .../resiliencehub/api_op_PublishAppVersion.go | 8 +- .../api_op_PutDraftAppVersionTemplate.go | 8 +- ...p_RemoveDraftAppVersionResourceMappings.go | 11 +- .../api_op_ResolveAppVersionResources.go | 8 +- .../api_op_StartAppAssessment.go | 4 +- service/resiliencehub/api_op_UpdateApp.go | 11 +- .../api_op_UpdateResiliencyPolicy.go | 4 +- service/resiliencehub/deserializers.go | 298 ++++++++++++++++++ service/resiliencehub/serializers.go | 54 ++++ service/resiliencehub/types/enums.go | 20 ++ service/resiliencehub/types/types.go | 98 ++++-- service/resiliencehub/validators.go | 38 ++- .../api_op_ListAcceptedPortfolioShares.go | 16 +- service/servicecatalog/types/types.go | 2 +- service/sts/api_op_GetSessionToken.go | 5 + .../api_op_CreateIdentityProvider.go | 2 +- .../api_op_CreateUserSettings.go | 9 + .../api_op_UpdateIdentityProvider.go | 69 +++- .../api_op_UpdateUserSettings.go | 9 + service/workspacesweb/deserializers.go | 55 ++++ service/workspacesweb/serializers.go | 20 ++ service/workspacesweb/types/types.go | 18 ++ 72 files changed, 1525 insertions(+), 255 deletions(-) create mode 100644 .changelog/0e5bd4a31c594240abb4096cf458d67c.json create mode 100644 .changelog/1285eb09d1c54dfc80660e4e0549bc29.json create mode 100644 .changelog/36579f0944a1461f905a8482c857e9ea.json create mode 100644 .changelog/4d1a1a952c454be7a6dcdc0e01c542f5.json create mode 100644 .changelog/503c26b92f38434493e62fbc8652d80f.json create mode 100644 .changelog/ab8829ba4dfd4e2bb9cb227afa2c8275.json create mode 100644 .changelog/f10130289c3f4cb6ba16af30e5c54ad6.json diff --git a/.changelog/0e5bd4a31c594240abb4096cf458d67c.json b/.changelog/0e5bd4a31c594240abb4096cf458d67c.json new file mode 100644 index 00000000000..57b63310324 --- /dev/null +++ b/.changelog/0e5bd4a31c594240abb4096cf458d67c.json @@ -0,0 +1,8 @@ +{ + "id": "0e5bd4a3-1c59-4240-abb4-096cf458d67c", + "type": "feature", + "description": "In this release, we are introducing support for Amazon Elastic Container Service, Amazon Route 53, AWS Elastic Disaster Recovery, AWS Backup in addition to the existing supported Services. This release also supports Terraform file input from S3 and scheduling daily assessments", + "modules": [ + "service/resiliencehub" + ] +} \ No newline at end of file diff --git a/.changelog/1285eb09d1c54dfc80660e4e0549bc29.json b/.changelog/1285eb09d1c54dfc80660e4e0549bc29.json new file mode 100644 index 00000000000..664d02176b8 --- /dev/null +++ b/.changelog/1285eb09d1c54dfc80660e4e0549bc29.json @@ -0,0 +1,8 @@ +{ + "id": "1285eb09-d1c5-4dfc-8066-0e4e0549bc29", + "type": "feature", + "description": "Introduced a new error (TooLongCSPInResponseHeadersPolicy) that is returned when the value of the Content-Security-Policy header in a response headers policy exceeds the maximum allowed length.", + "modules": [ + "service/cloudfront" + ] +} \ No newline at end of file diff --git a/.changelog/36579f0944a1461f905a8482c857e9ea.json b/.changelog/36579f0944a1461f905a8482c857e9ea.json new file mode 100644 index 00000000000..97db0387e49 --- /dev/null +++ b/.changelog/36579f0944a1461f905a8482c857e9ea.json @@ -0,0 +1,8 @@ +{ + "id": "36579f09-44a1-461f-905a-8482c857e9ea", + "type": "documentation", + "description": "Updated the descriptions for the ListAcceptedPortfolioShares API description and the PortfolioShareType parameters.", + "modules": [ + "service/servicecatalog" + ] +} \ No newline at end of file diff --git a/.changelog/4d1a1a952c454be7a6dcdc0e01c542f5.json b/.changelog/4d1a1a952c454be7a6dcdc0e01c542f5.json new file mode 100644 index 00000000000..89b8028cc4b --- /dev/null +++ b/.changelog/4d1a1a952c454be7a6dcdc0e01c542f5.json @@ -0,0 +1,8 @@ +{ + "id": "4d1a1a95-2c45-4be7-a6dc-dc0e01c542f5", + "type": "documentation", + "description": "Documentation updates for AWS Security Token Service.", + "modules": [ + "service/sts" + ] +} \ No newline at end of file diff --git a/.changelog/503c26b92f38434493e62fbc8652d80f.json b/.changelog/503c26b92f38434493e62fbc8652d80f.json new file mode 100644 index 00000000000..2b558f37bb1 --- /dev/null +++ b/.changelog/503c26b92f38434493e62fbc8652d80f.json @@ -0,0 +1,8 @@ +{ + "id": "503c26b9-2f38-4344-93e6-2fbc8652d80f", + "type": "feature", + "description": "Add Migration Evaluator Collector details to the GetDiscoverySummary API response", + "modules": [ + "service/applicationdiscoveryservice" + ] +} \ No newline at end of file diff --git a/.changelog/ab8829ba4dfd4e2bb9cb227afa2c8275.json b/.changelog/ab8829ba4dfd4e2bb9cb227afa2c8275.json new file mode 100644 index 00000000000..519c1d47b55 --- /dev/null +++ b/.changelog/ab8829ba4dfd4e2bb9cb227afa2c8275.json @@ -0,0 +1,8 @@ +{ + "id": "ab8829ba-4dfd-4e2b-b9cb-227afa2c8275", + "type": "feature", + "description": "Amazon WorkSpaces Web now supports Administrator timeout control", + "modules": [ + "service/workspacesweb" + ] +} \ No newline at end of file diff --git a/.changelog/f10130289c3f4cb6ba16af30e5c54ad6.json b/.changelog/f10130289c3f4cb6ba16af30e5c54ad6.json new file mode 100644 index 00000000000..2feb77f985a --- /dev/null +++ b/.changelog/f10130289c3f4cb6ba16af30e5c54ad6.json @@ -0,0 +1,8 @@ +{ + "id": "f1013028-9c3f-4cb6-ba16-af30e5c54ad6", + "type": "documentation", + "description": "Documentation updates for Amazon Rekognition.", + "modules": [ + "service/rekognition" + ] +} \ No newline at end of file diff --git a/service/applicationdiscoveryservice/api_op_BatchDeleteImportData.go b/service/applicationdiscoveryservice/api_op_BatchDeleteImportData.go index 7905cd839f1..7172fd93ac8 100644 --- a/service/applicationdiscoveryservice/api_op_BatchDeleteImportData.go +++ b/service/applicationdiscoveryservice/api_op_BatchDeleteImportData.go @@ -13,12 +13,12 @@ import ( // Deletes one or more import tasks, each identified by their import ID. Each // import task has a number of records that can identify servers or applications. -// AWS Application Discovery Service has built-in matching logic that will identify -// when discovered servers match existing entries that you've previously -// discovered, the information for the already-existing discovered server is -// updated. When you delete an import task that contains records that were used to -// match, the information in those matched records that comes from the deleted -// records will also be deleted. +// Amazon Web Services Application Discovery Service has built-in matching logic +// that will identify when discovered servers match existing entries that you've +// previously discovered, the information for the already-existing discovered +// server is updated. When you delete an import task that contains records that +// were used to match, the information in those matched records that comes from the +// deleted records will also be deleted. func (c *Client) BatchDeleteImportData(ctx context.Context, params *BatchDeleteImportDataInput, optFns ...func(*Options)) (*BatchDeleteImportDataOutput, error) { if params == nil { params = &BatchDeleteImportDataInput{} diff --git a/service/applicationdiscoveryservice/api_op_CreateTags.go b/service/applicationdiscoveryservice/api_op_CreateTags.go index dd55814a4d1..7117fb62d02 100644 --- a/service/applicationdiscoveryservice/api_op_CreateTags.go +++ b/service/applicationdiscoveryservice/api_op_CreateTags.go @@ -13,7 +13,7 @@ import ( // Creates one or more tags for configuration items. Tags are metadata that help // you categorize IT assets. This API accepts a list of multiple configuration -// items. +// items. Do not store sensitive information (like personal data) in tags. func (c *Client) CreateTags(ctx context.Context, params *CreateTagsInput, optFns ...func(*Options)) (*CreateTagsOutput, error) { if params == nil { params = &CreateTagsInput{} diff --git a/service/applicationdiscoveryservice/api_op_DescribeAgents.go b/service/applicationdiscoveryservice/api_op_DescribeAgents.go index 498039a0ca3..811731f03ed 100644 --- a/service/applicationdiscoveryservice/api_op_DescribeAgents.go +++ b/service/applicationdiscoveryservice/api_op_DescribeAgents.go @@ -33,7 +33,7 @@ type DescribeAgentsInput struct { // The agent or the Connector IDs for which you want information. If you specify no // IDs, the system returns information about all agents/Connectors associated with - // your AWS user account. + // your Amazon Web Services user account. AgentIds []string // You can filter the request using various logical operators and a key-value diff --git a/service/applicationdiscoveryservice/api_op_DescribeConfigurations.go b/service/applicationdiscoveryservice/api_op_DescribeConfigurations.go index 49553ded976..0d6931368e3 100644 --- a/service/applicationdiscoveryservice/api_op_DescribeConfigurations.go +++ b/service/applicationdiscoveryservice/api_op_DescribeConfigurations.go @@ -28,7 +28,7 @@ import ( // number of network cards, etc. For a complete list of outputs for each asset // type, see Using the DescribeConfigurations Action // (https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-api-queries.html#DescribeConfigurations) -// in the AWS Application Discovery Service User Guide. +// in the Amazon Web Services Application Discovery Service User Guide. func (c *Client) DescribeConfigurations(ctx context.Context, params *DescribeConfigurationsInput, optFns ...func(*Options)) (*DescribeConfigurationsOutput, error) { if params == nil { params = &DescribeConfigurationsInput{} diff --git a/service/applicationdiscoveryservice/api_op_DescribeExportConfigurations.go b/service/applicationdiscoveryservice/api_op_DescribeExportConfigurations.go index 5174e24a9d6..9a710a8acad 100644 --- a/service/applicationdiscoveryservice/api_op_DescribeExportConfigurations.go +++ b/service/applicationdiscoveryservice/api_op_DescribeExportConfigurations.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// DescribeExportConfigurations is deprecated. Use DescribeImportTasks +// DescribeExportConfigurations is deprecated. Use DescribeExportTasks // (https://docs.aws.amazon.com/application-discovery/latest/APIReference/API_DescribeExportTasks.html), // instead. // diff --git a/service/applicationdiscoveryservice/api_op_GetDiscoverySummary.go b/service/applicationdiscoveryservice/api_op_GetDiscoverySummary.go index a2ab8b84b2e..303bc198816 100644 --- a/service/applicationdiscoveryservice/api_op_GetDiscoverySummary.go +++ b/service/applicationdiscoveryservice/api_op_GetDiscoverySummary.go @@ -44,6 +44,10 @@ type GetDiscoverySummaryOutput struct { // Details about discovered connectors, including connector status and health. ConnectorSummary *types.CustomerConnectorInfo + // Details about Migration Evaluator collectors, including collector status and + // health. + MeCollectorSummary *types.CustomerMeCollectorInfo + // The number of servers discovered. Servers int64 diff --git a/service/applicationdiscoveryservice/api_op_ListConfigurations.go b/service/applicationdiscoveryservice/api_op_ListConfigurations.go index d13eb3923d8..3d66d5c936a 100644 --- a/service/applicationdiscoveryservice/api_op_ListConfigurations.go +++ b/service/applicationdiscoveryservice/api_op_ListConfigurations.go @@ -41,7 +41,7 @@ type ListConfigurationsInput struct { // list of filter options and guidance about using them with this action, see Using // the ListConfigurations Action // (https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-api-queries.html#ListConfigurations) - // in the AWS Application Discovery Service User Guide. + // in the Amazon Web Services Application Discovery Service User Guide. Filters []types.Filter // The total number of items to return. The maximum value is 100. @@ -57,7 +57,7 @@ type ListConfigurationsInput struct { // descending order. For a list of output characteristics for each filter, see // Using the ListConfigurations Action // (https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-api-queries.html#ListConfigurations) - // in the AWS Application Discovery Service User Guide. + // in the Amazon Web Services Application Discovery Service User Guide. OrderBy []types.OrderByElement noSmithyDocumentSerde diff --git a/service/applicationdiscoveryservice/api_op_StartDataCollectionByAgentIds.go b/service/applicationdiscoveryservice/api_op_StartDataCollectionByAgentIds.go index f503c1dd363..e3ef9e7ab2d 100644 --- a/service/applicationdiscoveryservice/api_op_StartDataCollectionByAgentIds.go +++ b/service/applicationdiscoveryservice/api_op_StartDataCollectionByAgentIds.go @@ -31,11 +31,11 @@ type StartDataCollectionByAgentIdsInput struct { // The IDs of the agents or connectors from which to start collecting data. If you // send a request to an agent/connector ID that you do not have permission to - // contact, according to your AWS account, the service does not throw an exception. - // Instead, it returns the error in the Description field. If you send a request to - // multiple agents/connectors and you do not have permission to contact some of - // those agents/connectors, the system does not throw an exception. Instead, the - // system shows Failed in the Description field. + // contact, according to your Amazon Web Services account, the service does not + // throw an exception. Instead, it returns the error in the Description field. If + // you send a request to multiple agents/connectors and you do not have permission + // to contact some of those agents/connectors, the system does not throw an + // exception. Instead, the system shows Failed in the Description field. // // This member is required. AgentIds []string diff --git a/service/applicationdiscoveryservice/api_op_StartExportTask.go b/service/applicationdiscoveryservice/api_op_StartExportTask.go index c71e7ce74fb..0ffb43db476 100644 --- a/service/applicationdiscoveryservice/api_op_StartExportTask.go +++ b/service/applicationdiscoveryservice/api_op_StartExportTask.go @@ -18,9 +18,9 @@ import ( // performance details. A time range for exported agent data may be set by using // startTime and endTime. Export of detailed agent data is limited to five // concurrently running exports. If you do not include an agentIds filter, summary -// data is exported that includes both AWS Agentless Discovery Connector data and -// summary data from AWS Discovery Agents. Export of summary data is limited to two -// exports per day. +// data is exported that includes both Amazon Web Services Agentless Discovery +// Connector data and summary data from Amazon Web Services Discovery Agents. +// Export of summary data is limited to two exports per day. func (c *Client) StartExportTask(ctx context.Context, params *StartExportTaskInput, optFns ...func(*Options)) (*StartExportTaskOutput, error) { if params == nil { params = &StartExportTaskInput{} diff --git a/service/applicationdiscoveryservice/api_op_StartImportTask.go b/service/applicationdiscoveryservice/api_op_StartImportTask.go index 87530dfd72a..a0f18d285cc 100644 --- a/service/applicationdiscoveryservice/api_op_StartImportTask.go +++ b/service/applicationdiscoveryservice/api_op_StartImportTask.go @@ -13,17 +13,17 @@ import ( ) // Starts an import task, which allows you to import details of your on-premises -// environment directly into AWS Migration Hub without having to use the -// Application Discovery Service (ADS) tools such as the Discovery Connector or -// Discovery Agent. This gives you the option to perform migration assessment and -// planning directly from your imported data, including the ability to group your -// devices as applications and track their migration status. To start an import -// request, do this: +// environment directly into Amazon Web Services Migration Hub without having to +// use the Application Discovery Service (ADS) tools such as the Discovery +// Connector or Discovery Agent. This gives you the option to perform migration +// assessment and planning directly from your imported data, including the ability +// to group your devices as applications and track their migration status. To start +// an import request, do this: // -// * Download the specially formatted comma separated value -// (CSV) import template, which you can find here: -// https://s3-us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv -// (https://s3-us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv). +// * Download the specially formatted comma separated +// value (CSV) import template, which you can find here: +// https://s3.us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv +// (https://s3.us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv). // // * // Fill out the template with your server and application data. @@ -33,17 +33,18 @@ import ( // import file must be in the CSV format. // // * Use the console or the StartImportTask -// command with the AWS CLI or one of the AWS SDKs to import the records from your -// file. +// command with the Amazon Web Services CLI or one of the Amazon Web Services SDKs +// to import the records from your file. // -// For more information, including step-by-step procedures, see Migration -// Hub Import +// For more information, including +// step-by-step procedures, see Migration Hub Import // (https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-import.html) -// in the AWS Application Discovery Service User Guide. There are limits to the -// number of import tasks you can create (and delete) in an AWS account. For more -// information, see AWS Application Discovery Service Limits +// in the Amazon Web Services Application Discovery Service User Guide. There are +// limits to the number of import tasks you can create (and delete) in an Amazon +// Web Services account. For more information, see Amazon Web Services Application +// Discovery Service Limits // (https://docs.aws.amazon.com/application-discovery/latest/userguide/ads_service_limits.html) -// in the AWS Application Discovery Service User Guide. +// in the Amazon Web Services Application Discovery Service User Guide. func (c *Client) StartImportTask(ctx context.Context, params *StartImportTaskInput, optFns ...func(*Options)) (*StartImportTaskOutput, error) { if params == nil { params = &StartImportTaskInput{} @@ -62,7 +63,7 @@ func (c *Client) StartImportTask(ctx context.Context, params *StartImportTaskInp type StartImportTaskInput struct { // The URL for your import file that you've uploaded to Amazon S3. If you're using - // the AWS CLI, this URL is structured as follows: + // the Amazon Web Services CLI, this URL is structured as follows: // s3://BucketName/ImportFileName.CSV // // This member is required. diff --git a/service/applicationdiscoveryservice/deserializers.go b/service/applicationdiscoveryservice/deserializers.go index 843862b30bb..e72f98e529c 100644 --- a/service/applicationdiscoveryservice/deserializers.go +++ b/service/applicationdiscoveryservice/deserializers.go @@ -4531,6 +4531,128 @@ func awsAwsjson11_deserializeDocumentCustomerConnectorInfo(v **types.CustomerCon return nil } +func awsAwsjson11_deserializeDocumentCustomerMeCollectorInfo(v **types.CustomerMeCollectorInfo, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.CustomerMeCollectorInfo + if *v == nil { + sv = &types.CustomerMeCollectorInfo{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "activeMeCollectors": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ActiveMeCollectors = int32(i64) + } + + case "denyListedMeCollectors": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.DenyListedMeCollectors = int32(i64) + } + + case "healthyMeCollectors": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.HealthyMeCollectors = int32(i64) + } + + case "shutdownMeCollectors": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ShutdownMeCollectors = int32(i64) + } + + case "totalMeCollectors": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.TotalMeCollectors = int32(i64) + } + + case "unhealthyMeCollectors": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.UnhealthyMeCollectors = int32(i64) + } + + case "unknownMeCollectors": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.UnknownMeCollectors = int32(i64) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentDescribeConfigurationsAttribute(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -6032,6 +6154,11 @@ func awsAwsjson11_deserializeOpDocumentGetDiscoverySummaryOutput(v **GetDiscover return err } + case "meCollectorSummary": + if err := awsAwsjson11_deserializeDocumentCustomerMeCollectorInfo(&sv.MeCollectorSummary, value); err != nil { + return err + } + case "servers": if value != nil { jtv, ok := value.(json.Number) diff --git a/service/applicationdiscoveryservice/doc.go b/service/applicationdiscoveryservice/doc.go index 51cd4d8e2dc..261418ecb03 100644 --- a/service/applicationdiscoveryservice/doc.go +++ b/service/applicationdiscoveryservice/doc.go @@ -3,10 +3,11 @@ // Package applicationdiscoveryservice provides the API client, operations, and // parameter types for AWS Application Discovery Service. // -// AWS Application Discovery Service AWS Application Discovery Service helps you -// plan application migration projects. It automatically identifies servers, -// virtual machines (VMs), and network dependencies in your on-premises data -// centers. For more information, see the AWS Application Discovery Service FAQ +// Amazon Web Services Application Discovery Service Amazon Web Services +// Application Discovery Service helps you plan application migration projects. It +// automatically identifies servers, virtual machines (VMs), and network +// dependencies in your on-premises data centers. For more information, see the +// Amazon Web Services Application Discovery Service FAQ // (http://aws.amazon.com/application-discovery/faqs/). Application Discovery // Service offers three ways of performing discovery and collecting data about your // on-premises servers: @@ -24,66 +25,67 @@ // agent-based discovery collects that information. // // * Agent-based discovery -// collects a richer set of data than agentless discovery by using the AWS -// Application Discovery Agent, which you install on one or more hosts in your data -// center. -// -// * The agent captures infrastructure and application information, -// including an inventory of running processes, system performance information, -// resource utilization, and network dependencies. -// -// * The information collected by -// agents is secured at rest and in transit to the Application Discovery Service -// database in the cloud. -// -// * AWS Partner Network (APN) solutions integrate with -// Application Discovery Service, enabling you to import details of your -// on-premises environment directly into Migration Hub without using the discovery -// connector or discovery agent. -// -// * Third-party application discovery tools can -// query AWS Application Discovery Service, and they can write to the Application -// Discovery Service database using the public API. -// -// * In this way, you can import -// data into Migration Hub and view it, so that you can associate applications with -// servers and track migrations. -// -// Recommendations We recommend that you use -// agent-based discovery for non-VMware environments, and whenever you want to -// collect information about network dependencies. You can run agent-based and -// agentless discovery simultaneously. Use agentless discovery to complete the -// initial infrastructure assessment quickly, and then install agents on select -// hosts to collect additional information. Working With This Guide This API -// reference provides descriptions, syntax, and usage examples for each of the -// actions and data types for Application Discovery Service. The topic for each -// action shows the API request parameters and the response. Alternatively, you can -// use one of the AWS SDKs to access an API that is tailored to the programming -// language or platform that you're using. For more information, see AWS SDKs -// (http://aws.amazon.com/tools/#SDKs). -// -// * Remember that you must set your -// Migration Hub home region before you call any of these APIs. -// -// * You must make -// API calls for write actions (create, notify, associate, disassociate, import, or -// put) while in your home region, or a HomeRegionNotSetException error is -// returned. -// -// * API calls for read actions (list, describe, stop, and delete) are -// permitted outside of your home region. -// -// * Although it is unlikely, the Migration -// Hub home region could change. If you call APIs outside the home region, an -// InvalidInputException is returned. -// -// * You must call GetHomeRegion to obtain the -// latest Migration Hub home region. -// -// This guide is intended for use with the AWS -// Application Discovery Service User Guide +// collects a richer set of data than agentless discovery by using the Amazon Web +// Services Application Discovery Agent, which you install on one or more hosts in +// your data center. +// +// * The agent captures infrastructure and application +// information, including an inventory of running processes, system performance +// information, resource utilization, and network dependencies. +// +// * The information +// collected by agents is secured at rest and in transit to the Application +// Discovery Service database in the cloud. +// +// * Amazon Web Services Partner Network +// (APN) solutions integrate with Application Discovery Service, enabling you to +// import details of your on-premises environment directly into Migration Hub +// without using the discovery connector or discovery agent. +// +// * Third-party +// application discovery tools can query Amazon Web Services Application Discovery +// Service, and they can write to the Application Discovery Service database using +// the public API. +// +// * In this way, you can import data into Migration Hub and view +// it, so that you can associate applications with servers and track +// migrations. +// +// Recommendations We recommend that you use agent-based discovery for +// non-VMware environments, and whenever you want to collect information about +// network dependencies. You can run agent-based and agentless discovery +// simultaneously. Use agentless discovery to complete the initial infrastructure +// assessment quickly, and then install agents on select hosts to collect +// additional information. Working With This Guide This API reference provides +// descriptions, syntax, and usage examples for each of the actions and data types +// for Application Discovery Service. The topic for each action shows the API +// request parameters and the response. Alternatively, you can use one of the +// Amazon Web Services SDKs to access an API that is tailored to the programming +// language or platform that you're using. For more information, see Amazon Web +// Services SDKs (http://aws.amazon.com/tools/#SDKs). +// +// * Remember that you must set +// your Migration Hub home region before you call any of these APIs. +// +// * You must +// make API calls for write actions (create, notify, associate, disassociate, +// import, or put) while in your home region, or a HomeRegionNotSetException error +// is returned. +// +// * API calls for read actions (list, describe, stop, and delete) +// are permitted outside of your home region. +// +// * Although it is unlikely, the +// Migration Hub home region could change. If you call APIs outside the home +// region, an InvalidInputException is returned. +// +// * You must call GetHomeRegion to +// obtain the latest Migration Hub home region. +// +// This guide is intended for use +// with the Amazon Web Services Application Discovery Service User Guide // (http://docs.aws.amazon.com/application-discovery/latest/userguide/). All data -// is handled according to the AWS Privacy Policy (http://aws.amazon.com/privacy/). -// You can operate Application Discovery Service offline to inspect collected data -// before it is shared with the service. +// is handled according to the Amazon Web Services Privacy Policy +// (http://aws.amazon.com/privacy/). You can operate Application Discovery Service +// offline to inspect collected data before it is shared with the service. package applicationdiscoveryservice diff --git a/service/applicationdiscoveryservice/types/errors.go b/service/applicationdiscoveryservice/types/errors.go index 9d7cef1ca54..d664c9665b4 100644 --- a/service/applicationdiscoveryservice/types/errors.go +++ b/service/applicationdiscoveryservice/types/errors.go @@ -7,8 +7,8 @@ import ( smithy "github.com/aws/smithy-go" ) -// The AWS user account does not have permission to perform the action. Check the -// IAM policy associated with this account. +// The Amazon Web Services user account does not have permission to perform the +// action. Check the IAM policy associated with this account. type AuthorizationErrorException struct { Message *string diff --git a/service/applicationdiscoveryservice/types/types.go b/service/applicationdiscoveryservice/types/types.go index 3f96d42b6f5..ee1f26d39c8 100644 --- a/service/applicationdiscoveryservice/types/types.go +++ b/service/applicationdiscoveryservice/types/types.go @@ -26,10 +26,10 @@ type AgentConfigurationStatus struct { noSmithyDocumentSerde } -// Information about agents or connectors associated with the user’s AWS account. -// Information includes agent or connector IDs, IP addresses, media access control -// (MAC) addresses, agent or connector health, hostname where the agent or -// connector resides, and agent version for each agent. +// Information about agents or connectors associated with the user’s Amazon Web +// Services account. Information includes agent or connector IDs, IP addresses, +// media access control (MAC) addresses, agent or connector health, hostname where +// the agent or connector resides, and agent version for each agent. type AgentInfo struct { // The agent or connector ID. @@ -168,8 +168,9 @@ type ContinuousExportDescription struct { // have the following values: // // * ACCESS_DENIED - You don’t have permission to start - // Data Exploration in Amazon Athena. Contact your AWS administrator for help. For - // more information, see Setting Up AWS Application Discovery Service + // Data Exploration in Amazon Athena. Contact your Amazon Web Services + // administrator for help. For more information, see Setting Up Amazon Web Services + // Application Discovery Service // (http://docs.aws.amazon.com/application-discovery/latest/userguide/setting-up.html) // in the Application Discovery Service User Guide. // @@ -196,12 +197,46 @@ type ContinuousExportDescription struct { // // * INTERNAL_FAILURE - The Data Exploration feature is in an error state // because of an internal failure. Try again later. If this problem persists, - // contact AWS Support. + // contact Amazon Web Services Support. + // + // * LAKE_FORMATION_ACCESS_DENIED - You don't + // have sufficient lake formation permissions to start continuous export. For more + // information, see Upgrading Amazon Web Services Glue Data Permissions to the + // Amazon Web Services Lake Formation Model + // (http://docs.aws.amazon.com/lake-formation/latest/dg/upgrade-glue-lake-formation.html) + // in the Amazon Web Services Lake Formation Developer Guide. You can use one of + // the following two ways to resolve this issue. + // + // * If you don’t want to use the + // Lake Formation permission model, you can change the default Data Catalog + // settings to use only Amazon Web Services Identity and Access Management (IAM) + // access control for new databases. For more information, see Change Data Catalog + // Settings + // (https://docs.aws.amazon.com/lake-formation/latest/dg/getting-started-setup.html#setup-change-cat-settings) + // in the Lake Formation Developer Guide. + // + // * You can give the service-linked IAM + // roles AWSServiceRoleForApplicationDiscoveryServiceContinuousExport and + // AWSApplicationDiscoveryServiceFirehose the required Lake Formation permissions. + // For more information, see Granting Database Permissions + // (https://docs.aws.amazon.com/lake-formation/latest/dg/granting-database-permissions.html) + // in the Lake Formation Developer Guide. // - // * S3_BUCKET_LIMIT_FAILURE - You reached the limit for - // Amazon S3 buckets. Reduce the number of Amazon S3 buckets or request a limit - // increase and try again. For more information, see Bucket Restrictions and - // Limitations + // * + // AWSServiceRoleForApplicationDiscoveryServiceContinuousExport - Grant database + // creator permissions, which gives the role database creation ability and implicit + // permissions for any created tables. For more information, see Implicit Lake + // Formation Permissions + // (https://docs.aws.amazon.com/lake-formation/latest/dg/implicit-permissions.html) + // in the Lake Formation Developer Guide. + // + // * AWSApplicationDiscoveryServiceFirehose + // - Grant describe permissions for all tables in the database. + // + // * + // S3_BUCKET_LIMIT_FAILURE - You reached the limit for Amazon S3 buckets. Reduce + // the number of S3 buckets or request a limit increase and try again. For more + // information, see Bucket Restrictions and Limitations // (http://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html) in the // Amazon Simple Storage Service Developer Guide. // @@ -299,6 +334,47 @@ type CustomerConnectorInfo struct { noSmithyDocumentSerde } +// The inventory data for installed Migration Evaluator collectors. +type CustomerMeCollectorInfo struct { + + // The number of active Migration Evaluator collectors. + // + // This member is required. + ActiveMeCollectors int32 + + // The number of deny-listed Migration Evaluator collectors. + // + // This member is required. + DenyListedMeCollectors int32 + + // The number of healthy Migration Evaluator collectors. + // + // This member is required. + HealthyMeCollectors int32 + + // The number of Migration Evaluator collectors with SHUTDOWN status. + // + // This member is required. + ShutdownMeCollectors int32 + + // The total number of Migration Evaluator collectors. + // + // This member is required. + TotalMeCollectors int32 + + // The number of unhealthy Migration Evaluator collectors. + // + // This member is required. + UnhealthyMeCollectors int32 + + // The number of unknown Migration Evaluator collectors. + // + // This member is required. + UnknownMeCollectors int32 + + noSmithyDocumentSerde +} + // Used to select which agent's data is to be exported. A single agent ID may be // selected for export using the StartExportTask // (http://docs.aws.amazon.com/application-discovery/latest/APIReference/API_StartExportTask.html) @@ -310,15 +386,15 @@ type ExportFilter struct { // This member is required. Condition *string - // A single ExportFilter name. Supported filters: agentId. + // A single ExportFilter name. Supported filters: agentIds. // // This member is required. Name *string - // A single agentId for a Discovery Agent. An agentId can be found using the + // A single agent ID for a Discovery Agent. An agent ID can be found using the // DescribeAgents - // (http://docs.aws.amazon.com/application-discovery/latest/APIReference/API_DescribeExportTasks.html) - // action. Typically an ADS agentId is in the form o-0123456789abcdef0. + // (http://docs.aws.amazon.com/application-discovery/latest/APIReference/API_DescribeAgents.html) + // action. Typically an ADS agent ID is in the form o-0123456789abcdef0. // // This member is required. Values []string @@ -374,7 +450,7 @@ type ExportInfo struct { // A filter that can use conditional operators. For more information about filters, // see Querying Discovered Configuration Items // (https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-api-queries.html) -// in the AWS Application Discovery Service User Guide. +// in the Amazon Web Services Application Discovery Service User Guide. type Filter struct { // A conditional operator. The following operators are valid: EQUALS, NOT_EQUALS, @@ -443,7 +519,7 @@ type ImportTask struct { ImportRequestTime *time.Time // The unique ID for a specific import task. These IDs aren't globally unique, but - // they are unique within an AWS account. + // they are unique within an Amazon Web Services account. ImportTaskId *string // The URL for your import file that you've uploaded to Amazon S3. @@ -528,7 +604,8 @@ type OrderByElement struct { noSmithyDocumentSerde } -// Metadata that help you categorize IT assets. +// Metadata that help you categorize IT assets. Do not store sensitive information +// (like personal data) in tags. type Tag struct { // The type of tag on which to filter. diff --git a/service/cloudfront/deserializers.go b/service/cloudfront/deserializers.go index 4a4bd09fc9d..ddb2d1e7bcc 100644 --- a/service/cloudfront/deserializers.go +++ b/service/cloudfront/deserializers.go @@ -2732,6 +2732,9 @@ func awsRestxml_deserializeOpErrorCreateResponseHeadersPolicy(response *smithyht case strings.EqualFold("ResponseHeadersPolicyAlreadyExists", errorCode): return awsRestxml_deserializeErrorResponseHeadersPolicyAlreadyExists(response, errorBody) + case strings.EqualFold("TooLongCSPInResponseHeadersPolicy", errorCode): + return awsRestxml_deserializeErrorTooLongCSPInResponseHeadersPolicy(response, errorBody) + case strings.EqualFold("TooManyCustomHeadersInResponseHeadersPolicy", errorCode): return awsRestxml_deserializeErrorTooManyCustomHeadersInResponseHeadersPolicy(response, errorBody) @@ -13542,6 +13545,9 @@ func awsRestxml_deserializeOpErrorUpdateResponseHeadersPolicy(response *smithyht case strings.EqualFold("ResponseHeadersPolicyAlreadyExists", errorCode): return awsRestxml_deserializeErrorResponseHeadersPolicyAlreadyExists(response, errorBody) + case strings.EqualFold("TooLongCSPInResponseHeadersPolicy", errorCode): + return awsRestxml_deserializeErrorTooLongCSPInResponseHeadersPolicy(response, errorBody) + case strings.EqualFold("TooManyCustomHeadersInResponseHeadersPolicy", errorCode): return awsRestxml_deserializeErrorTooManyCustomHeadersInResponseHeadersPolicy(response, errorBody) @@ -17187,6 +17193,50 @@ func awsRestxml_deserializeErrorTestFunctionFailed(response *smithyhttp.Response return output } +func awsRestxml_deserializeErrorTooLongCSPInResponseHeadersPolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooLongCSPInResponseHeadersPolicy{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return output + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsRestxml_deserializeDocumentTooLongCSPInResponseHeadersPolicy(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + func awsRestxml_deserializeErrorTooManyCacheBehaviors(response *smithyhttp.Response, errorBody *bytes.Reader) error { output := &types.TooManyCacheBehaviors{} var buff [1024]byte @@ -37544,6 +37594,55 @@ func awsRestxml_deserializeDocumentTestResult(v **types.TestResult, decoder smit return nil } +func awsRestxml_deserializeDocumentTooLongCSPInResponseHeadersPolicy(v **types.TooLongCSPInResponseHeadersPolicy, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.TooLongCSPInResponseHeadersPolicy + if *v == nil { + sv = &types.TooLongCSPInResponseHeadersPolicy{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("Message", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsRestxml_deserializeDocumentTooManyCacheBehaviors(v **types.TooManyCacheBehaviors, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/cloudfront/types/errors.go b/service/cloudfront/types/errors.go index 1b2f55745aa..d734b4551ab 100644 --- a/service/cloudfront/types/errors.go +++ b/service/cloudfront/types/errors.go @@ -1562,6 +1562,30 @@ func (e *TestFunctionFailed) ErrorMessage() string { func (e *TestFunctionFailed) ErrorCode() string { return "TestFunctionFailed" } func (e *TestFunctionFailed) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } +// The length of the Content-Security-Policy header value in the response headers +// policy exceeds the maximum. For more information, see Quotas +// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) +// (formerly known as limits) in the Amazon CloudFront Developer Guide. +type TooLongCSPInResponseHeadersPolicy struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *TooLongCSPInResponseHeadersPolicy) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *TooLongCSPInResponseHeadersPolicy) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *TooLongCSPInResponseHeadersPolicy) ErrorCode() string { + return "TooLongCSPInResponseHeadersPolicy" +} +func (e *TooLongCSPInResponseHeadersPolicy) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + // You cannot create more cache behaviors for the distribution. type TooManyCacheBehaviors struct { Message *string diff --git a/service/rekognition/api_op_CreateProjectVersion.go b/service/rekognition/api_op_CreateProjectVersion.go index 368ec781c86..48ccf7642c3 100644 --- a/service/rekognition/api_op_CreateProjectVersion.go +++ b/service/rekognition/api_op_CreateProjectVersion.go @@ -16,7 +16,7 @@ import ( // CreateProjectVersion is an Amazon Resource Name (ARN) for the version of the // model. Training uses the training and test datasets associated with the project. // For more information, see Creating training and test dataset in the Amazon -// Rekognition Custom Labels Developer Guide. You can train a modelin a project +// Rekognition Custom Labels Developer Guide. You can train a model in a project // that doesn't have associated datasets by specifying manifest files in the // TrainingData and TestingData fields. If you open the console after training a // model with manifest files, Amazon Rekognition Custom Labels creates the datasets diff --git a/service/rekognition/doc.go b/service/rekognition/doc.go index ca173ba27fa..b5f31913575 100644 --- a/service/rekognition/doc.go +++ b/service/rekognition/doc.go @@ -16,10 +16,228 @@ // // Amazon Rekognition Image // -// Amazon Rekognition Custom Labels +// * CompareFaces +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CompareFaces.html) +// +// * +// CreateCollection +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CreateCollection.html) +// +// * +// DeleteCollection +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DeleteCollection.html) +// +// * +// DeleteFaces +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DeleteFaces.html) +// +// * +// DescribeCollection +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DescribeCollection.html) +// +// * +// DetectFaces +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DetectFaces.html) +// +// * +// DetectLabels +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DetectLabels.html) +// +// * +// DetectModerationLabels +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DetectModerationLabels.html) +// +// * +// DetectProtectiveEquipment +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DetectProtectiveEquipment.html) +// +// * +// DetectText +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DetectText.html) +// +// * +// GetCelebrityInfo +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_GetCelebrityInfo.html) +// +// * +// IndexFaces +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_IndexFaces.html) +// +// * +// ListCollections +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_ListCollections.html) +// +// * +// ListFaces +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_ListFaces.html) +// +// * +// RecognizeCelebrities +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_RecognizeCelebrities.html) +// +// * +// SearchFaces +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_SearchFaces.html) +// +// * +// SearchFacesByImage +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_SearchFacesByImage.html) +// +// Amazon +// Rekognition Custom Labels +// +// * CreateDataset +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CreateDataset.html) +// +// * +// CreateProject +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CreateProject.html) +// +// * +// CreateProjectVersion +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CreateProjectVersion.html) +// +// * +// DeleteDataset +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DeleteDataset.html) +// +// * +// DeleteProject +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DeleteProject.html) +// +// * +// DeleteProjectVersion +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DeleteProjectVersion.html) +// +// * +// DescribeDataset +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DescribeDataset.html) +// +// * +// DescribeProjects +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DescribeProjects.html) +// +// * +// DescribeProjectVersions +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DescribeProjectVersions.html) +// +// * +// DetectCustomLabels +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DetectCustomLabels.html) +// +// * +// DistributeDatasetEntries +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DistributeDatasetEntries.html) +// +// * +// ListDatasetEntries +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_ListDatasetEntries.html) +// +// * +// ListDatasetLabels +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_ListDatasetLabels.html) +// +// * +// StartProjectVersion +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartProjectVersion.html) +// +// * +// StopProjectVersion +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StopProjectVersion.html) +// +// * +// UpdateDatasetEntries +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_UpdateDatasetEntries.html) // // Amazon // Rekognition Video Stored Video // -// Amazon Rekognition Video Streaming Video +// * GetCelebrityRecognition +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_GetCelebrityRecognition.html) +// +// * +// GetContentModeration +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_GetContentModeration.html) +// +// * +// GetFaceDetection +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_GetFaceDetection.html) +// +// * +// GetFaceSearch +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_GetFaceSearch.html) +// +// * +// GetLabelDetection +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_GetLabelDetection.html) +// +// * +// GetPersonTracking +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_GetPersonTracking.html) +// +// * +// GetSegmentDetection +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_GetSegmentDetection.html) +// +// * +// GetTextDetection +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_GetTextDetection.html) +// +// * +// StartCelebrityRecognition +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartCelebrityRecognition.html) +// +// * +// StartContentModeration +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartContentModeration.html) +// +// * +// StartFaceDetection +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartFaceDetection.html) +// +// * +// StartFaceSearch +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartFaceSearch.html) +// +// * +// StartLabelDetection +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartLabelDetection.html) +// +// * +// StartPersonTracking +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartPersonTracking.html) +// +// * +// StartSegmentDetection +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartSegmentDetection.html) +// +// * +// StartTextDetection +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartTextDetection.html) +// +// Amazon +// Rekognition Video Streaming Video +// +// * CreateStreamProcessor +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CreateStreamProcessor.html) +// +// * +// DeleteStreamProcessor +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DeleteStreamProcessor.html) +// +// * +// DescribeStreamProcessor +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DescribeStreamProcessor.html) +// +// * +// ListStreamProcessors +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_ListStreamProcessors.html) +// +// * +// StartStreamProcessor +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartStreamProcessor.html) +// +// * +// StopStreamProcessor +// (https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StopStreamProcessor.html) package rekognition diff --git a/service/resiliencehub/api_op_AddDraftAppVersionResourceMappings.go b/service/resiliencehub/api_op_AddDraftAppVersionResourceMappings.go index 0c7c590fab1..53162b0b8bf 100644 --- a/service/resiliencehub/api_op_AddDraftAppVersionResourceMappings.go +++ b/service/resiliencehub/api_op_AddDraftAppVersionResourceMappings.go @@ -30,8 +30,8 @@ func (c *Client) AddDraftAppVersionResourceMappings(ctx context.Context, params type AddDraftAppVersionResourceMappingsInput struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // @@ -53,8 +53,8 @@ type AddDraftAppVersionResourceMappingsInput struct { type AddDraftAppVersionResourceMappingsOutput struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // diff --git a/service/resiliencehub/api_op_CreateApp.go b/service/resiliencehub/api_op_CreateApp.go index 50f1dee38a0..289149b62fb 100644 --- a/service/resiliencehub/api_op_CreateApp.go +++ b/service/resiliencehub/api_op_CreateApp.go @@ -44,6 +44,9 @@ type CreateAppInput struct { // This member is required. Name *string + // Assessment execution schedule with 'Daily' or 'Disabled' values. + AssessmentSchedule types.AppAssessmentScheduleType + // Used for an idempotency token. A client token is a unique, case-sensitive string // of up to 64 ASCII characters. You should not reuse the same client token for // other API requests. @@ -53,8 +56,8 @@ type CreateAppInput struct { Description *string // The Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN - // is: arn:partition:dcps:region:account:resiliency-policy/policy-id. For more - // information about ARNs, see Amazon Resource Names (ARNs) + // is: arn:partition:resiliencehub:region:account:resiliency-policy/policy-id. For + // more information about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. PolicyArn *string diff --git a/service/resiliencehub/api_op_CreateRecommendationTemplate.go b/service/resiliencehub/api_op_CreateRecommendationTemplate.go index 7d988025674..a98ac341081 100644 --- a/service/resiliencehub/api_op_CreateRecommendationTemplate.go +++ b/service/resiliencehub/api_op_CreateRecommendationTemplate.go @@ -31,8 +31,8 @@ func (c *Client) CreateRecommendationTemplate(ctx context.Context, params *Creat type CreateRecommendationTemplateInput struct { // The Amazon Resource Name (ARN) of the assessment. The format for this ARN is: - // arn:partition:dcps:region:account:app-assessment/app-id. For more information - // about ARNs, see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app-assessment/app-id. For more + // information about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // diff --git a/service/resiliencehub/api_op_DeleteApp.go b/service/resiliencehub/api_op_DeleteApp.go index 79cc5271441..a50503e34e3 100644 --- a/service/resiliencehub/api_op_DeleteApp.go +++ b/service/resiliencehub/api_op_DeleteApp.go @@ -31,8 +31,8 @@ func (c *Client) DeleteApp(ctx context.Context, params *DeleteAppInput, optFns . type DeleteAppInput struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // @@ -53,8 +53,8 @@ type DeleteAppInput struct { type DeleteAppOutput struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // diff --git a/service/resiliencehub/api_op_DeleteAppAssessment.go b/service/resiliencehub/api_op_DeleteAppAssessment.go index 4a69fff11ee..23c4879ddc3 100644 --- a/service/resiliencehub/api_op_DeleteAppAssessment.go +++ b/service/resiliencehub/api_op_DeleteAppAssessment.go @@ -32,8 +32,8 @@ func (c *Client) DeleteAppAssessment(ctx context.Context, params *DeleteAppAsses type DeleteAppAssessmentInput struct { // The Amazon Resource Name (ARN) of the assessment. The format for this ARN is: - // arn:partition:dcps:region:account:app-assessment/app-id. For more information - // about ARNs, see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app-assessment/app-id. For more + // information about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // @@ -51,8 +51,8 @@ type DeleteAppAssessmentInput struct { type DeleteAppAssessmentOutput struct { // The Amazon Resource Name (ARN) of the assessment. The format for this ARN is: - // arn:partition:dcps:region:account:app-assessment/app-id. For more information - // about ARNs, see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app-assessment/app-id. For more + // information about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // diff --git a/service/resiliencehub/api_op_DeleteResiliencyPolicy.go b/service/resiliencehub/api_op_DeleteResiliencyPolicy.go index 9272e4b3872..bfebd1c4cea 100644 --- a/service/resiliencehub/api_op_DeleteResiliencyPolicy.go +++ b/service/resiliencehub/api_op_DeleteResiliencyPolicy.go @@ -30,8 +30,8 @@ func (c *Client) DeleteResiliencyPolicy(ctx context.Context, params *DeleteResil type DeleteResiliencyPolicyInput struct { // The Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN - // is: arn:partition:dcps:region:account:resiliency-policy/policy-id. For more - // information about ARNs, see Amazon Resource Names (ARNs) + // is: arn:partition:resiliencehub:region:account:resiliency-policy/policy-id. For + // more information about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // @@ -49,8 +49,8 @@ type DeleteResiliencyPolicyInput struct { type DeleteResiliencyPolicyOutput struct { // The Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN - // is: arn:partition:dcps:region:account:resiliency-policy/policy-id. For more - // information about ARNs, see Amazon Resource Names (ARNs) + // is: arn:partition:resiliencehub:region:account:resiliency-policy/policy-id. For + // more information about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // diff --git a/service/resiliencehub/api_op_DescribeApp.go b/service/resiliencehub/api_op_DescribeApp.go index f1cf7c689f0..5f23e309edd 100644 --- a/service/resiliencehub/api_op_DescribeApp.go +++ b/service/resiliencehub/api_op_DescribeApp.go @@ -30,8 +30,8 @@ func (c *Client) DescribeApp(ctx context.Context, params *DescribeAppInput, optF type DescribeAppInput struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // diff --git a/service/resiliencehub/api_op_DescribeAppAssessment.go b/service/resiliencehub/api_op_DescribeAppAssessment.go index 04437c2220f..99ef5308377 100644 --- a/service/resiliencehub/api_op_DescribeAppAssessment.go +++ b/service/resiliencehub/api_op_DescribeAppAssessment.go @@ -30,8 +30,8 @@ func (c *Client) DescribeAppAssessment(ctx context.Context, params *DescribeAppA type DescribeAppAssessmentInput struct { // The Amazon Resource Name (ARN) of the assessment. The format for this ARN is: - // arn:partition:dcps:region:account:app-assessment/app-id. For more information - // about ARNs, see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app-assessment/app-id. For more + // information about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // diff --git a/service/resiliencehub/api_op_DescribeAppVersionResourcesResolutionStatus.go b/service/resiliencehub/api_op_DescribeAppVersionResourcesResolutionStatus.go index a3ee0ea602a..f4d34dd7e89 100644 --- a/service/resiliencehub/api_op_DescribeAppVersionResourcesResolutionStatus.go +++ b/service/resiliencehub/api_op_DescribeAppVersionResourcesResolutionStatus.go @@ -32,8 +32,8 @@ func (c *Client) DescribeAppVersionResourcesResolutionStatus(ctx context.Context type DescribeAppVersionResourcesResolutionStatusInput struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // @@ -54,8 +54,8 @@ type DescribeAppVersionResourcesResolutionStatusInput struct { type DescribeAppVersionResourcesResolutionStatusOutput struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // diff --git a/service/resiliencehub/api_op_DescribeAppVersionTemplate.go b/service/resiliencehub/api_op_DescribeAppVersionTemplate.go index 0b1576a7bf1..75368988002 100644 --- a/service/resiliencehub/api_op_DescribeAppVersionTemplate.go +++ b/service/resiliencehub/api_op_DescribeAppVersionTemplate.go @@ -29,8 +29,8 @@ func (c *Client) DescribeAppVersionTemplate(ctx context.Context, params *Describ type DescribeAppVersionTemplateInput struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // @@ -48,8 +48,8 @@ type DescribeAppVersionTemplateInput struct { type DescribeAppVersionTemplateOutput struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // diff --git a/service/resiliencehub/api_op_DescribeDraftAppVersionResourcesImportStatus.go b/service/resiliencehub/api_op_DescribeDraftAppVersionResourcesImportStatus.go index 1a7a1af8a2c..20d39c7e602 100644 --- a/service/resiliencehub/api_op_DescribeDraftAppVersionResourcesImportStatus.go +++ b/service/resiliencehub/api_op_DescribeDraftAppVersionResourcesImportStatus.go @@ -31,8 +31,8 @@ func (c *Client) DescribeDraftAppVersionResourcesImportStatus(ctx context.Contex type DescribeDraftAppVersionResourcesImportStatusInput struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // @@ -45,8 +45,8 @@ type DescribeDraftAppVersionResourcesImportStatusInput struct { type DescribeDraftAppVersionResourcesImportStatusOutput struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // diff --git a/service/resiliencehub/api_op_DescribeResiliencyPolicy.go b/service/resiliencehub/api_op_DescribeResiliencyPolicy.go index b0cc436a294..cebf8ca694a 100644 --- a/service/resiliencehub/api_op_DescribeResiliencyPolicy.go +++ b/service/resiliencehub/api_op_DescribeResiliencyPolicy.go @@ -32,8 +32,8 @@ func (c *Client) DescribeResiliencyPolicy(ctx context.Context, params *DescribeR type DescribeResiliencyPolicyInput struct { // The Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN - // is: arn:partition:dcps:region:account:resiliency-policy/policy-id. For more - // information about ARNs, see Amazon Resource Names (ARNs) + // is: arn:partition:resiliencehub:region:account:resiliency-policy/policy-id. For + // more information about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // diff --git a/service/resiliencehub/api_op_ImportResourcesToDraftAppVersion.go b/service/resiliencehub/api_op_ImportResourcesToDraftAppVersion.go index 9a3b0b1f131..8c36b895abe 100644 --- a/service/resiliencehub/api_op_ImportResourcesToDraftAppVersion.go +++ b/service/resiliencehub/api_op_ImportResourcesToDraftAppVersion.go @@ -31,8 +31,8 @@ func (c *Client) ImportResourcesToDraftAppVersion(ctx context.Context, params *I type ImportResourcesToDraftAppVersionInput struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // @@ -40,18 +40,19 @@ type ImportResourcesToDraftAppVersionInput struct { AppArn *string // The Amazon Resource Names (ARNs) for the resources that you want to import. - // - // This member is required. SourceArns []string + // A list of terraform file s3 URLs you need to import. + TerraformSources []types.TerraformSource + noSmithyDocumentSerde } type ImportResourcesToDraftAppVersionOutput struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // @@ -63,16 +64,17 @@ type ImportResourcesToDraftAppVersionOutput struct { // This member is required. AppVersion *string - // The Amazon Resource Names (ARNs) for the resources that you imported. - // - // This member is required. - SourceArns []string - // The status of the action. // // This member is required. Status types.ResourceImportStatusType + // The Amazon Resource Names (ARNs) for the resources that you imported. + SourceArns []string + + // A list of terraform file s3 URLs you need to import. + TerraformSources []types.TerraformSource + // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/resiliencehub/api_op_ListAlarmRecommendations.go b/service/resiliencehub/api_op_ListAlarmRecommendations.go index 7fb9a7c459f..74199183f12 100644 --- a/service/resiliencehub/api_op_ListAlarmRecommendations.go +++ b/service/resiliencehub/api_op_ListAlarmRecommendations.go @@ -31,8 +31,8 @@ func (c *Client) ListAlarmRecommendations(ctx context.Context, params *ListAlarm type ListAlarmRecommendationsInput struct { // The Amazon Resource Name (ARN) of the assessment. The format for this ARN is: - // arn:partition:dcps:region:account:app-assessment/app-id. For more information - // about ARNs, see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app-assessment/app-id. For more + // information about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // diff --git a/service/resiliencehub/api_op_ListAppAssessments.go b/service/resiliencehub/api_op_ListAppAssessments.go index 69afdb2e6d9..626d43e00bc 100644 --- a/service/resiliencehub/api_op_ListAppAssessments.go +++ b/service/resiliencehub/api_op_ListAppAssessments.go @@ -32,8 +32,8 @@ func (c *Client) ListAppAssessments(ctx context.Context, params *ListAppAssessme type ListAppAssessmentsInput struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. AppArn *string diff --git a/service/resiliencehub/api_op_ListAppComponentCompliances.go b/service/resiliencehub/api_op_ListAppComponentCompliances.go index 8148bdd5a34..d9ebd14fbd1 100644 --- a/service/resiliencehub/api_op_ListAppComponentCompliances.go +++ b/service/resiliencehub/api_op_ListAppComponentCompliances.go @@ -31,8 +31,8 @@ func (c *Client) ListAppComponentCompliances(ctx context.Context, params *ListAp type ListAppComponentCompliancesInput struct { // The Amazon Resource Name (ARN) of the assessment. The format for this ARN is: - // arn:partition:dcps:region:account:app-assessment/app-id. For more information - // about ARNs, see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app-assessment/app-id. For more + // information about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // diff --git a/service/resiliencehub/api_op_ListAppComponentRecommendations.go b/service/resiliencehub/api_op_ListAppComponentRecommendations.go index 87676ace123..43b27c4ecc9 100644 --- a/service/resiliencehub/api_op_ListAppComponentRecommendations.go +++ b/service/resiliencehub/api_op_ListAppComponentRecommendations.go @@ -31,8 +31,8 @@ func (c *Client) ListAppComponentRecommendations(ctx context.Context, params *Li type ListAppComponentRecommendationsInput struct { // The Amazon Resource Name (ARN) of the assessment. The format for this ARN is: - // arn:partition:dcps:region:account:app-assessment/app-id. For more information - // about ARNs, see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app-assessment/app-id. For more + // information about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // diff --git a/service/resiliencehub/api_op_ListAppVersionResourceMappings.go b/service/resiliencehub/api_op_ListAppVersionResourceMappings.go index 8157070a7db..9cb6726ad28 100644 --- a/service/resiliencehub/api_op_ListAppVersionResourceMappings.go +++ b/service/resiliencehub/api_op_ListAppVersionResourceMappings.go @@ -33,8 +33,8 @@ func (c *Client) ListAppVersionResourceMappings(ctx context.Context, params *Lis type ListAppVersionResourceMappingsInput struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // diff --git a/service/resiliencehub/api_op_ListAppVersionResources.go b/service/resiliencehub/api_op_ListAppVersionResources.go index 9493b179784..2c34f127ff5 100644 --- a/service/resiliencehub/api_op_ListAppVersionResources.go +++ b/service/resiliencehub/api_op_ListAppVersionResources.go @@ -31,8 +31,8 @@ func (c *Client) ListAppVersionResources(ctx context.Context, params *ListAppVer type ListAppVersionResourcesInput struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // diff --git a/service/resiliencehub/api_op_ListAppVersions.go b/service/resiliencehub/api_op_ListAppVersions.go index cf54958dca4..616f708570e 100644 --- a/service/resiliencehub/api_op_ListAppVersions.go +++ b/service/resiliencehub/api_op_ListAppVersions.go @@ -31,8 +31,8 @@ func (c *Client) ListAppVersions(ctx context.Context, params *ListAppVersionsInp type ListAppVersionsInput struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // diff --git a/service/resiliencehub/api_op_ListApps.go b/service/resiliencehub/api_op_ListApps.go index 678d135ba8b..ccd6b0e0509 100644 --- a/service/resiliencehub/api_op_ListApps.go +++ b/service/resiliencehub/api_op_ListApps.go @@ -31,8 +31,8 @@ func (c *Client) ListApps(ctx context.Context, params *ListAppsInput, optFns ... type ListAppsInput struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. AppArn *string diff --git a/service/resiliencehub/api_op_ListRecommendationTemplates.go b/service/resiliencehub/api_op_ListRecommendationTemplates.go index 34d0eea9d35..3b3497f8c76 100644 --- a/service/resiliencehub/api_op_ListRecommendationTemplates.go +++ b/service/resiliencehub/api_op_ListRecommendationTemplates.go @@ -31,8 +31,8 @@ func (c *Client) ListRecommendationTemplates(ctx context.Context, params *ListRe type ListRecommendationTemplatesInput struct { // The Amazon Resource Name (ARN) of the assessment. The format for this ARN is: - // arn:partition:dcps:region:account:app-assessment/app-id. For more information - // about ARNs, see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app-assessment/app-id. For more + // information about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // diff --git a/service/resiliencehub/api_op_ListSopRecommendations.go b/service/resiliencehub/api_op_ListSopRecommendations.go index f939f8cbab2..e5c33a6597e 100644 --- a/service/resiliencehub/api_op_ListSopRecommendations.go +++ b/service/resiliencehub/api_op_ListSopRecommendations.go @@ -32,8 +32,8 @@ func (c *Client) ListSopRecommendations(ctx context.Context, params *ListSopReco type ListSopRecommendationsInput struct { // The Amazon Resource Name (ARN) of the assessment. The format for this ARN is: - // arn:partition:dcps:region:account:app-assessment/app-id. For more information - // about ARNs, see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app-assessment/app-id. For more + // information about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // diff --git a/service/resiliencehub/api_op_ListTestRecommendations.go b/service/resiliencehub/api_op_ListTestRecommendations.go index 6c3036e456e..1647dcbd2a3 100644 --- a/service/resiliencehub/api_op_ListTestRecommendations.go +++ b/service/resiliencehub/api_op_ListTestRecommendations.go @@ -31,8 +31,8 @@ func (c *Client) ListTestRecommendations(ctx context.Context, params *ListTestRe type ListTestRecommendationsInput struct { // The Amazon Resource Name (ARN) of the assessment. The format for this ARN is: - // arn:partition:dcps:region:account:app-assessment/app-id. For more information - // about ARNs, see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app-assessment/app-id. For more + // information about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // diff --git a/service/resiliencehub/api_op_ListUnsupportedAppVersionResources.go b/service/resiliencehub/api_op_ListUnsupportedAppVersionResources.go index 718538c117d..b584d8e72ae 100644 --- a/service/resiliencehub/api_op_ListUnsupportedAppVersionResources.go +++ b/service/resiliencehub/api_op_ListUnsupportedAppVersionResources.go @@ -33,8 +33,8 @@ func (c *Client) ListUnsupportedAppVersionResources(ctx context.Context, params type ListUnsupportedAppVersionResourcesInput struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // diff --git a/service/resiliencehub/api_op_PublishAppVersion.go b/service/resiliencehub/api_op_PublishAppVersion.go index 0f1b8612f2b..9dbe1e7b6f9 100644 --- a/service/resiliencehub/api_op_PublishAppVersion.go +++ b/service/resiliencehub/api_op_PublishAppVersion.go @@ -29,8 +29,8 @@ func (c *Client) PublishAppVersion(ctx context.Context, params *PublishAppVersio type PublishAppVersionInput struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // @@ -43,8 +43,8 @@ type PublishAppVersionInput struct { type PublishAppVersionOutput struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // diff --git a/service/resiliencehub/api_op_PutDraftAppVersionTemplate.go b/service/resiliencehub/api_op_PutDraftAppVersionTemplate.go index 5a864708586..9b08803fe8f 100644 --- a/service/resiliencehub/api_op_PutDraftAppVersionTemplate.go +++ b/service/resiliencehub/api_op_PutDraftAppVersionTemplate.go @@ -29,8 +29,8 @@ func (c *Client) PutDraftAppVersionTemplate(ctx context.Context, params *PutDraf type PutDraftAppVersionTemplateInput struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // @@ -48,8 +48,8 @@ type PutDraftAppVersionTemplateInput struct { type PutDraftAppVersionTemplateOutput struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. AppArn *string diff --git a/service/resiliencehub/api_op_RemoveDraftAppVersionResourceMappings.go b/service/resiliencehub/api_op_RemoveDraftAppVersionResourceMappings.go index 55b4d3e3c3b..d97fb1e39ee 100644 --- a/service/resiliencehub/api_op_RemoveDraftAppVersionResourceMappings.go +++ b/service/resiliencehub/api_op_RemoveDraftAppVersionResourceMappings.go @@ -29,8 +29,8 @@ func (c *Client) RemoveDraftAppVersionResourceMappings(ctx context.Context, para type RemoveDraftAppVersionResourceMappingsInput struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // @@ -49,14 +49,17 @@ type RemoveDraftAppVersionResourceMappingsInput struct { // The names of the resources to remove from the resource mappings. ResourceNames []string + // + TerraformSourceNames []string + noSmithyDocumentSerde } type RemoveDraftAppVersionResourceMappingsOutput struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. AppArn *string diff --git a/service/resiliencehub/api_op_ResolveAppVersionResources.go b/service/resiliencehub/api_op_ResolveAppVersionResources.go index 37fbc8b4b51..c3054c57fa2 100644 --- a/service/resiliencehub/api_op_ResolveAppVersionResources.go +++ b/service/resiliencehub/api_op_ResolveAppVersionResources.go @@ -30,8 +30,8 @@ func (c *Client) ResolveAppVersionResources(ctx context.Context, params *Resolve type ResolveAppVersionResourcesInput struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // @@ -49,8 +49,8 @@ type ResolveAppVersionResourcesInput struct { type ResolveAppVersionResourcesOutput struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // diff --git a/service/resiliencehub/api_op_StartAppAssessment.go b/service/resiliencehub/api_op_StartAppAssessment.go index 48d3e386be1..ed8340c68f9 100644 --- a/service/resiliencehub/api_op_StartAppAssessment.go +++ b/service/resiliencehub/api_op_StartAppAssessment.go @@ -31,8 +31,8 @@ func (c *Client) StartAppAssessment(ctx context.Context, params *StartAppAssessm type StartAppAssessmentInput struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // diff --git a/service/resiliencehub/api_op_UpdateApp.go b/service/resiliencehub/api_op_UpdateApp.go index 48cf40afaf3..2be230cbc10 100644 --- a/service/resiliencehub/api_op_UpdateApp.go +++ b/service/resiliencehub/api_op_UpdateApp.go @@ -30,14 +30,17 @@ func (c *Client) UpdateApp(ctx context.Context, params *UpdateAppInput, optFns . type UpdateAppInput struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // // This member is required. AppArn *string + // Assessment execution schedule with 'Daily' or 'Disabled' values. + AssessmentSchedule types.AppAssessmentScheduleType + // Specifies if the resiliency policy ARN should be cleared. ClearResiliencyPolicyArn *bool @@ -45,8 +48,8 @@ type UpdateAppInput struct { Description *string // The Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN - // is: arn:partition:dcps:region:account:resiliency-policy/policy-id. For more - // information about ARNs, see Amazon Resource Names (ARNs) + // is: arn:partition:resiliencehub:region:account:resiliency-policy/policy-id. For + // more information about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. PolicyArn *string diff --git a/service/resiliencehub/api_op_UpdateResiliencyPolicy.go b/service/resiliencehub/api_op_UpdateResiliencyPolicy.go index e0873308f8c..1bfc75d0429 100644 --- a/service/resiliencehub/api_op_UpdateResiliencyPolicy.go +++ b/service/resiliencehub/api_op_UpdateResiliencyPolicy.go @@ -30,8 +30,8 @@ func (c *Client) UpdateResiliencyPolicy(ctx context.Context, params *UpdateResil type UpdateResiliencyPolicyInput struct { // The Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN - // is: arn:partition:dcps:region:account:resiliency-policy/policy-id. For more - // information about ARNs, see Amazon Resource Names (ARNs) + // is: arn:partition:resiliencehub:region:account:resiliency-policy/policy-id. For + // more information about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // diff --git a/service/resiliencehub/deserializers.go b/service/resiliencehub/deserializers.go index 4aa477736db..858a4fc1e7c 100644 --- a/service/resiliencehub/deserializers.go +++ b/service/resiliencehub/deserializers.go @@ -2608,6 +2608,11 @@ func awsRestjson1_deserializeOpDocumentImportResourcesToDraftAppVersionOutput(v sv.Status = types.ResourceImportStatusType(jtv) } + case "terraformSources": + if err := awsRestjson1_deserializeDocumentTerraformSourceList(&sv.TerraformSources, value); err != nil { + return err + } + default: _, _ = key, value @@ -6971,6 +6976,42 @@ func awsRestjson1_deserializeDocumentAlarmRecommendationList(v *[]types.AlarmRec return nil } +func awsRestjson1_deserializeDocumentAlarmReferenceIdList(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String500 to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentApp(v **types.App, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -7002,6 +7043,15 @@ func awsRestjson1_deserializeDocumentApp(v **types.App, value interface{}) error sv.AppArn = ptr.String(jtv) } + case "assessmentSchedule": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AppAssessmentScheduleType to be of type string, got %T instead", value) + } + sv.AssessmentSchedule = types.AppAssessmentScheduleType(jtv) + } + case "complianceStatus": if value != nil { jtv, ok := value.(string) @@ -7273,6 +7323,11 @@ func awsRestjson1_deserializeDocumentAppAssessment(v **types.AppAssessment, valu return err } + case "resourceErrorsDetails": + if err := awsRestjson1_deserializeDocumentResourceErrorsDetails(&sv.ResourceErrorsDetails, value); err != nil { + return err + } + case "startTime": if value != nil { switch jtv := value.(type) { @@ -7698,6 +7753,15 @@ func awsRestjson1_deserializeDocumentAppSummary(v **types.AppSummary, value inte sv.AppArn = ptr.String(jtv) } + case "assessmentSchedule": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AppAssessmentScheduleType to be of type string, got %T instead", value) + } + sv.AssessmentSchedule = types.AppAssessmentScheduleType(jtv) + } + case "complianceStatus": if value != nil { jtv, ok := value.(string) @@ -8744,6 +8808,15 @@ func awsRestjson1_deserializeDocumentLogicalResourceId(v **types.LogicalResource sv.ResourceGroupName = ptr.String(jtv) } + case "terraformSourceName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String255 to be of type string, got %T instead", value) + } + sv.TerraformSourceName = ptr.String(jtv) + } + default: _, _ = key, value @@ -9614,6 +9687,143 @@ func awsRestjson1_deserializeDocumentResiliencyScore(v **types.ResiliencyScore, return nil } +func awsRestjson1_deserializeDocumentResourceError(v **types.ResourceError, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ResourceError + if *v == nil { + sv = &types.ResourceError{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "logicalResourceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String255 to be of type string, got %T instead", value) + } + sv.LogicalResourceId = ptr.String(jtv) + } + + case "physicalResourceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String255 to be of type string, got %T instead", value) + } + sv.PhysicalResourceId = ptr.String(jtv) + } + + case "reason": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + } + sv.Reason = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentResourceErrorList(v *[]types.ResourceError, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.ResourceError + if *v == nil { + cv = []types.ResourceError{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ResourceError + destAddr := &col + if err := awsRestjson1_deserializeDocumentResourceError(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentResourceErrorsDetails(v **types.ResourceErrorsDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ResourceErrorsDetails + if *v == nil { + sv = &types.ResourceErrorsDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "hasMoreErrors": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) + } + sv.HasMoreErrors = ptr.Bool(jtv) + } + + case "resourceErrors": + if err := awsRestjson1_deserializeDocumentResourceErrorList(&sv.ResourceErrors, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentResourceMapping(v **types.ResourceMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -9686,6 +9896,15 @@ func awsRestjson1_deserializeDocumentResourceMapping(v **types.ResourceMapping, sv.ResourceName = ptr.String(jtv) } + case "terraformSourceName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String255 to be of type string, got %T instead", value) + } + sv.TerraformSourceName = ptr.String(jtv) + } + default: _, _ = key, value @@ -10081,6 +10300,80 @@ func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interfac return nil } +func awsRestjson1_deserializeDocumentTerraformSource(v **types.TerraformSource, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.TerraformSource + if *v == nil { + sv = &types.TerraformSource{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "s3StateFileUrl": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected S3Url to be of type string, got %T instead", value) + } + sv.S3StateFileUrl = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentTerraformSourceList(v *[]types.TerraformSource, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.TerraformSource + if *v == nil { + cv = []types.TerraformSource{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.TerraformSource + destAddr := &col + if err := awsRestjson1_deserializeDocumentTerraformSource(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentTestRecommendation(v **types.TestRecommendation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -10112,6 +10405,11 @@ func awsRestjson1_deserializeDocumentTestRecommendation(v **types.TestRecommenda sv.AppComponentName = ptr.String(jtv) } + case "dependsOnAlarms": + if err := awsRestjson1_deserializeDocumentAlarmReferenceIdList(&sv.DependsOnAlarms, value); err != nil { + return err + } + case "description": if value != nil { jtv, ok := value.(string) diff --git a/service/resiliencehub/serializers.go b/service/resiliencehub/serializers.go index 6139bffe3e6..0eb9c694b7d 100644 --- a/service/resiliencehub/serializers.go +++ b/service/resiliencehub/serializers.go @@ -149,6 +149,11 @@ func awsRestjson1_serializeOpDocumentCreateAppInput(v *CreateAppInput, value smi object := value.Object() defer object.Close() + if len(v.AssessmentSchedule) > 0 { + ok := object.Key("assessmentSchedule") + ok.String(string(v.AssessmentSchedule)) + } + if v.ClientToken != nil { ok := object.Key("clientToken") ok.String(*v.ClientToken) @@ -1182,6 +1187,13 @@ func awsRestjson1_serializeOpDocumentImportResourcesToDraftAppVersionInput(v *Im } } + if v.TerraformSources != nil { + ok := object.Key("terraformSources") + if err := awsRestjson1_serializeDocumentTerraformSourceList(v.TerraformSources, ok); err != nil { + return err + } + } + return nil } @@ -2549,6 +2561,13 @@ func awsRestjson1_serializeOpDocumentRemoveDraftAppVersionResourceMappingsInput( } } + if v.TerraformSourceNames != nil { + ok := object.Key("terraformSourceNames") + if err := awsRestjson1_serializeDocumentString255List(v.TerraformSourceNames, ok); err != nil { + return err + } + } + return nil } @@ -2927,6 +2946,11 @@ func awsRestjson1_serializeOpDocumentUpdateAppInput(v *UpdateAppInput, value smi ok.String(*v.AppArn) } + if len(v.AssessmentSchedule) > 0 { + ok := object.Key("assessmentSchedule") + ok.String(string(v.AssessmentSchedule)) + } + if v.ClearResiliencyPolicyArn != nil { ok := object.Key("clearResiliencyPolicyArn") ok.Boolean(*v.ClearResiliencyPolicyArn) @@ -3178,6 +3202,11 @@ func awsRestjson1_serializeDocumentResourceMapping(v *types.ResourceMapping, val ok.String(*v.ResourceName) } + if v.TerraformSourceName != nil { + ok := object.Key("terraformSourceName") + ok.String(*v.TerraformSourceName) + } + return nil } @@ -3215,3 +3244,28 @@ func awsRestjson1_serializeDocumentTagMap(v map[string]string, value smithyjson. } return nil } + +func awsRestjson1_serializeDocumentTerraformSource(v *types.TerraformSource, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.S3StateFileUrl != nil { + ok := object.Key("s3StateFileUrl") + ok.String(*v.S3StateFileUrl) + } + + return nil +} + +func awsRestjson1_serializeDocumentTerraformSourceList(v []types.TerraformSource, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentTerraformSource(&v[i], av); err != nil { + return err + } + } + return nil +} diff --git a/service/resiliencehub/types/enums.go b/service/resiliencehub/types/enums.go index 70d44aa5b9d..fab221fc9aa 100644 --- a/service/resiliencehub/types/enums.go +++ b/service/resiliencehub/types/enums.go @@ -26,6 +26,24 @@ func (AlarmType) Values() []AlarmType { } } +type AppAssessmentScheduleType string + +// Enum values for AppAssessmentScheduleType +const ( + AppAssessmentScheduleTypeDisabled AppAssessmentScheduleType = "Disabled" + AppAssessmentScheduleTypeDaily AppAssessmentScheduleType = "Daily" +) + +// Values returns all known values for AppAssessmentScheduleType. Note that this +// can be expanded in the future, and so it is only as up to date as the client. +// The ordering of this slice is not guaranteed to be stable across updates. +func (AppAssessmentScheduleType) Values() []AppAssessmentScheduleType { + return []AppAssessmentScheduleType{ + "Disabled", + "Daily", + } +} + type AppComplianceStatusType string // Enum values for AppComplianceStatusType @@ -394,6 +412,7 @@ const ( ResourceMappingTypeResource ResourceMappingType = "Resource" ResourceMappingTypeAppRegistryApp ResourceMappingType = "AppRegistryApp" ResourceMappingTypeResourceGroup ResourceMappingType = "ResourceGroup" + ResourceMappingTypeTerraform ResourceMappingType = "Terraform" ) // Values returns all known values for ResourceMappingType. Note that this can be @@ -405,6 +424,7 @@ func (ResourceMappingType) Values() []ResourceMappingType { "Resource", "AppRegistryApp", "ResourceGroup", + "Terraform", } } diff --git a/service/resiliencehub/types/types.go b/service/resiliencehub/types/types.go index 2c06daae67d..01920ace0d2 100644 --- a/service/resiliencehub/types/types.go +++ b/service/resiliencehub/types/types.go @@ -49,8 +49,8 @@ type AlarmRecommendation struct { type App struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // @@ -67,6 +67,9 @@ type App struct { // This member is required. Name *string + // Assessment execution schedule with 'Daily' or 'Disabled' values. + AssessmentSchedule AppAssessmentScheduleType + // The current status of compliance for the resiliency policy. ComplianceStatus AppComplianceStatusType @@ -80,8 +83,8 @@ type App struct { LastResiliencyScoreEvaluationTime *time.Time // The Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN - // is: arn:partition:dcps:region:account:resiliency-policy/policy-id. For more - // information about ARNs, see Amazon Resource Names (ARNs) + // is: arn:partition:resiliencehub:region:account:resiliency-policy/policy-id. For + // more information about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. PolicyArn *string @@ -103,8 +106,8 @@ type App struct { type AppAssessment struct { // The Amazon Resource Name (ARN) of the assessment. The format for this ARN is: - // arn:partition:dcps:region:account:app-assessment/app-id. For more information - // about ARNs, see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app-assessment/app-id. For more + // information about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // @@ -122,8 +125,8 @@ type AppAssessment struct { Invoker AssessmentInvoker // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. AppArn *string @@ -155,6 +158,10 @@ type AppAssessment struct { // The current resiliency score for the application. ResiliencyScore *ResiliencyScore + // A resource error object containing a list of errors retrieving an application's + // resources. + ResourceErrorsDetails *ResourceErrorsDetails + // The starting time for the action. StartTime *time.Time @@ -169,8 +176,8 @@ type AppAssessment struct { type AppAssessmentSummary struct { // The Amazon Resource Name (ARN) of the assessment. The format for this ARN is: - // arn:partition:dcps:region:account:app-assessment/app-id. For more information - // about ARNs, see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app-assessment/app-id. For more + // information about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // @@ -183,8 +190,8 @@ type AppAssessmentSummary struct { AssessmentStatus AssessmentStatus // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. AppArn *string @@ -264,8 +271,8 @@ type AppComponentCompliance struct { type AppSummary struct { // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // @@ -282,6 +289,9 @@ type AppSummary struct { // This member is required. Name *string + // Assessment execution schedule with 'Daily' or 'Disabled' values. + AssessmentSchedule AppAssessmentScheduleType + // The current status of compliance for the resiliency policy. ComplianceStatus AppComplianceStatusType @@ -461,6 +471,9 @@ type LogicalResourceId struct { // The name of the resource group that this resource belongs to. ResourceGroupName *string + // The name of the Terraform S3 state file this resource belongs to. + TerraformSourceName *string + noSmithyDocumentSerde } @@ -566,8 +579,8 @@ type RecommendationItem struct { type RecommendationTemplate struct { // The Amazon Resource Name (ARN) of the assessment. The format for this ARN is: - // arn:partition:dcps:region:account:app-assessment/app-id. For more information - // about ARNs, see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app-assessment/app-id. For more + // information about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. // @@ -603,8 +616,8 @@ type RecommendationTemplate struct { Status RecommendationTemplateStatus // The Amazon Resource Name (ARN) of the application. The format for this ARN is: - // arn:partition:dcps:region:account:app/app-id. For more information about ARNs, - // see Amazon Resource Names (ARNs) + // arn:partition:resiliencehub:region:account:app/app-id. For more information + // about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. AppArn *string @@ -651,8 +664,8 @@ type ResiliencyPolicy struct { Policy map[string]FailurePolicy // The Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN - // is: arn:partition:dcps:region:account:resiliency-policy/policy-id. For more - // information about ARNs, see Amazon Resource Names (ARNs) + // is: arn:partition:resiliencehub:region:account:resiliency-policy/policy-id. For + // more information about ARNs, see Amazon Resource Names (ARNs) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. PolicyArn *string @@ -691,6 +704,33 @@ type ResiliencyScore struct { noSmithyDocumentSerde } +// Defines application resource errors. +type ResourceError struct { + + // This is the identifier of the resource. + LogicalResourceId *string + + // This is the identifier of the physical resource. + PhysicalResourceId *string + + // This is the error message. + Reason *string + + noSmithyDocumentSerde +} + +// A list of errors retrieving an application's resources. +type ResourceErrorsDetails struct { + + // This indicates if there are more errors not listed in the resourceErrors list. + HasMoreErrors *bool + + // A list of errors retrieving an application's resources. + ResourceErrors []ResourceError + + noSmithyDocumentSerde +} + // Defines a resource mapping. type ResourceMapping struct { @@ -723,6 +763,9 @@ type ResourceMapping struct { // The name of the resource this resource is mapped to. ResourceName *string + // The short name of the Terraform source. + TerraformSourceName *string + noSmithyDocumentSerde } @@ -774,6 +817,17 @@ type SopRecommendation struct { noSmithyDocumentSerde } +// The Terraform s3 state file you need to import. +type TerraformSource struct { + + // The Terraform s3 state file you need to import. + // + // This member is required. + S3StateFileUrl *string + + noSmithyDocumentSerde +} + // Defines a test recommendation. type TestRecommendation struct { @@ -785,6 +839,10 @@ type TestRecommendation struct { // The name of the application component. AppComponentName *string + // A list of recommended alarms that are used in the test and must be exported + // before or with the test. + DependsOnAlarms []string + // The description for the test recommendation. Description *string diff --git a/service/resiliencehub/validators.go b/service/resiliencehub/validators.go index 1225e43ca1e..c9413bb2b98 100644 --- a/service/resiliencehub/validators.go +++ b/service/resiliencehub/validators.go @@ -937,6 +937,38 @@ func validateResourceMappingList(v []types.ResourceMapping) error { } } +func validateTerraformSource(v *types.TerraformSource) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TerraformSource"} + if v.S3StateFileUrl == nil { + invalidParams.Add(smithy.NewErrParamRequired("S3StateFileUrl")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateTerraformSourceList(v []types.TerraformSource) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TerraformSourceList"} + for i := range v { + if err := validateTerraformSource(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpAddDraftAppVersionResourceMappingsInput(v *AddDraftAppVersionResourceMappingsInput) error { if v == nil { return nil @@ -1181,8 +1213,10 @@ func validateOpImportResourcesToDraftAppVersionInput(v *ImportResourcesToDraftAp if v.AppArn == nil { invalidParams.Add(smithy.NewErrParamRequired("AppArn")) } - if v.SourceArns == nil { - invalidParams.Add(smithy.NewErrParamRequired("SourceArns")) + if v.TerraformSources != nil { + if err := validateTerraformSourceList(v.TerraformSources); err != nil { + invalidParams.AddNested("TerraformSources", err.(smithy.InvalidParamsError)) + } } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/servicecatalog/api_op_ListAcceptedPortfolioShares.go b/service/servicecatalog/api_op_ListAcceptedPortfolioShares.go index 9c11bd77bf0..1d2cf0a57b5 100644 --- a/service/servicecatalog/api_op_ListAcceptedPortfolioShares.go +++ b/service/servicecatalog/api_op_ListAcceptedPortfolioShares.go @@ -12,7 +12,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists all portfolios for which sharing was accepted by this account. +// Lists all imported portfolios for which account-to-account shares were accepted +// by this account. By specifying the PortfolioShareType, you can list portfolios +// for which organizational shares were accepted by this account. func (c *Client) ListAcceptedPortfolioShares(ctx context.Context, params *ListAcceptedPortfolioSharesInput, optFns ...func(*Options)) (*ListAcceptedPortfolioSharesOutput, error) { if params == nil { params = &ListAcceptedPortfolioSharesInput{} @@ -49,13 +51,15 @@ type ListAcceptedPortfolioSharesInput struct { // The type of shared portfolios to list. The default is to list imported // portfolios. // - // * AWS_ORGANIZATIONS - List portfolios shared by the management - // account of your organization + // * AWS_ORGANIZATIONS - List portfolios accepted and shared via + // organizational sharing by the management account or delegated administrator of + // your organization. // - // * AWS_SERVICECATALOG - List default portfolios + // * AWS_SERVICECATALOG - Deprecated type. // - // * - // IMPORTED - List imported portfolios + // * IMPORTED - List + // imported portfolios that have been accepted and shared through + // account-to-account sharing. PortfolioShareType types.PortfolioShareType noSmithyDocumentSerde diff --git a/service/servicecatalog/types/types.go b/service/servicecatalog/types/types.go index 19594985489..8bd075142f1 100644 --- a/service/servicecatalog/types/types.go +++ b/service/servicecatalog/types/types.go @@ -158,7 +158,7 @@ type LaunchPathSummary struct { // The identifier of the product path. Id *string - // The name of the portfolio to which the user was assigned. + // The name of the portfolio that contains the product. Name *string // The tags associated with this product path. diff --git a/service/sts/api_op_GetSessionToken.go b/service/sts/api_op_GetSessionToken.go index b292f208a0e..bfde51689d1 100644 --- a/service/sts/api_op_GetSessionToken.go +++ b/service/sts/api_op_GetSessionToken.go @@ -26,6 +26,11 @@ import ( // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html) // and Comparing the Amazon Web Services STS API operations // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison) +// in the IAM User Guide. No permissions are required for users to perform this +// operation. The purpose of the sts:GetSessionToken operation is to authenticate +// the user using MFA. You cannot use policies to control authentication +// operations. For more information, see Permissions for GetSessionToken +// (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_getsessiontoken.html) // in the IAM User Guide. Session Duration The GetSessionToken operation must be // called by using the long-term Amazon Web Services security credentials of the // Amazon Web Services account root user or an IAM user. Credentials that are diff --git a/service/workspacesweb/api_op_CreateIdentityProvider.go b/service/workspacesweb/api_op_CreateIdentityProvider.go index 7b3eb946930..8002efad2ca 100644 --- a/service/workspacesweb/api_op_CreateIdentityProvider.go +++ b/service/workspacesweb/api_op_CreateIdentityProvider.go @@ -97,7 +97,7 @@ type CreateIdentityProviderInput struct { // * // MetadataFile OR MetadataURL // - // * IDPSignout optional + // * IDPSignout (boolean) optional // // This member is required. IdentityProviderDetails map[string]string diff --git a/service/workspacesweb/api_op_CreateUserSettings.go b/service/workspacesweb/api_op_CreateUserSettings.go index c5c397e6567..8ee514a10ba 100644 --- a/service/workspacesweb/api_op_CreateUserSettings.go +++ b/service/workspacesweb/api_op_CreateUserSettings.go @@ -69,6 +69,15 @@ type CreateUserSettingsInput struct { // automatically generated by the AWS SDK. ClientToken *string + // The amount of time that a streaming session remains active after users + // disconnect. + DisconnectTimeoutInMinutes *int32 + + // The amount of time that users can be idle (inactive) before they are + // disconnected from their streaming session and the disconnect timeout interval + // begins. + IdleDisconnectTimeoutInMinutes *int32 + // The tags to add to the user settings resource. A tag is a key-value pair. Tags []types.Tag diff --git a/service/workspacesweb/api_op_UpdateIdentityProvider.go b/service/workspacesweb/api_op_UpdateIdentityProvider.go index 2717e977ec5..50f23e7cca6 100644 --- a/service/workspacesweb/api_op_UpdateIdentityProvider.go +++ b/service/workspacesweb/api_op_UpdateIdentityProvider.go @@ -43,7 +43,74 @@ type UpdateIdentityProviderInput struct { // automatically generated by the AWS SDK. ClientToken *string - // The details of the identity provider. + // The details of the identity provider. The following list describes the provider + // detail keys for each identity provider type. + // + // * For Google and Login with + // Amazon: + // + // * client_id + // + // * client_secret + // + // * authorize_scopes + // + // * For Facebook: + // + // * + // client_id + // + // * client_secret + // + // * authorize_scopes + // + // * api_version + // + // * For Sign in + // with Apple: + // + // * client_id + // + // * team_id + // + // * key_id + // + // * private_key + // + // * + // authorize_scopes + // + // * For OIDC providers: + // + // * client_id + // + // * client_secret + // + // * + // attributes_request_method + // + // * oidc_issuer + // + // * authorize_scopes + // + // * authorize_url if + // not available from discovery URL specified by oidc_issuer key + // + // * token_url if + // not available from discovery URL specified by oidc_issuer key + // + // * attributes_url + // if not available from discovery URL specified by oidc_issuer key + // + // * jwks_uri if + // not available from discovery URL specified by oidc_issuer key + // + // * For SAML + // providers: + // + // * MetadataFile OR MetadataURL + // + // * IDPSignout (boolean) optional IdentityProviderDetails map[string]string // The name of the identity provider. diff --git a/service/workspacesweb/api_op_UpdateUserSettings.go b/service/workspacesweb/api_op_UpdateUserSettings.go index 975332827ed..86d044dffa1 100644 --- a/service/workspacesweb/api_op_UpdateUserSettings.go +++ b/service/workspacesweb/api_op_UpdateUserSettings.go @@ -47,10 +47,19 @@ type UpdateUserSettingsInput struct { // device. CopyAllowed types.EnabledType + // The amount of time that a streaming session remains active after users + // disconnect. + DisconnectTimeoutInMinutes *int32 + // Specifies whether the user can download files from the streaming session to the // local device. DownloadAllowed types.EnabledType + // The amount of time that users can be idle (inactive) before they are + // disconnected from their streaming session and the disconnect timeout interval + // begins. + IdleDisconnectTimeoutInMinutes *int32 + // Specifies whether the user can paste text from the local device to the streaming // session. PasteAllowed types.EnabledType diff --git a/service/workspacesweb/deserializers.go b/service/workspacesweb/deserializers.go index 0d6ee11a8e0..4cc6fc2bc34 100644 --- a/service/workspacesweb/deserializers.go +++ b/service/workspacesweb/deserializers.go @@ -997,6 +997,9 @@ func awsRestjson1_deserializeOpErrorCreateIdentityProvider(response *smithyhttp. case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -8542,6 +8545,19 @@ func awsRestjson1_deserializeDocumentUserSettings(v **types.UserSettings, value sv.CopyAllowed = types.EnabledType(jtv) } + case "disconnectTimeoutInMinutes": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected DisconnectTimeoutInMinutes to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.DisconnectTimeoutInMinutes = ptr.Int32(int32(i64)) + } + case "downloadAllowed": if value != nil { jtv, ok := value.(string) @@ -8551,6 +8567,19 @@ func awsRestjson1_deserializeDocumentUserSettings(v **types.UserSettings, value sv.DownloadAllowed = types.EnabledType(jtv) } + case "idleDisconnectTimeoutInMinutes": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected IdleDisconnectTimeoutInMinutes to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.IdleDisconnectTimeoutInMinutes = ptr.Int32(int32(i64)) + } + case "pasteAllowed": if value != nil { jtv, ok := value.(string) @@ -8661,6 +8690,19 @@ func awsRestjson1_deserializeDocumentUserSettingsSummary(v **types.UserSettingsS sv.CopyAllowed = types.EnabledType(jtv) } + case "disconnectTimeoutInMinutes": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected DisconnectTimeoutInMinutes to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.DisconnectTimeoutInMinutes = ptr.Int32(int32(i64)) + } + case "downloadAllowed": if value != nil { jtv, ok := value.(string) @@ -8670,6 +8712,19 @@ func awsRestjson1_deserializeDocumentUserSettingsSummary(v **types.UserSettingsS sv.DownloadAllowed = types.EnabledType(jtv) } + case "idleDisconnectTimeoutInMinutes": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected IdleDisconnectTimeoutInMinutes to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.IdleDisconnectTimeoutInMinutes = ptr.Int32(int32(i64)) + } + case "pasteAllowed": if value != nil { jtv, ok := value.(string) diff --git a/service/workspacesweb/serializers.go b/service/workspacesweb/serializers.go index 7bc91496c9f..bd13c1805a0 100644 --- a/service/workspacesweb/serializers.go +++ b/service/workspacesweb/serializers.go @@ -782,11 +782,21 @@ func awsRestjson1_serializeOpDocumentCreateUserSettingsInput(v *CreateUserSettin ok.String(string(v.CopyAllowed)) } + if v.DisconnectTimeoutInMinutes != nil { + ok := object.Key("disconnectTimeoutInMinutes") + ok.Integer(*v.DisconnectTimeoutInMinutes) + } + if len(v.DownloadAllowed) > 0 { ok := object.Key("downloadAllowed") ok.String(string(v.DownloadAllowed)) } + if v.IdleDisconnectTimeoutInMinutes != nil { + ok := object.Key("idleDisconnectTimeoutInMinutes") + ok.Integer(*v.IdleDisconnectTimeoutInMinutes) + } + if len(v.PasteAllowed) > 0 { ok := object.Key("pasteAllowed") ok.String(string(v.PasteAllowed)) @@ -3030,11 +3040,21 @@ func awsRestjson1_serializeOpDocumentUpdateUserSettingsInput(v *UpdateUserSettin ok.String(string(v.CopyAllowed)) } + if v.DisconnectTimeoutInMinutes != nil { + ok := object.Key("disconnectTimeoutInMinutes") + ok.Integer(*v.DisconnectTimeoutInMinutes) + } + if len(v.DownloadAllowed) > 0 { ok := object.Key("downloadAllowed") ok.String(string(v.DownloadAllowed)) } + if v.IdleDisconnectTimeoutInMinutes != nil { + ok := object.Key("idleDisconnectTimeoutInMinutes") + ok.Integer(*v.IdleDisconnectTimeoutInMinutes) + } + if len(v.PasteAllowed) > 0 { ok := object.Key("pasteAllowed") ok.String(string(v.PasteAllowed)) diff --git a/service/workspacesweb/types/types.go b/service/workspacesweb/types/types.go index a26b0c30911..2f4d4895136 100644 --- a/service/workspacesweb/types/types.go +++ b/service/workspacesweb/types/types.go @@ -365,10 +365,19 @@ type UserSettings struct { // device. CopyAllowed EnabledType + // The amount of time that a streaming session remains active after users + // disconnect. + DisconnectTimeoutInMinutes *int32 + // Specifies whether the user can download files from the streaming session to the // local device. DownloadAllowed EnabledType + // The amount of time that users can be idle (inactive) before they are + // disconnected from their streaming session and the disconnect timeout interval + // begins. + IdleDisconnectTimeoutInMinutes *int32 + // Specifies whether the user can paste text from the local device to the streaming // session. PasteAllowed EnabledType @@ -390,10 +399,19 @@ type UserSettingsSummary struct { // device. CopyAllowed EnabledType + // The amount of time that a streaming session remains active after users + // disconnect. + DisconnectTimeoutInMinutes *int32 + // Specifies whether the user can download files from the streaming session to the // local device. DownloadAllowed EnabledType + // The amount of time that users can be idle (inactive) before they are + // disconnected from their streaming session and the disconnect timeout interval + // begins. + IdleDisconnectTimeoutInMinutes *int32 + // Specifies whether the user can paste text from the local device to the streaming // session. PasteAllowed EnabledType