From 2b8aaa572f123e2cf53ecb121fb199b86a7c0242 Mon Sep 17 00:00:00 2001 From: AWS SDK for Go v2 automation user Date: Fri, 8 Sep 2023 18:13:58 +0000 Subject: [PATCH] Regenerated Clients --- .../44ae507acbaa4b6eb895abee44799ee0.json | 8 + .../912ba54afe134fc38dd832c81471eeb4.json | 8 + .../c4265f3219504dfc82fd979e05f2a3bb.json | 8 + .../d12c4e96722f49588a60d1c708897e47.json | 8 + service/fsx/api_op_CreateFileSystem.go | 2 +- service/fsx/types/types.go | 6 +- .../internal/endpoints/endpoints.go | 8 + service/sagemaker/api_op_CreateAutoMLJob.go | 6 +- service/sagemaker/api_op_CreateAutoMLJobV2.go | 6 +- service/sagemaker/deserializers.go | 79 +++++++ service/sagemaker/serializers.go | 32 +++ service/sagemaker/types/types.go | 25 ++- ...erManagedPolicyReferenceToPermissionSet.go | 4 +- ...i_op_AttachManagedPolicyToPermissionSet.go | 14 +- .../api_op_CreateAccountAssignment.go | 25 +-- .../ssoadmin/api_op_CreatePermissionSet.go | 7 +- .../api_op_DeleteAccountAssignment.go | 13 +- ..._op_DeleteInlinePolicyFromPermissionSet.go | 3 +- .../ssoadmin/api_op_DeletePermissionSet.go | 3 +- ...DescribeAccountAssignmentCreationStatus.go | 3 +- ...DescribeAccountAssignmentDeletionStatus.go | 3 +- .../ssoadmin/api_op_DescribePermissionSet.go | 5 +- ...DescribePermissionSetProvisioningStatus.go | 3 +- ...ManagedPolicyReferenceFromPermissionSet.go | 4 +- ...op_DetachManagedPolicyFromPermissionSet.go | 8 +- .../api_op_GetInlinePolicyForPermissionSet.go | 7 +- ..._op_ListAccountAssignmentCreationStatus.go | 7 +- ..._op_ListAccountAssignmentDeletionStatus.go | 7 +- .../ssoadmin/api_op_ListAccountAssignments.go | 13 +- ...ListAccountsForProvisionedPermissionSet.go | 14 +- ...i_op_ListManagedPoliciesInPermissionSet.go | 6 +- ..._op_ListPermissionSetProvisioningStatus.go | 3 +- service/ssoadmin/api_op_ListPermissionSets.go | 5 +- ..._ListPermissionSetsProvisionedToAccount.go | 11 +- .../ssoadmin/api_op_ListTagsForResource.go | 3 +- .../ssoadmin/api_op_ProvisionPermissionSet.go | 7 +- .../api_op_PutInlinePolicyToPermissionSet.go | 3 +- ...p_PutPermissionsBoundaryToPermissionSet.go | 4 +- service/ssoadmin/api_op_TagResource.go | 3 +- service/ssoadmin/api_op_UntagResource.go | 3 +- .../ssoadmin/api_op_UpdatePermissionSet.go | 3 +- service/ssoadmin/doc.go | 32 ++- service/ssoadmin/endpoints.go | 26 --- service/ssoadmin/endpoints_test.go | 192 +++++++++++++----- service/ssoadmin/types/types.go | 70 ++++--- service/workspaces/deserializers.go | 88 ++++++++ service/workspaces/types/enums.go | 67 ++++++ service/workspaces/types/types.go | 16 ++ 48 files changed, 663 insertions(+), 218 deletions(-) create mode 100644 .changelog/44ae507acbaa4b6eb895abee44799ee0.json create mode 100644 .changelog/912ba54afe134fc38dd832c81471eeb4.json create mode 100644 .changelog/c4265f3219504dfc82fd979e05f2a3bb.json create mode 100644 .changelog/d12c4e96722f49588a60d1c708897e47.json diff --git a/.changelog/44ae507acbaa4b6eb895abee44799ee0.json b/.changelog/44ae507acbaa4b6eb895abee44799ee0.json new file mode 100644 index 00000000000..99ff026e0b2 --- /dev/null +++ b/.changelog/44ae507acbaa4b6eb895abee44799ee0.json @@ -0,0 +1,8 @@ +{ + "id": "44ae507a-cbaa-4b6e-b895-abee44799ee0", + "type": "feature", + "description": "Content updates to IAM Identity Center API for China Regions.", + "modules": [ + "service/ssoadmin" + ] +} \ No newline at end of file diff --git a/.changelog/912ba54afe134fc38dd832c81471eeb4.json b/.changelog/912ba54afe134fc38dd832c81471eeb4.json new file mode 100644 index 00000000000..5aafc764b5c --- /dev/null +++ b/.changelog/912ba54afe134fc38dd832c81471eeb4.json @@ -0,0 +1,8 @@ +{ + "id": "912ba54a-fe13-4fc3-8dd8-32c81471eeb4", + "type": "documentation", + "description": "Amazon FSx documentation fixes", + "modules": [ + "service/fsx" + ] +} \ No newline at end of file diff --git a/.changelog/c4265f3219504dfc82fd979e05f2a3bb.json b/.changelog/c4265f3219504dfc82fd979e05f2a3bb.json new file mode 100644 index 00000000000..40879dc3933 --- /dev/null +++ b/.changelog/c4265f3219504dfc82fd979e05f2a3bb.json @@ -0,0 +1,8 @@ +{ + "id": "c4265f32-1950-4dfc-82fd-979e05f2a3bb", + "type": "feature", + "description": "A new field \"ErrorDetails\" will be added to the output of \"DescribeWorkspaceImages\" API call. This field provides in-depth details about the error occurred during image import process. These details include the possible causes of the errors and troubleshooting information.", + "modules": [ + "service/workspaces" + ] +} \ No newline at end of file diff --git a/.changelog/d12c4e96722f49588a60d1c708897e47.json b/.changelog/d12c4e96722f49588a60d1c708897e47.json new file mode 100644 index 00000000000..fc664a1af61 --- /dev/null +++ b/.changelog/d12c4e96722f49588a60d1c708897e47.json @@ -0,0 +1,8 @@ +{ + "id": "d12c4e96-722f-4958-8a60-d1c708897e47", + "type": "feature", + "description": "Autopilot APIs will now support holiday featurization for Timeseries models. The models will now hold holiday metadata and should be able to accommodate holiday effect during inference.", + "modules": [ + "service/sagemaker" + ] +} \ No newline at end of file diff --git a/service/fsx/api_op_CreateFileSystem.go b/service/fsx/api_op_CreateFileSystem.go index d961b0e8de8..01f31729f18 100644 --- a/service/fsx/api_op_CreateFileSystem.go +++ b/service/fsx/api_op_CreateFileSystem.go @@ -116,7 +116,7 @@ type CreateFileSystemInput struct { ClientRequestToken *string // (Optional) For FSx for Lustre file systems, sets the Lustre version for the - // file system that you're creating. Valid values are 2.10 , 2.12 m and 2.15 : + // file system that you're creating. Valid values are 2.10 , 2.12 , and 2.15 : // - 2.10 is supported by the Scratch and Persistent_1 Lustre deployment types. // - 2.12 and 2.15 are supported by all Lustre deployment types. 2.12 or 2.15 is // required when setting FSx for Lustre DeploymentType to PERSISTENT_2 . diff --git a/service/fsx/types/types.go b/service/fsx/types/types.go index ae9945a6efa..5e3e0503cd0 100644 --- a/service/fsx/types/types.go +++ b/service/fsx/types/types.go @@ -1334,8 +1334,8 @@ type DataRepositoryFailureDetails struct { // - You use import and export data repository tasks to perform bulk transfer // operations between an Amazon FSx for Lustre file system and a linked data // repository. -// - You use release data repository tasks to release have been exported to a -// linked S3 bucketed files from your Amazon FSx for Lustre file system. +// - You use release data repository tasks to release files that have been +// exported to a linked S3 bucket from your Amazon FSx for Lustre file system. // - An Amazon File Cache resource uses a task to automatically release files // from the cache. // @@ -2001,7 +2001,7 @@ type FileSystem struct { // OPENZFS . FileSystemType FileSystemType - // The Lustre version of the Amazon FSx for Lustre file system, which is 2.10 , + // The Lustre version of the Amazon FSx for Lustre file system, which can be 2.10 , // 2.12 , or 2.15 . FileSystemTypeVersion *string diff --git a/service/identitystore/internal/endpoints/endpoints.go b/service/identitystore/internal/endpoints/endpoints.go index 827c6d2e28e..59c0c424a6e 100644 --- a/service/identitystore/internal/endpoints/endpoints.go +++ b/service/identitystore/internal/endpoints/endpoints.go @@ -247,6 +247,14 @@ var defaultPartitions = endpoints.Partitions{ }, RegionRegex: partitionRegexp.AwsCn, IsRegionalized: true, + Endpoints: endpoints.Endpoints{ + endpoints.EndpointKey{ + Region: "cn-north-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "cn-northwest-1", + }: endpoints.Endpoint{}, + }, }, { ID: "aws-iso", diff --git a/service/sagemaker/api_op_CreateAutoMLJob.go b/service/sagemaker/api_op_CreateAutoMLJob.go index ddac48ccc21..2548d57bea2 100644 --- a/service/sagemaker/api_op_CreateAutoMLJob.go +++ b/service/sagemaker/api_op_CreateAutoMLJob.go @@ -21,9 +21,9 @@ import ( // and DescribeAutoMLJobV2 (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_DescribeAutoMLJobV2.html) // , which offer backward compatibility. CreateAutoMLJobV2 can manage tabular // problem types identical to those of its previous version CreateAutoMLJob , as -// well as non-tabular problem types such as image or text classification. Find -// guidelines about how to migrate a CreateAutoMLJob to CreateAutoMLJobV2 in -// Migrate a CreateAutoMLJob to CreateAutoMLJobV2 (https://docs.aws.amazon.com/sagemaker/latest/dg/autopilot-automate-model-development-create-experiment-api.html#autopilot-create-experiment-api-migrate-v1-v2) +// well as time-series forecasting, and non-tabular problem types such as image or +// text classification. Find guidelines about how to migrate a CreateAutoMLJob to +// CreateAutoMLJobV2 in Migrate a CreateAutoMLJob to CreateAutoMLJobV2 (https://docs.aws.amazon.com/sagemaker/latest/dg/autopilot-automate-model-development-create-experiment-api.html#autopilot-create-experiment-api-migrate-v1-v2) // . You can find the best-performing model after you run an AutoML job by calling // DescribeAutoMLJobV2 (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_DescribeAutoMLJobV2.html) // (recommended) or DescribeAutoMLJob (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_DescribeAutoMLJob.html) diff --git a/service/sagemaker/api_op_CreateAutoMLJobV2.go b/service/sagemaker/api_op_CreateAutoMLJobV2.go index a2cfd08632b..6f5d3395230 100644 --- a/service/sagemaker/api_op_CreateAutoMLJobV2.go +++ b/service/sagemaker/api_op_CreateAutoMLJobV2.go @@ -23,9 +23,9 @@ import ( // and DescribeAutoMLJob (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_DescribeAutoMLJob.html) // which offer backward compatibility. CreateAutoMLJobV2 can manage tabular // problem types identical to those of its previous version CreateAutoMLJob , as -// well as non-tabular problem types such as image or text classification. Find -// guidelines about how to migrate a CreateAutoMLJob to CreateAutoMLJobV2 in -// Migrate a CreateAutoMLJob to CreateAutoMLJobV2 (https://docs.aws.amazon.com/sagemaker/latest/dg/autopilot-automate-model-development-create-experiment-api.html#autopilot-create-experiment-api-migrate-v1-v2) +// well as time-series forecasting, and non-tabular problem types such as image or +// text classification. Find guidelines about how to migrate a CreateAutoMLJob to +// CreateAutoMLJobV2 in Migrate a CreateAutoMLJob to CreateAutoMLJobV2 (https://docs.aws.amazon.com/sagemaker/latest/dg/autopilot-automate-model-development-create-experiment-api.html#autopilot-create-experiment-api-migrate-v1-v2) // . For the list of available problem types supported by CreateAutoMLJobV2 , see // AutoMLProblemTypeConfig (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AutoMLProblemTypeConfig.html) // . You can find the best-performing model after you run an AutoML job V2 by diff --git a/service/sagemaker/deserializers.go b/service/sagemaker/deserializers.go index e1b989773b9..54e8e431125 100644 --- a/service/sagemaker/deserializers.go +++ b/service/sagemaker/deserializers.go @@ -46807,6 +46807,80 @@ func awsAwsjson11_deserializeDocumentGroups(v *[]string, value interface{}) erro return nil } +func awsAwsjson11_deserializeDocumentHolidayConfig(v *[]types.HolidayConfigAttributes, 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.HolidayConfigAttributes + if *v == nil { + cv = []types.HolidayConfigAttributes{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.HolidayConfigAttributes + destAddr := &col + if err := awsAwsjson11_deserializeDocumentHolidayConfigAttributes(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentHolidayConfigAttributes(v **types.HolidayConfigAttributes, 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.HolidayConfigAttributes + if *v == nil { + sv = &types.HolidayConfigAttributes{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CountryCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CountryCode to be of type string, got %T instead", value) + } + sv.CountryCode = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentHookParameters(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -69392,6 +69466,11 @@ func awsAwsjson11_deserializeDocumentTimeSeriesForecastingJobConfig(v **types.Ti return err } + case "HolidayConfig": + if err := awsAwsjson11_deserializeDocumentHolidayConfig(&sv.HolidayConfig, value); err != nil { + return err + } + case "TimeSeriesConfig": if err := awsAwsjson11_deserializeDocumentTimeSeriesConfig(&sv.TimeSeriesConfig, value); err != nil { return err diff --git a/service/sagemaker/serializers.go b/service/sagemaker/serializers.go index 5fbd16815ba..49ac30f18d3 100644 --- a/service/sagemaker/serializers.go +++ b/service/sagemaker/serializers.go @@ -20073,6 +20073,31 @@ func awsAwsjson11_serializeDocumentGroups(v []string, value smithyjson.Value) er return nil } +func awsAwsjson11_serializeDocumentHolidayConfig(v []types.HolidayConfigAttributes, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsAwsjson11_serializeDocumentHolidayConfigAttributes(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsAwsjson11_serializeDocumentHolidayConfigAttributes(v *types.HolidayConfigAttributes, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CountryCode != nil { + ok := object.Key("CountryCode") + ok.String(*v.CountryCode) + } + + return nil +} + func awsAwsjson11_serializeDocumentHookParameters(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -25330,6 +25355,13 @@ func awsAwsjson11_serializeDocumentTimeSeriesForecastingJobConfig(v *types.TimeS } } + if v.HolidayConfig != nil { + ok := object.Key("HolidayConfig") + if err := awsAwsjson11_serializeDocumentHolidayConfig(v.HolidayConfig, ok); err != nil { + return err + } + } + if v.TimeSeriesConfig != nil { ok := object.Key("TimeSeriesConfig") if err := awsAwsjson11_serializeDocumentTimeSeriesConfig(v.TimeSeriesConfig, ok); err != nil { diff --git a/service/sagemaker/types/types.go b/service/sagemaker/types/types.go index dc4d787821a..53500b075fb 100644 --- a/service/sagemaker/types/types.go +++ b/service/sagemaker/types/types.go @@ -1585,9 +1585,7 @@ type AutoMLProblemTypeConfigMemberTextClassificationJobConfig struct { func (*AutoMLProblemTypeConfigMemberTextClassificationJobConfig) isAutoMLProblemTypeConfig() {} // Settings used to configure an AutoML job V2 for a time-series forecasting -// problem type. The TimeSeriesForecastingJobConfig problem type is only available -// in private beta. Contact Amazon Web Services Support or your account manager to -// learn more about access privileges. +// problem type. type AutoMLProblemTypeConfigMemberTimeSeriesForecastingJobConfig struct { Value TimeSeriesForecastingJobConfig @@ -4887,6 +4885,19 @@ type GitConfigForUpdate struct { noSmithyDocumentSerde } +// Stores the holiday featurization attributes applicable to each item of +// time-series datasets during the training of a forecasting model. This allows the +// model to identify patterns associated with specific holidays. +type HolidayConfigAttributes struct { + + // The country code for the holiday calendar. For the list of public holiday + // calendars supported by AutoML job V2, see Country Codes (https://docs.aws.amazon.com/forecast/latest/dg/holidays.html#holidays-country-codes) + // . Use the country code corresponding to the country of your choice. + CountryCode *string + + noSmithyDocumentSerde +} + // Any dependencies related to hub content, such as scripts, model artifacts, // datasets, or notebooks. type HubContentDependency struct { @@ -13410,9 +13421,7 @@ type TimeSeriesConfig struct { } // The collection of settings used by an AutoML job V2 for the time-series -// forecasting problem type. The TimeSeriesForecastingJobConfig problem type is -// only available in private beta. Contact Amazon Web Services Support or your -// account manager to learn more about access privileges. +// forecasting problem type. type TimeSeriesForecastingJobConfig struct { // The frequency of predictions in a forecast. Valid intervals are an integer @@ -13468,6 +13477,10 @@ type TimeSeriesForecastingJobConfig struct { // and p90 as default. ForecastQuantiles []string + // The collection of holiday featurization attributes used to incorporate national + // holiday information into your forecasting model. + HolidayConfig []HolidayConfigAttributes + // The transformations modifying specific attributes of the time-series, such as // filling strategies for missing values. Transformations *TimeSeriesTransformations diff --git a/service/ssoadmin/api_op_AttachCustomerManagedPolicyReferenceToPermissionSet.go b/service/ssoadmin/api_op_AttachCustomerManagedPolicyReferenceToPermissionSet.go index 8a6b593a20e..e73dd337b30 100644 --- a/service/ssoadmin/api_op_AttachCustomerManagedPolicyReferenceToPermissionSet.go +++ b/service/ssoadmin/api_op_AttachCustomerManagedPolicyReferenceToPermissionSet.go @@ -35,8 +35,8 @@ func (c *Client) AttachCustomerManagedPolicyReferenceToPermissionSet(ctx context type AttachCustomerManagedPolicyReferenceToPermissionSetInput struct { // Specifies the name and path of a customer managed policy. You must have an IAM - // policy that matches the name and path in each AWS account where you want to - // deploy your permission set. + // policy that matches the name and path in each Amazon Web Services account where + // you want to deploy your permission set. // // This member is required. CustomerManagedPolicyReference *types.CustomerManagedPolicyReference diff --git a/service/ssoadmin/api_op_AttachManagedPolicyToPermissionSet.go b/service/ssoadmin/api_op_AttachManagedPolicyToPermissionSet.go index f7877e71591..b6c871c2fca 100644 --- a/service/ssoadmin/api_op_AttachManagedPolicyToPermissionSet.go +++ b/service/ssoadmin/api_op_AttachManagedPolicyToPermissionSet.go @@ -15,10 +15,11 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Attaches an AWS managed policy ARN to a permission set. If the permission set -// is already referenced by one or more account assignments, you will need to call -// ProvisionPermissionSet after this operation. Calling ProvisionPermissionSet -// applies the corresponding IAM policy updates to all assigned accounts. +// Attaches an Amazon Web Services managed policy ARN to a permission set. If the +// permission set is already referenced by one or more account assignments, you +// will need to call ProvisionPermissionSet after this operation. Calling +// ProvisionPermissionSet applies the corresponding IAM policy updates to all +// assigned accounts. func (c *Client) AttachManagedPolicyToPermissionSet(ctx context.Context, params *AttachManagedPolicyToPermissionSetInput, optFns ...func(*Options)) (*AttachManagedPolicyToPermissionSetOutput, error) { if params == nil { params = &AttachManagedPolicyToPermissionSetInput{} @@ -38,12 +39,13 @@ type AttachManagedPolicyToPermissionSetInput struct { // The ARN of the IAM Identity Center instance under which the operation will be // executed. For more information about ARNs, see Amazon Resource Names (ARNs) and - // AWS Service Namespaces in the AWS General Reference. + // Amazon Web Services Service Namespaces in the Amazon Web Services General + // Reference. // // This member is required. InstanceArn *string - // The AWS managed policy ARN to be attached to a permission set. + // The Amazon Web Services managed policy ARN to be attached to a permission set. // // This member is required. ManagedPolicyArn *string diff --git a/service/ssoadmin/api_op_CreateAccountAssignment.go b/service/ssoadmin/api_op_CreateAccountAssignment.go index 1dafecda922..acf090cd92c 100644 --- a/service/ssoadmin/api_op_CreateAccountAssignment.go +++ b/service/ssoadmin/api_op_CreateAccountAssignment.go @@ -16,15 +16,15 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Assigns access to a principal for a specified AWS account using a specified -// permission set. The term principal here refers to a user or group that is -// defined in IAM Identity Center. As part of a successful CreateAccountAssignment -// call, the specified permission set will automatically be provisioned to the -// account in the form of an IAM policy. That policy is attached to the IAM role -// created in IAM Identity Center. If the permission set is subsequently updated, -// the corresponding IAM policies attached to roles in your accounts will not be -// updated automatically. In this case, you must call ProvisionPermissionSet to -// make these updates. After a successful response, call +// Assigns access to a principal for a specified Amazon Web Services account using +// a specified permission set. The term principal here refers to a user or group +// that is defined in IAM Identity Center. As part of a successful +// CreateAccountAssignment call, the specified permission set will automatically be +// provisioned to the account in the form of an IAM policy. That policy is attached +// to the IAM role created in IAM Identity Center. If the permission set is +// subsequently updated, the corresponding IAM policies attached to roles in your +// accounts will not be updated automatically. In this case, you must call +// ProvisionPermissionSet to make these updates. After a successful response, call // DescribeAccountAssignmentCreationStatus to describe the status of an assignment // creation request. func (c *Client) CreateAccountAssignment(ctx context.Context, params *CreateAccountAssignmentInput, optFns ...func(*Options)) (*CreateAccountAssignmentOutput, error) { @@ -46,7 +46,8 @@ type CreateAccountAssignmentInput struct { // The ARN of the IAM Identity Center instance under which the operation will be // executed. For more information about ARNs, see Amazon Resource Names (ARNs) and - // AWS Service Namespaces in the AWS General Reference. + // Amazon Web Services Service Namespaces in the Amazon Web Services General + // Reference. // // This member is required. InstanceArn *string @@ -70,8 +71,8 @@ type CreateAccountAssignmentInput struct { // This member is required. PrincipalType types.PrincipalType - // TargetID is an AWS account identifier, typically a 10-12 digit string (For - // example, 123456789012). + // TargetID is an Amazon Web Services account identifier, (For example, + // 123456789012). // // This member is required. TargetId *string diff --git a/service/ssoadmin/api_op_CreatePermissionSet.go b/service/ssoadmin/api_op_CreatePermissionSet.go index b01cf646c31..4e1e1b11ae8 100644 --- a/service/ssoadmin/api_op_CreatePermissionSet.go +++ b/service/ssoadmin/api_op_CreatePermissionSet.go @@ -17,7 +17,7 @@ import ( ) // Creates a permission set within a specified IAM Identity Center instance. To -// grant users and groups access to AWS account resources, use +// grant users and groups access to Amazon Web Services account resources, use // CreateAccountAssignment . func (c *Client) CreatePermissionSet(ctx context.Context, params *CreatePermissionSetInput, optFns ...func(*Options)) (*CreatePermissionSetOutput, error) { if params == nil { @@ -38,7 +38,8 @@ type CreatePermissionSetInput struct { // The ARN of the IAM Identity Center instance under which the operation will be // executed. For more information about ARNs, see Amazon Resource Names (ARNs) and - // AWS Service Namespaces in the AWS General Reference. + // Amazon Web Services Service Namespaces in the Amazon Web Services General + // Reference. // // This member is required. InstanceArn *string @@ -67,7 +68,7 @@ type CreatePermissionSetInput struct { type CreatePermissionSetOutput struct { - // Defines the level of access on an AWS account. + // Defines the level of access on an Amazon Web Services account. PermissionSet *types.PermissionSet // Metadata pertaining to the operation's result. diff --git a/service/ssoadmin/api_op_DeleteAccountAssignment.go b/service/ssoadmin/api_op_DeleteAccountAssignment.go index 45babc8372d..178fbbbc65b 100644 --- a/service/ssoadmin/api_op_DeleteAccountAssignment.go +++ b/service/ssoadmin/api_op_DeleteAccountAssignment.go @@ -16,9 +16,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes a principal's access from a specified AWS account using a specified -// permission set. After a successful response, call -// DescribeAccountAssignmentCreationStatus to describe the status of an assignment +// Deletes a principal's access from a specified Amazon Web Services account using +// a specified permission set. After a successful response, call +// DescribeAccountAssignmentDeletionStatus to describe the status of an assignment // deletion request. func (c *Client) DeleteAccountAssignment(ctx context.Context, params *DeleteAccountAssignmentInput, optFns ...func(*Options)) (*DeleteAccountAssignmentOutput, error) { if params == nil { @@ -39,7 +39,8 @@ type DeleteAccountAssignmentInput struct { // The ARN of the IAM Identity Center instance under which the operation will be // executed. For more information about ARNs, see Amazon Resource Names (ARNs) and - // AWS Service Namespaces in the AWS General Reference. + // Amazon Web Services Service Namespaces in the Amazon Web Services General + // Reference. // // This member is required. InstanceArn *string @@ -62,8 +63,8 @@ type DeleteAccountAssignmentInput struct { // This member is required. PrincipalType types.PrincipalType - // TargetID is an AWS account identifier, typically a 10-12 digit string (For - // example, 123456789012). + // TargetID is an Amazon Web Services account identifier, (For example, + // 123456789012). // // This member is required. TargetId *string diff --git a/service/ssoadmin/api_op_DeleteInlinePolicyFromPermissionSet.go b/service/ssoadmin/api_op_DeleteInlinePolicyFromPermissionSet.go index 1f7b47335c3..d5238987130 100644 --- a/service/ssoadmin/api_op_DeleteInlinePolicyFromPermissionSet.go +++ b/service/ssoadmin/api_op_DeleteInlinePolicyFromPermissionSet.go @@ -35,7 +35,8 @@ type DeleteInlinePolicyFromPermissionSetInput struct { // The ARN of the IAM Identity Center instance under which the operation will be // executed. For more information about ARNs, see Amazon Resource Names (ARNs) and - // AWS Service Namespaces in the AWS General Reference. + // Amazon Web Services Service Namespaces in the Amazon Web Services General + // Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_DeletePermissionSet.go b/service/ssoadmin/api_op_DeletePermissionSet.go index cfd16317704..5cee8123409 100644 --- a/service/ssoadmin/api_op_DeletePermissionSet.go +++ b/service/ssoadmin/api_op_DeletePermissionSet.go @@ -35,7 +35,8 @@ type DeletePermissionSetInput struct { // The ARN of the IAM Identity Center instance under which the operation will be // executed. For more information about ARNs, see Amazon Resource Names (ARNs) and - // AWS Service Namespaces in the AWS General Reference. + // Amazon Web Services Service Namespaces in the Amazon Web Services General + // Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_DescribeAccountAssignmentCreationStatus.go b/service/ssoadmin/api_op_DescribeAccountAssignmentCreationStatus.go index c2157aaac9e..a83d3ab3ce1 100644 --- a/service/ssoadmin/api_op_DescribeAccountAssignmentCreationStatus.go +++ b/service/ssoadmin/api_op_DescribeAccountAssignmentCreationStatus.go @@ -41,7 +41,8 @@ type DescribeAccountAssignmentCreationStatusInput struct { // The ARN of the IAM Identity Center instance under which the operation will be // executed. For more information about ARNs, see Amazon Resource Names (ARNs) and - // AWS Service Namespaces in the AWS General Reference. + // Amazon Web Services Service Namespaces in the Amazon Web Services General + // Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_DescribeAccountAssignmentDeletionStatus.go b/service/ssoadmin/api_op_DescribeAccountAssignmentDeletionStatus.go index 5928db78350..2e597f21199 100644 --- a/service/ssoadmin/api_op_DescribeAccountAssignmentDeletionStatus.go +++ b/service/ssoadmin/api_op_DescribeAccountAssignmentDeletionStatus.go @@ -41,7 +41,8 @@ type DescribeAccountAssignmentDeletionStatusInput struct { // The ARN of the IAM Identity Center instance under which the operation will be // executed. For more information about ARNs, see Amazon Resource Names (ARNs) and - // AWS Service Namespaces in the AWS General Reference. + // Amazon Web Services Service Namespaces in the Amazon Web Services General + // Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_DescribePermissionSet.go b/service/ssoadmin/api_op_DescribePermissionSet.go index b43cc690fcd..2517ea90b04 100644 --- a/service/ssoadmin/api_op_DescribePermissionSet.go +++ b/service/ssoadmin/api_op_DescribePermissionSet.go @@ -36,7 +36,8 @@ type DescribePermissionSetInput struct { // The ARN of the IAM Identity Center instance under which the operation will be // executed. For more information about ARNs, see Amazon Resource Names (ARNs) and - // AWS Service Namespaces in the AWS General Reference. + // Amazon Web Services Service Namespaces in the Amazon Web Services General + // Reference. // // This member is required. InstanceArn *string @@ -51,7 +52,7 @@ type DescribePermissionSetInput struct { type DescribePermissionSetOutput struct { - // Describes the level of access on an AWS account. + // Describes the level of access on an Amazon Web Services account. PermissionSet *types.PermissionSet // Metadata pertaining to the operation's result. diff --git a/service/ssoadmin/api_op_DescribePermissionSetProvisioningStatus.go b/service/ssoadmin/api_op_DescribePermissionSetProvisioningStatus.go index 623e5dedd09..1c801c61e10 100644 --- a/service/ssoadmin/api_op_DescribePermissionSetProvisioningStatus.go +++ b/service/ssoadmin/api_op_DescribePermissionSetProvisioningStatus.go @@ -36,7 +36,8 @@ type DescribePermissionSetProvisioningStatusInput struct { // The ARN of the IAM Identity Center instance under which the operation will be // executed. For more information about ARNs, see Amazon Resource Names (ARNs) and - // AWS Service Namespaces in the AWS General Reference. + // Amazon Web Services Service Namespaces in the Amazon Web Services General + // Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_DetachCustomerManagedPolicyReferenceFromPermissionSet.go b/service/ssoadmin/api_op_DetachCustomerManagedPolicyReferenceFromPermissionSet.go index b5baf2dfe8f..541f74d36c0 100644 --- a/service/ssoadmin/api_op_DetachCustomerManagedPolicyReferenceFromPermissionSet.go +++ b/service/ssoadmin/api_op_DetachCustomerManagedPolicyReferenceFromPermissionSet.go @@ -35,8 +35,8 @@ func (c *Client) DetachCustomerManagedPolicyReferenceFromPermissionSet(ctx conte type DetachCustomerManagedPolicyReferenceFromPermissionSetInput struct { // Specifies the name and path of a customer managed policy. You must have an IAM - // policy that matches the name and path in each AWS account where you want to - // deploy your permission set. + // policy that matches the name and path in each Amazon Web Services account where + // you want to deploy your permission set. // // This member is required. CustomerManagedPolicyReference *types.CustomerManagedPolicyReference diff --git a/service/ssoadmin/api_op_DetachManagedPolicyFromPermissionSet.go b/service/ssoadmin/api_op_DetachManagedPolicyFromPermissionSet.go index c783bdbb7ab..2b6eada024c 100644 --- a/service/ssoadmin/api_op_DetachManagedPolicyFromPermissionSet.go +++ b/service/ssoadmin/api_op_DetachManagedPolicyFromPermissionSet.go @@ -15,7 +15,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Detaches the attached AWS managed policy ARN from the specified permission set. +// Detaches the attached Amazon Web Services managed policy ARN from the specified +// permission set. func (c *Client) DetachManagedPolicyFromPermissionSet(ctx context.Context, params *DetachManagedPolicyFromPermissionSetInput, optFns ...func(*Options)) (*DetachManagedPolicyFromPermissionSetOutput, error) { if params == nil { params = &DetachManagedPolicyFromPermissionSetInput{} @@ -35,12 +36,13 @@ type DetachManagedPolicyFromPermissionSetInput struct { // The ARN of the IAM Identity Center instance under which the operation will be // executed. For more information about ARNs, see Amazon Resource Names (ARNs) and - // AWS Service Namespaces in the AWS General Reference. + // Amazon Web Services Service Namespaces in the Amazon Web Services General + // Reference. // // This member is required. InstanceArn *string - // The AWS managed policy ARN to be detached from a permission set. + // The Amazon Web Services managed policy ARN to be detached from a permission set. // // This member is required. ManagedPolicyArn *string diff --git a/service/ssoadmin/api_op_GetInlinePolicyForPermissionSet.go b/service/ssoadmin/api_op_GetInlinePolicyForPermissionSet.go index b1e36ca3aa3..6b6b336c3a0 100644 --- a/service/ssoadmin/api_op_GetInlinePolicyForPermissionSet.go +++ b/service/ssoadmin/api_op_GetInlinePolicyForPermissionSet.go @@ -35,7 +35,8 @@ type GetInlinePolicyForPermissionSetInput struct { // The ARN of the IAM Identity Center instance under which the operation will be // executed. For more information about ARNs, see Amazon Resource Names (ARNs) and - // AWS Service Namespaces in the AWS General Reference. + // Amazon Web Services Service Namespaces in the Amazon Web Services General + // Reference. // // This member is required. InstanceArn *string @@ -50,7 +51,9 @@ type GetInlinePolicyForPermissionSetInput struct { type GetInlinePolicyForPermissionSetOutput struct { - // The inline policy that is attached to the permission set. + // The inline policy that is attached to the permission set. For Length Constraints + // , if a valid ARN is provided for a permission set, it is possible for an empty + // inline policy to be returned. InlinePolicy *string // Metadata pertaining to the operation's result. diff --git a/service/ssoadmin/api_op_ListAccountAssignmentCreationStatus.go b/service/ssoadmin/api_op_ListAccountAssignmentCreationStatus.go index 2c906b2ef85..74abe33d6f6 100644 --- a/service/ssoadmin/api_op_ListAccountAssignmentCreationStatus.go +++ b/service/ssoadmin/api_op_ListAccountAssignmentCreationStatus.go @@ -16,8 +16,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists the status of the AWS account assignment creation requests for a -// specified IAM Identity Center instance. +// Lists the status of the Amazon Web Services account assignment creation +// requests for a specified IAM Identity Center instance. func (c *Client) ListAccountAssignmentCreationStatus(ctx context.Context, params *ListAccountAssignmentCreationStatusInput, optFns ...func(*Options)) (*ListAccountAssignmentCreationStatusOutput, error) { if params == nil { params = &ListAccountAssignmentCreationStatusInput{} @@ -37,7 +37,8 @@ type ListAccountAssignmentCreationStatusInput struct { // The ARN of the IAM Identity Center instance under which the operation will be // executed. For more information about ARNs, see Amazon Resource Names (ARNs) and - // AWS Service Namespaces in the AWS General Reference. + // Amazon Web Services Service Namespaces in the Amazon Web Services General + // Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_ListAccountAssignmentDeletionStatus.go b/service/ssoadmin/api_op_ListAccountAssignmentDeletionStatus.go index 9936321e5ec..98c469897c0 100644 --- a/service/ssoadmin/api_op_ListAccountAssignmentDeletionStatus.go +++ b/service/ssoadmin/api_op_ListAccountAssignmentDeletionStatus.go @@ -16,8 +16,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists the status of the AWS account assignment deletion requests for a -// specified IAM Identity Center instance. +// Lists the status of the Amazon Web Services account assignment deletion +// requests for a specified IAM Identity Center instance. func (c *Client) ListAccountAssignmentDeletionStatus(ctx context.Context, params *ListAccountAssignmentDeletionStatusInput, optFns ...func(*Options)) (*ListAccountAssignmentDeletionStatusOutput, error) { if params == nil { params = &ListAccountAssignmentDeletionStatusInput{} @@ -37,7 +37,8 @@ type ListAccountAssignmentDeletionStatusInput struct { // The ARN of the IAM Identity Center instance under which the operation will be // executed. For more information about ARNs, see Amazon Resource Names (ARNs) and - // AWS Service Namespaces in the AWS General Reference. + // Amazon Web Services Service Namespaces in the Amazon Web Services General + // Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_ListAccountAssignments.go b/service/ssoadmin/api_op_ListAccountAssignments.go index 8bdaa0c5253..735a1d41550 100644 --- a/service/ssoadmin/api_op_ListAccountAssignments.go +++ b/service/ssoadmin/api_op_ListAccountAssignments.go @@ -16,8 +16,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists the assignee of the specified AWS account with the specified permission -// set. +// Lists the assignee of the specified Amazon Web Services account with the +// specified permission set. func (c *Client) ListAccountAssignments(ctx context.Context, params *ListAccountAssignmentsInput, optFns ...func(*Options)) (*ListAccountAssignmentsOutput, error) { if params == nil { params = &ListAccountAssignmentsInput{} @@ -35,14 +35,16 @@ func (c *Client) ListAccountAssignments(ctx context.Context, params *ListAccount type ListAccountAssignmentsInput struct { - // The identifier of the AWS account from which to list the assignments. + // The identifier of the Amazon Web Services account from which to list the + // assignments. // // This member is required. AccountId *string // The ARN of the IAM Identity Center instance under which the operation will be // executed. For more information about ARNs, see Amazon Resource Names (ARNs) and - // AWS Service Namespaces in the AWS General Reference. + // Amazon Web Services Service Namespaces in the Amazon Web Services General + // Reference. // // This member is required. InstanceArn *string @@ -64,7 +66,8 @@ type ListAccountAssignmentsInput struct { type ListAccountAssignmentsOutput struct { - // The list of assignments that match the input AWS account and permission set. + // The list of assignments that match the input Amazon Web Services account and + // permission set. AccountAssignments []types.AccountAssignment // The pagination token for the list API. Initially the value is null. Use the diff --git a/service/ssoadmin/api_op_ListAccountsForProvisionedPermissionSet.go b/service/ssoadmin/api_op_ListAccountsForProvisionedPermissionSet.go index 963a4745f56..c47ae10d20b 100644 --- a/service/ssoadmin/api_op_ListAccountsForProvisionedPermissionSet.go +++ b/service/ssoadmin/api_op_ListAccountsForProvisionedPermissionSet.go @@ -16,7 +16,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists all the AWS accounts where the specified permission set is provisioned. +// Lists all the Amazon Web Services accounts where the specified permission set +// is provisioned. func (c *Client) ListAccountsForProvisionedPermissionSet(ctx context.Context, params *ListAccountsForProvisionedPermissionSetInput, optFns ...func(*Options)) (*ListAccountsForProvisionedPermissionSetOutput, error) { if params == nil { params = &ListAccountsForProvisionedPermissionSetInput{} @@ -36,13 +37,14 @@ type ListAccountsForProvisionedPermissionSetInput struct { // The ARN of the IAM Identity Center instance under which the operation will be // executed. For more information about ARNs, see Amazon Resource Names (ARNs) and - // AWS Service Namespaces in the AWS General Reference. + // Amazon Web Services Service Namespaces in the Amazon Web Services General + // Reference. // // This member is required. InstanceArn *string - // The ARN of the PermissionSet from which the associated AWS accounts will be - // listed. + // The ARN of the PermissionSet from which the associated Amazon Web Services + // accounts will be listed. // // This member is required. PermissionSetArn *string @@ -54,7 +56,7 @@ type ListAccountsForProvisionedPermissionSetInput struct { // output of previous API calls to make subsequent calls. NextToken *string - // The permission set provisioning status for an AWS account. + // The permission set provisioning status for an Amazon Web Services account. ProvisioningStatus types.ProvisioningStatus noSmithyDocumentSerde @@ -62,7 +64,7 @@ type ListAccountsForProvisionedPermissionSetInput struct { type ListAccountsForProvisionedPermissionSetOutput struct { - // The list of AWS AccountIds . + // The list of Amazon Web Services AccountIds . AccountIds []string // The pagination token for the list API. Initially the value is null. Use the diff --git a/service/ssoadmin/api_op_ListManagedPoliciesInPermissionSet.go b/service/ssoadmin/api_op_ListManagedPoliciesInPermissionSet.go index bc843ccd575..d4ba7a1420c 100644 --- a/service/ssoadmin/api_op_ListManagedPoliciesInPermissionSet.go +++ b/service/ssoadmin/api_op_ListManagedPoliciesInPermissionSet.go @@ -16,7 +16,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists the AWS managed policy that is attached to a specified permission set. +// Lists the Amazon Web Services managed policy that is attached to a specified +// permission set. func (c *Client) ListManagedPoliciesInPermissionSet(ctx context.Context, params *ListManagedPoliciesInPermissionSetInput, optFns ...func(*Options)) (*ListManagedPoliciesInPermissionSetOutput, error) { if params == nil { params = &ListManagedPoliciesInPermissionSetInput{} @@ -36,7 +37,8 @@ type ListManagedPoliciesInPermissionSetInput struct { // The ARN of the IAM Identity Center instance under which the operation will be // executed. For more information about ARNs, see Amazon Resource Names (ARNs) and - // AWS Service Namespaces in the AWS General Reference. + // Amazon Web Services Service Namespaces in the Amazon Web Services General + // Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_ListPermissionSetProvisioningStatus.go b/service/ssoadmin/api_op_ListPermissionSetProvisioningStatus.go index ee5e0fd39b4..4303bba9dc0 100644 --- a/service/ssoadmin/api_op_ListPermissionSetProvisioningStatus.go +++ b/service/ssoadmin/api_op_ListPermissionSetProvisioningStatus.go @@ -37,7 +37,8 @@ type ListPermissionSetProvisioningStatusInput struct { // The ARN of the IAM Identity Center instance under which the operation will be // executed. For more information about ARNs, see Amazon Resource Names (ARNs) and - // AWS Service Namespaces in the AWS General Reference. + // Amazon Web Services Service Namespaces in the Amazon Web Services General + // Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_ListPermissionSets.go b/service/ssoadmin/api_op_ListPermissionSets.go index 9bf9db5870d..cbc7eca17b5 100644 --- a/service/ssoadmin/api_op_ListPermissionSets.go +++ b/service/ssoadmin/api_op_ListPermissionSets.go @@ -35,7 +35,8 @@ type ListPermissionSetsInput struct { // The ARN of the IAM Identity Center instance under which the operation will be // executed. For more information about ARNs, see Amazon Resource Names (ARNs) and - // AWS Service Namespaces in the AWS General Reference. + // Amazon Web Services Service Namespaces in the Amazon Web Services General + // Reference. // // This member is required. InstanceArn *string @@ -56,7 +57,7 @@ type ListPermissionSetsOutput struct { // output of previous API calls to make subsequent calls. NextToken *string - // Defines the level of access on an AWS account. + // Defines the level of access on an Amazon Web Services account. PermissionSets []string // Metadata pertaining to the operation's result. diff --git a/service/ssoadmin/api_op_ListPermissionSetsProvisionedToAccount.go b/service/ssoadmin/api_op_ListPermissionSetsProvisionedToAccount.go index 9f8bda0b085..fd56d6bad91 100644 --- a/service/ssoadmin/api_op_ListPermissionSetsProvisionedToAccount.go +++ b/service/ssoadmin/api_op_ListPermissionSetsProvisionedToAccount.go @@ -16,7 +16,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists all the permission sets that are provisioned to a specified AWS account. +// Lists all the permission sets that are provisioned to a specified Amazon Web +// Services account. func (c *Client) ListPermissionSetsProvisionedToAccount(ctx context.Context, params *ListPermissionSetsProvisionedToAccountInput, optFns ...func(*Options)) (*ListPermissionSetsProvisionedToAccountOutput, error) { if params == nil { params = &ListPermissionSetsProvisionedToAccountInput{} @@ -34,14 +35,16 @@ func (c *Client) ListPermissionSetsProvisionedToAccount(ctx context.Context, par type ListPermissionSetsProvisionedToAccountInput struct { - // The identifier of the AWS account from which to list the assignments. + // The identifier of the Amazon Web Services account from which to list the + // assignments. // // This member is required. AccountId *string // The ARN of the IAM Identity Center instance under which the operation will be // executed. For more information about ARNs, see Amazon Resource Names (ARNs) and - // AWS Service Namespaces in the AWS General Reference. + // Amazon Web Services Service Namespaces in the Amazon Web Services General + // Reference. // // This member is required. InstanceArn *string @@ -65,7 +68,7 @@ type ListPermissionSetsProvisionedToAccountOutput struct { // output of previous API calls to make subsequent calls. NextToken *string - // Defines the level of access that an AWS account has. + // Defines the level of access that an Amazon Web Services account has. PermissionSets []string // Metadata pertaining to the operation's result. diff --git a/service/ssoadmin/api_op_ListTagsForResource.go b/service/ssoadmin/api_op_ListTagsForResource.go index 62839544cbe..ecffcf6c87f 100644 --- a/service/ssoadmin/api_op_ListTagsForResource.go +++ b/service/ssoadmin/api_op_ListTagsForResource.go @@ -36,7 +36,8 @@ type ListTagsForResourceInput struct { // The ARN of the IAM Identity Center instance under which the operation will be // executed. For more information about ARNs, see Amazon Resource Names (ARNs) and - // AWS Service Namespaces in the AWS General Reference. + // Amazon Web Services Service Namespaces in the Amazon Web Services General + // Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_ProvisionPermissionSet.go b/service/ssoadmin/api_op_ProvisionPermissionSet.go index 8bb34d1dcb4..a90551775be 100644 --- a/service/ssoadmin/api_op_ProvisionPermissionSet.go +++ b/service/ssoadmin/api_op_ProvisionPermissionSet.go @@ -37,7 +37,8 @@ type ProvisionPermissionSetInput struct { // The ARN of the IAM Identity Center instance under which the operation will be // executed. For more information about ARNs, see Amazon Resource Names (ARNs) and - // AWS Service Namespaces in the AWS General Reference. + // Amazon Web Services Service Namespaces in the Amazon Web Services General + // Reference. // // This member is required. InstanceArn *string @@ -52,8 +53,8 @@ type ProvisionPermissionSetInput struct { // This member is required. TargetType types.ProvisionTargetType - // TargetID is an AWS account identifier, typically a 10-12 digit string (For - // example, 123456789012). + // TargetID is an Amazon Web Services account identifier, (For example, + // 123456789012). TargetId *string noSmithyDocumentSerde diff --git a/service/ssoadmin/api_op_PutInlinePolicyToPermissionSet.go b/service/ssoadmin/api_op_PutInlinePolicyToPermissionSet.go index 523e3e108aa..2a2cc50ffa9 100644 --- a/service/ssoadmin/api_op_PutInlinePolicyToPermissionSet.go +++ b/service/ssoadmin/api_op_PutInlinePolicyToPermissionSet.go @@ -43,7 +43,8 @@ type PutInlinePolicyToPermissionSetInput struct { // The ARN of the IAM Identity Center instance under which the operation will be // executed. For more information about ARNs, see Amazon Resource Names (ARNs) and - // AWS Service Namespaces in the AWS General Reference. + // Amazon Web Services Service Namespaces in the Amazon Web Services General + // Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_PutPermissionsBoundaryToPermissionSet.go b/service/ssoadmin/api_op_PutPermissionsBoundaryToPermissionSet.go index c0a34821876..bfc927b0712 100644 --- a/service/ssoadmin/api_op_PutPermissionsBoundaryToPermissionSet.go +++ b/service/ssoadmin/api_op_PutPermissionsBoundaryToPermissionSet.go @@ -16,8 +16,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Attaches an AWS managed or customer managed policy to the specified -// PermissionSet as a permissions boundary. +// Attaches an Amazon Web Services managed or customer managed policy to the +// specified PermissionSet as a permissions boundary. func (c *Client) PutPermissionsBoundaryToPermissionSet(ctx context.Context, params *PutPermissionsBoundaryToPermissionSetInput, optFns ...func(*Options)) (*PutPermissionsBoundaryToPermissionSetOutput, error) { if params == nil { params = &PutPermissionsBoundaryToPermissionSetInput{} diff --git a/service/ssoadmin/api_op_TagResource.go b/service/ssoadmin/api_op_TagResource.go index 7051a99e821..cd3ab1f5446 100644 --- a/service/ssoadmin/api_op_TagResource.go +++ b/service/ssoadmin/api_op_TagResource.go @@ -36,7 +36,8 @@ type TagResourceInput struct { // The ARN of the IAM Identity Center instance under which the operation will be // executed. For more information about ARNs, see Amazon Resource Names (ARNs) and - // AWS Service Namespaces in the AWS General Reference. + // Amazon Web Services Service Namespaces in the Amazon Web Services General + // Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_UntagResource.go b/service/ssoadmin/api_op_UntagResource.go index 2fc759b6883..9fa898c495b 100644 --- a/service/ssoadmin/api_op_UntagResource.go +++ b/service/ssoadmin/api_op_UntagResource.go @@ -35,7 +35,8 @@ type UntagResourceInput struct { // The ARN of the IAM Identity Center instance under which the operation will be // executed. For more information about ARNs, see Amazon Resource Names (ARNs) and - // AWS Service Namespaces in the AWS General Reference. + // Amazon Web Services Service Namespaces in the Amazon Web Services General + // Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_UpdatePermissionSet.go b/service/ssoadmin/api_op_UpdatePermissionSet.go index 2a0db181526..e81f738385c 100644 --- a/service/ssoadmin/api_op_UpdatePermissionSet.go +++ b/service/ssoadmin/api_op_UpdatePermissionSet.go @@ -35,7 +35,8 @@ type UpdatePermissionSetInput struct { // The ARN of the IAM Identity Center instance under which the operation will be // executed. For more information about ARNs, see Amazon Resource Names (ARNs) and - // AWS Service Namespaces in the AWS General Reference. + // Amazon Web Services Service Namespaces in the Amazon Web Services General + // Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/doc.go b/service/ssoadmin/doc.go index e52767e993e..84afe08f7a7 100644 --- a/service/ssoadmin/doc.go +++ b/service/ssoadmin/doc.go @@ -3,25 +3,23 @@ // Package ssoadmin provides the API client, operations, and parameter types for // AWS Single Sign-On Admin. // -// AWS IAM Identity Center (successor to AWS Single Sign-On) helps you securely -// create, or connect, your workforce identities and manage their access centrally -// across AWS accounts and applications. IAM Identity Center is the recommended -// approach for workforce authentication and authorization in AWS, for -// organizations of any size and type. Although AWS Single Sign-On was renamed, the -// sso and identitystore API namespaces will continue to retain their original -// name for backward compatibility purposes. For more information, see IAM -// Identity Center rename (https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html#renamed) -// . This reference guide provides information on single sign-on operations which -// could be used for access management of AWS accounts. For information about IAM -// Identity Center features, see the IAM Identity Center User Guide (https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html) +// IAM Identity Center (successor to Single Sign-On) helps you securely create, or +// connect, your workforce identities and manage their access centrally across +// Amazon Web Services accounts and applications. IAM Identity Center is the +// recommended approach for workforce authentication and authorization in Amazon +// Web Services, for organizations of any size and type. IAM Identity Center uses +// the sso and identitystore API namespaces. This reference guide provides +// information on single sign-on operations which could be used for access +// management of Amazon Web Services accounts. For information about IAM Identity +// Center features, see the IAM Identity Center User Guide (https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html) // . Many operations in the IAM Identity Center APIs rely on identifiers for users // and groups, known as principals. For more information about how to work with // principals and principal IDs in IAM Identity Center, see the Identity Store API // Reference (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/welcome.html) -// . AWS provides SDKs that consist of libraries and sample code for various -// programming languages and platforms (Java, Ruby, .Net, iOS, Android, and more). -// The SDKs provide a convenient way to create programmatic access to IAM Identity -// Center and other AWS services. For more information about the AWS SDKs, -// including how to download and install them, see Tools for Amazon Web Services (http://aws.amazon.com/tools/) -// . +// . Amazon Web Services provides SDKs that consist of libraries and sample code +// for various programming languages and platforms (Java, Ruby, .Net, iOS, Android, +// and more). The SDKs provide a convenient way to create programmatic access to +// IAM Identity Center and other Amazon Web Services services. For more information +// about the Amazon Web Services SDKs, including how to download and install them, +// see Tools for Amazon Web Services (http://aws.amazon.com/tools/) . package ssoadmin diff --git a/service/ssoadmin/endpoints.go b/service/ssoadmin/endpoints.go index 76774004aa2..72ceb17b485 100644 --- a/service/ssoadmin/endpoints.go +++ b/service/ssoadmin/endpoints.go @@ -474,32 +474,6 @@ func (r *resolver) ResolveEndpoint( } return endpoint, fmt.Errorf("endpoint rule error, %s", "DualStack is enabled but this partition does not support DualStack") } - if _Region == "us-gov-east-1" { - uriString := "https://sso.us-gov-east-1.amazonaws.com" - - uri, err := url.Parse(uriString) - if err != nil { - return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString) - } - - return smithyendpoints.Endpoint{ - URI: *uri, - Headers: http.Header{}, - }, nil - } - if _Region == "us-gov-west-1" { - uriString := "https://sso.us-gov-west-1.amazonaws.com" - - uri, err := url.Parse(uriString) - if err != nil { - return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString) - } - - return smithyendpoints.Endpoint{ - URI: *uri, - Headers: http.Header{}, - }, nil - } uriString := func() string { var out strings.Builder out.WriteString("https://sso.") diff --git a/service/ssoadmin/endpoints_test.go b/service/ssoadmin/endpoints_test.go index 19e786f1a4e..197ba56a109 100644 --- a/service/ssoadmin/endpoints_test.go +++ b/service/ssoadmin/endpoints_test.go @@ -18,8 +18,8 @@ import ( func TestEndpointCase0(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("ap-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -57,8 +57,8 @@ func TestEndpointCase0(t *testing.T) { func TestEndpointCase1(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("ap-northeast-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -96,8 +96,8 @@ func TestEndpointCase1(t *testing.T) { func TestEndpointCase2(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("ap-northeast-2"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -135,8 +135,8 @@ func TestEndpointCase2(t *testing.T) { func TestEndpointCase3(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("ap-northeast-3"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -174,8 +174,8 @@ func TestEndpointCase3(t *testing.T) { func TestEndpointCase4(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("ap-south-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -213,8 +213,8 @@ func TestEndpointCase4(t *testing.T) { func TestEndpointCase5(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("ap-southeast-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -252,8 +252,8 @@ func TestEndpointCase5(t *testing.T) { func TestEndpointCase6(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("ap-southeast-2"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -291,8 +291,8 @@ func TestEndpointCase6(t *testing.T) { func TestEndpointCase7(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("ca-central-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -330,8 +330,8 @@ func TestEndpointCase7(t *testing.T) { func TestEndpointCase8(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("eu-central-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -369,8 +369,8 @@ func TestEndpointCase8(t *testing.T) { func TestEndpointCase9(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("eu-north-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -408,8 +408,8 @@ func TestEndpointCase9(t *testing.T) { func TestEndpointCase10(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("eu-south-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -447,8 +447,8 @@ func TestEndpointCase10(t *testing.T) { func TestEndpointCase11(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("eu-west-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -486,8 +486,8 @@ func TestEndpointCase11(t *testing.T) { func TestEndpointCase12(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("eu-west-2"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -525,8 +525,8 @@ func TestEndpointCase12(t *testing.T) { func TestEndpointCase13(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("eu-west-3"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -564,8 +564,8 @@ func TestEndpointCase13(t *testing.T) { func TestEndpointCase14(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("me-south-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -603,8 +603,8 @@ func TestEndpointCase14(t *testing.T) { func TestEndpointCase15(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("sa-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -642,8 +642,8 @@ func TestEndpointCase15(t *testing.T) { func TestEndpointCase16(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -681,8 +681,8 @@ func TestEndpointCase16(t *testing.T) { func TestEndpointCase17(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-2"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -720,8 +720,8 @@ func TestEndpointCase17(t *testing.T) { func TestEndpointCase18(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-west-2"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -759,8 +759,8 @@ func TestEndpointCase18(t *testing.T) { func TestEndpointCase19(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-1"), - UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -798,8 +798,8 @@ func TestEndpointCase19(t *testing.T) { func TestEndpointCase20(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -837,8 +837,8 @@ func TestEndpointCase20(t *testing.T) { func TestEndpointCase21(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-1"), - UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -876,8 +876,8 @@ func TestEndpointCase21(t *testing.T) { func TestEndpointCase22(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("cn-north-1"), - UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -915,8 +915,8 @@ func TestEndpointCase22(t *testing.T) { func TestEndpointCase23(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("cn-north-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -954,8 +954,8 @@ func TestEndpointCase23(t *testing.T) { func TestEndpointCase24(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("cn-north-1"), - UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -993,8 +993,8 @@ func TestEndpointCase24(t *testing.T) { func TestEndpointCase25(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("cn-north-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -1032,8 +1032,8 @@ func TestEndpointCase25(t *testing.T) { func TestEndpointCase26(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-gov-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -1071,8 +1071,8 @@ func TestEndpointCase26(t *testing.T) { func TestEndpointCase27(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-gov-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -1110,8 +1110,8 @@ func TestEndpointCase27(t *testing.T) { func TestEndpointCase28(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-gov-west-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -1149,8 +1149,8 @@ func TestEndpointCase28(t *testing.T) { func TestEndpointCase29(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-gov-west-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -1188,8 +1188,8 @@ func TestEndpointCase29(t *testing.T) { func TestEndpointCase30(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-gov-east-1"), - UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -1227,8 +1227,8 @@ func TestEndpointCase30(t *testing.T) { func TestEndpointCase31(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-gov-east-1"), - UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -1262,12 +1262,32 @@ func TestEndpointCase31(t *testing.T) { } } -// For region us-iso-east-1 with FIPS enabled and DualStack disabled +// For region us-iso-east-1 with FIPS enabled and DualStack enabled func TestEndpointCase32(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-iso-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "FIPS and DualStack are enabled, but this partition does not support one or both", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// For region us-iso-east-1 with FIPS enabled and DualStack disabled +func TestEndpointCase33(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -1301,12 +1321,32 @@ func TestEndpointCase32(t *testing.T) { } } +// For region us-iso-east-1 with FIPS disabled and DualStack enabled +func TestEndpointCase34(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "DualStack is enabled but this partition does not support DualStack", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + // For region us-iso-east-1 with FIPS disabled and DualStack disabled -func TestEndpointCase33(t *testing.T) { +func TestEndpointCase35(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-iso-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -1340,12 +1380,32 @@ func TestEndpointCase33(t *testing.T) { } } +// For region us-isob-east-1 with FIPS enabled and DualStack enabled +func TestEndpointCase36(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-isob-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "FIPS and DualStack are enabled, but this partition does not support one or both", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + // For region us-isob-east-1 with FIPS enabled and DualStack disabled -func TestEndpointCase34(t *testing.T) { +func TestEndpointCase37(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-isob-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -1379,12 +1439,32 @@ func TestEndpointCase34(t *testing.T) { } } +// For region us-isob-east-1 with FIPS disabled and DualStack enabled +func TestEndpointCase38(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-isob-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "DualStack is enabled but this partition does not support DualStack", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + // For region us-isob-east-1 with FIPS disabled and DualStack disabled -func TestEndpointCase35(t *testing.T) { +func TestEndpointCase39(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-isob-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -1419,11 +1499,11 @@ func TestEndpointCase35(t *testing.T) { } // For custom endpoint with region set and fips disabled and dualstack disabled -func TestEndpointCase36(t *testing.T) { +func TestEndpointCase40(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), Endpoint: ptr.String("https://example.com"), } @@ -1459,10 +1539,10 @@ func TestEndpointCase36(t *testing.T) { } // For custom endpoint with region not set and fips disabled and dualstack disabled -func TestEndpointCase37(t *testing.T) { +func TestEndpointCase41(t *testing.T) { var params = EndpointParameters{ - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), Endpoint: ptr.String("https://example.com"), } @@ -1498,11 +1578,11 @@ func TestEndpointCase37(t *testing.T) { } // For custom endpoint with fips enabled and dualstack disabled -func TestEndpointCase38(t *testing.T) { +func TestEndpointCase42(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), Endpoint: ptr.String("https://example.com"), } @@ -1519,11 +1599,11 @@ func TestEndpointCase38(t *testing.T) { } // For custom endpoint with fips disabled and dualstack enabled -func TestEndpointCase39(t *testing.T) { +func TestEndpointCase43(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-1"), - UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), Endpoint: ptr.String("https://example.com"), } @@ -1538,3 +1618,19 @@ func TestEndpointCase39(t *testing.T) { t.Errorf("expect %v error in %v", e, a) } } + +// Missing region +func TestEndpointCase44(t *testing.T) { + var params = EndpointParameters{} + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "Invalid Configuration: Missing Region", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} diff --git a/service/ssoadmin/types/types.go b/service/ssoadmin/types/types.go index 5065b6192e5..419c9cec39d 100644 --- a/service/ssoadmin/types/types.go +++ b/service/ssoadmin/types/types.go @@ -9,8 +9,8 @@ import ( // These are IAM Identity Center identity store attributes that you can configure // for use in attributes-based access control (ABAC). You can create permissions -// policies that determine who can access your AWS resources based upon the -// configured attribute values. When you enable ABAC and specify +// policies that determine who can access your Amazon Web Services resources based +// upon the configured attribute values. When you enable ABAC and specify // AccessControlAttributes , IAM Identity Center passes the attribute values of the // authenticated user into IAM for use in policy evaluation. type AccessControlAttribute struct { @@ -44,16 +44,17 @@ type AccessControlAttributeValue struct { noSmithyDocumentSerde } -// The assignment that indicates a principal's limited access to a specified AWS -// account with a specified permission set. The term principal here refers to a -// user or group that is defined in IAM Identity Center. +// The assignment that indicates a principal's limited access to a specified +// Amazon Web Services account with a specified permission set. The term principal +// here refers to a user or group that is defined in IAM Identity Center. type AccountAssignment struct { - // The identifier of the AWS account. + // The identifier of the Amazon Web Services account. AccountId *string // The ARN of the permission set. For more information about ARNs, see Amazon - // Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference. + // Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon + // Web Services General Reference. PermissionSetArn *string // An identifier for an object in IAM Identity Center, such as a user or group. @@ -79,7 +80,8 @@ type AccountAssignmentOperationStatus struct { FailureReason *string // The ARN of the permission set. For more information about ARNs, see Amazon - // Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference. + // Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon + // Web Services General Reference. PermissionSetArn *string // An identifier for an object in IAM Identity Center, such as a user or group. @@ -98,8 +100,8 @@ type AccountAssignmentOperationStatus struct { // The status of the permission set provisioning process. Status StatusValues - // TargetID is an AWS account identifier, typically a 10-12 digit string (For - // example, 123456789012). + // TargetID is an Amazon Web Services account identifier, (For example, + // 123456789012). TargetId *string // The entity type for which the assignment will be created. @@ -124,22 +126,23 @@ type AccountAssignmentOperationStatusMetadata struct { noSmithyDocumentSerde } -// A structure that stores the details of the AWS managed policy. +// A structure that stores the details of the Amazon Web Services managed policy. type AttachedManagedPolicy struct { - // The ARN of the AWS managed policy. For more information about ARNs, see Amazon - // Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference. + // The ARN of the Amazon Web Services managed policy. For more information about + // ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service + // Namespaces in the Amazon Web Services General Reference. Arn *string - // The name of the AWS managed policy. + // The name of the Amazon Web Services managed policy. Name *string noSmithyDocumentSerde } // Specifies the name and path of a customer managed policy. You must have an IAM -// policy that matches the name and path in each AWS account where you want to -// deploy your permission set. +// policy that matches the name and path in each Amazon Web Services account where +// you want to deploy your permission set. type CustomerManagedPolicyReference struct { // The name of the IAM policy that you have configured in each account where you @@ -179,7 +182,8 @@ type InstanceMetadata struct { // The ARN of the IAM Identity Center instance under which the operation will be // executed. For more information about ARNs, see Amazon Resource Names (ARNs) and - // AWS Service Namespaces in the AWS General Reference. + // Amazon Web Services Service Namespaces in the Amazon Web Services General + // Reference. InstanceArn *string noSmithyDocumentSerde @@ -194,13 +198,13 @@ type OperationStatusFilter struct { noSmithyDocumentSerde } -// Specifies the configuration of the AWS managed or customer managed policy that -// you want to set as a permissions boundary. Specify either +// Specifies the configuration of the Amazon Web Services managed or customer +// managed policy that you want to set as a permissions boundary. Specify either // CustomerManagedPolicyReference to use the name and path of a customer managed -// policy, or ManagedPolicyArn to use the ARN of an AWS managed policy. A -// permissions boundary represents the maximum permissions that any policy can -// grant your role. For more information, see Permissions boundaries for IAM -// entities (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html) +// policy, or ManagedPolicyArn to use the ARN of an Amazon Web Services managed +// policy. A permissions boundary represents the maximum permissions that any +// policy can grant your role. For more information, see Permissions boundaries +// for IAM entities (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html) // in the IAM User Guide. Policies used as permissions boundaries don't provide // permissions. You must also attach an IAM policy to the role. To learn how the // effective permissions for a role are evaluated, see IAM JSON policy evaluation @@ -209,12 +213,12 @@ type OperationStatusFilter struct { type PermissionsBoundary struct { // Specifies the name and path of a customer managed policy. You must have an IAM - // policy that matches the name and path in each AWS account where you want to - // deploy your permission set. + // policy that matches the name and path in each Amazon Web Services account where + // you want to deploy your permission set. CustomerManagedPolicyReference *CustomerManagedPolicyReference - // The AWS managed policy ARN that you want to attach to a permission set as a - // permissions boundary. + // The Amazon Web Services managed policy ARN that you want to attach to a + // permission set as a permissions boundary. ManagedPolicyArn *string noSmithyDocumentSerde @@ -233,7 +237,8 @@ type PermissionSet struct { Name *string // The ARN of the permission set. For more information about ARNs, see Amazon - // Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference. + // Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon + // Web Services General Reference. PermissionSetArn *string // Used to redirect users within the application during the federation @@ -251,7 +256,8 @@ type PermissionSet struct { // for a specified permission set. type PermissionSetProvisioningStatus struct { - // The identifier of the AWS account from which to list the assignments. + // The identifier of the Amazon Web Services account from which to list the + // assignments. AccountId *string // The date that the permission set was created. @@ -261,8 +267,8 @@ type PermissionSetProvisioningStatus struct { FailureReason *string // The ARN of the permission set that is being provisioned. For more information - // about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the - // AWS General Reference. + // about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service + // Namespaces in the Amazon Web Services General Reference. PermissionSetArn *string // The identifier for tracking the request operation that is generated by the @@ -293,7 +299,7 @@ type PermissionSetProvisioningStatusMetadata struct { // A set of key-value pairs that are used to manage the resource. Tags can only be // applied to permission sets and cannot be applied to corresponding roles that IAM -// Identity Center creates in AWS accounts. +// Identity Center creates in Amazon Web Services accounts. type Tag struct { // The key for the tag. diff --git a/service/workspaces/deserializers.go b/service/workspaces/deserializers.go index 36e5477e9c2..00b23a0961f 100644 --- a/service/workspaces/deserializers.go +++ b/service/workspaces/deserializers.go @@ -9317,6 +9317,89 @@ func awsAwsjson11_deserializeDocumentDnsIpAddresses(v *[]string, value interface return nil } +func awsAwsjson11_deserializeDocumentErrorDetails(v **types.ErrorDetails, 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.ErrorDetails + if *v == nil { + sv = &types.ErrorDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ErrorCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected WorkspaceImageErrorDetailCode to be of type string, got %T instead", value) + } + sv.ErrorCode = types.WorkspaceImageErrorDetailCode(jtv) + } + + case "ErrorMessage": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Description to be of type string, got %T instead", value) + } + sv.ErrorMessage = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentErrorDetailsList(v *[]types.ErrorDetails, 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.ErrorDetails + if *v == nil { + cv = []types.ErrorDetails{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ErrorDetails + destAddr := &col + if err := awsAwsjson11_deserializeDocumentErrorDetails(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsAwsjson11_deserializeDocumentFailedCreateStandbyWorkspacesRequest(v **types.FailedCreateStandbyWorkspacesRequest, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -12173,6 +12256,11 @@ func awsAwsjson11_deserializeDocumentWorkspaceImage(v **types.WorkspaceImage, va sv.ErrorCode = ptr.String(jtv) } + case "ErrorDetails": + if err := awsAwsjson11_deserializeDocumentErrorDetailsList(&sv.ErrorDetails, value); err != nil { + return err + } + case "ErrorMessage": if value != nil { jtv, ok := value.(string) diff --git a/service/workspaces/types/enums.go b/service/workspaces/types/enums.go index 15f062cb71f..5ce48d09832 100644 --- a/service/workspaces/types/enums.go +++ b/service/workspaces/types/enums.go @@ -573,6 +573,73 @@ func (WorkspaceDirectoryType) Values() []WorkspaceDirectoryType { } } +type WorkspaceImageErrorDetailCode string + +// Enum values for WorkspaceImageErrorDetailCode +const ( + WorkspaceImageErrorDetailCodeOutdatedPowershellVersion WorkspaceImageErrorDetailCode = "OutdatedPowershellVersion" + WorkspaceImageErrorDetailCodeOfficeInstalled WorkspaceImageErrorDetailCode = "OfficeInstalled" + WorkspaceImageErrorDetailCodePcoipAgentInstalled WorkspaceImageErrorDetailCode = "PCoIPAgentInstalled" + WorkspaceImageErrorDetailCodeWindowsUpdatesEnabled WorkspaceImageErrorDetailCode = "WindowsUpdatesEnabled" + WorkspaceImageErrorDetailCodeAutoMountDisabled WorkspaceImageErrorDetailCode = "AutoMountDisabled" + WorkspaceImageErrorDetailCodeWorkspacesByolAccountNotFound WorkspaceImageErrorDetailCode = "WorkspacesBYOLAccountNotFound" + WorkspaceImageErrorDetailCodeWorkspacesByolAccountDisabled WorkspaceImageErrorDetailCode = "WorkspacesBYOLAccountDisabled" + WorkspaceImageErrorDetailCodeDhcpDisabled WorkspaceImageErrorDetailCode = "DHCPDisabled" + WorkspaceImageErrorDetailCodeDiskFreeSpace WorkspaceImageErrorDetailCode = "DiskFreeSpace" + WorkspaceImageErrorDetailCodeAdditionalDrivesAttached WorkspaceImageErrorDetailCode = "AdditionalDrivesAttached" + WorkspaceImageErrorDetailCodeOsNotSupported WorkspaceImageErrorDetailCode = "OSNotSupported" + WorkspaceImageErrorDetailCodeDomainJoined WorkspaceImageErrorDetailCode = "DomainJoined" + WorkspaceImageErrorDetailCodeAzureDomainJoined WorkspaceImageErrorDetailCode = "AzureDomainJoined" + WorkspaceImageErrorDetailCodeFirewallEnabled WorkspaceImageErrorDetailCode = "FirewallEnabled" + WorkspaceImageErrorDetailCodeVmwareToolsInstalled WorkspaceImageErrorDetailCode = "VMWareToolsInstalled" + WorkspaceImageErrorDetailCodeDiskSizeExceeded WorkspaceImageErrorDetailCode = "DiskSizeExceeded" + WorkspaceImageErrorDetailCodeIncompatiblePartitioning WorkspaceImageErrorDetailCode = "IncompatiblePartitioning" + WorkspaceImageErrorDetailCodePendingReboot WorkspaceImageErrorDetailCode = "PendingReboot" + WorkspaceImageErrorDetailCodeAutoLogonEnabled WorkspaceImageErrorDetailCode = "AutoLogonEnabled" + WorkspaceImageErrorDetailCodeRealtimeUniversalDisabled WorkspaceImageErrorDetailCode = "RealTimeUniversalDisabled" + WorkspaceImageErrorDetailCodeMultipleBootPartition WorkspaceImageErrorDetailCode = "MultipleBootPartition" + WorkspaceImageErrorDetailCodeSixtyFourBitOs WorkspaceImageErrorDetailCode = "Requires64BitOS" + WorkspaceImageErrorDetailCodeZeroRearmCount WorkspaceImageErrorDetailCode = "ZeroRearmCount" + WorkspaceImageErrorDetailCodeInPlaceUpgrade WorkspaceImageErrorDetailCode = "InPlaceUpgrade" + WorkspaceImageErrorDetailCodeAntiVirusInstalled WorkspaceImageErrorDetailCode = "AntiVirusInstalled" + WorkspaceImageErrorDetailCodeUefiNotSupported WorkspaceImageErrorDetailCode = "UEFINotSupported" +) + +// Values returns all known values for WorkspaceImageErrorDetailCode. 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 (WorkspaceImageErrorDetailCode) Values() []WorkspaceImageErrorDetailCode { + return []WorkspaceImageErrorDetailCode{ + "OutdatedPowershellVersion", + "OfficeInstalled", + "PCoIPAgentInstalled", + "WindowsUpdatesEnabled", + "AutoMountDisabled", + "WorkspacesBYOLAccountNotFound", + "WorkspacesBYOLAccountDisabled", + "DHCPDisabled", + "DiskFreeSpace", + "AdditionalDrivesAttached", + "OSNotSupported", + "DomainJoined", + "AzureDomainJoined", + "FirewallEnabled", + "VMWareToolsInstalled", + "DiskSizeExceeded", + "IncompatiblePartitioning", + "PendingReboot", + "AutoLogonEnabled", + "RealTimeUniversalDisabled", + "MultipleBootPartition", + "Requires64BitOS", + "ZeroRearmCount", + "InPlaceUpgrade", + "AntiVirusInstalled", + "UEFINotSupported", + } +} + type WorkspaceImageIngestionProcess string // Enum values for WorkspaceImageIngestionProcess diff --git a/service/workspaces/types/types.go b/service/workspaces/types/types.go index a1f0a448a9f..e24614a877d 100644 --- a/service/workspaces/types/types.go +++ b/service/workspaces/types/types.go @@ -292,6 +292,19 @@ type DefaultWorkspaceCreationProperties struct { noSmithyDocumentSerde } +// Provides in-depth details about the error. These details include the possible +// causes of the errors and troubleshooting information. +type ErrorDetails struct { + + // Indicates the error code returned. + ErrorCode WorkspaceImageErrorDetailCode + + // The text of the error message related the error code. + ErrorMessage *string + + noSmithyDocumentSerde +} + // Describes the standby WorkSpace that could not be created. type FailedCreateStandbyWorkspacesRequest struct { @@ -1021,6 +1034,9 @@ type WorkspaceImage struct { // The error code that is returned for the image. ErrorCode *string + // The details of the error returned for the image. + ErrorDetails []ErrorDetails + // The text of the error message that is returned for the image. ErrorMessage *string