From 908f377d5cd6714a7edf03c66167067f1e0edf84 Mon Sep 17 00:00:00 2001 From: aws-sdk-go-automation <43143561+aws-sdk-go-automation@users.noreply.github.com> Date: Thu, 31 Dec 2020 11:07:30 -0800 Subject: [PATCH] Release v1.36.19 (2020-12-31) (#3720) Release v1.36.19 (2020-12-31) === ### Service Client Updates * `service/servicecatalog`: Updates service API and documentation * Enhanced Service Catalog DescribeProvisioningParameters API to return new parameter constraints, i.e., MinLength, MaxLength, MinValue, MaxValue, ConstraintDescription and AllowedPattern --- CHANGELOG.md | 7 ++ aws/version.go | 2 +- .../apis/servicecatalog/2015-12-10/api-2.json | 12 +++- .../servicecatalog/2015-12-10/docs-2.json | 18 +++-- service/servicecatalog/api.go | 71 +++++++++++++++++++ 5 files changed, 100 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f3b983c5a..824dd5e822 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +Release v1.36.19 (2020-12-31) +=== + +### Service Client Updates +* `service/servicecatalog`: Updates service API and documentation + * Enhanced Service Catalog DescribeProvisioningParameters API to return new parameter constraints, i.e., MinLength, MaxLength, MinValue, MaxValue, ConstraintDescription and AllowedPattern + Release v1.36.18 (2020-12-30) === diff --git a/aws/version.go b/aws/version.go index 259527366f..d2fbb55f6d 100644 --- a/aws/version.go +++ b/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.36.18" +const SDKVersion = "1.36.19" diff --git a/models/apis/servicecatalog/2015-12-10/api-2.json b/models/apis/servicecatalog/2015-12-10/api-2.json index 14a73ed1b3..e3f3ce076c 100644 --- a/models/apis/servicecatalog/2015-12-10/api-2.json +++ b/models/apis/servicecatalog/2015-12-10/api-2.json @@ -1230,10 +1230,9 @@ "member":{"shape":"Tag"}, "max":20 }, - "AllowedValue":{"type":"string"}, "AllowedValues":{ "type":"list", - "member":{"shape":"AllowedValue"} + "member":{"shape":"String"} }, "ApproximateCount":{"type":"integer"}, "AssociateBudgetWithResourceInput":{ @@ -2818,7 +2817,13 @@ "ParameterConstraints":{ "type":"structure", "members":{ - "AllowedValues":{"shape":"AllowedValues"} + "AllowedValues":{"shape":"AllowedValues"}, + "AllowedPattern":{"shape":"String"}, + "ConstraintDescription":{"shape":"String"}, + "MaxLength":{"shape":"String"}, + "MinLength":{"shape":"String"}, + "MaxValue":{"shape":"String"}, + "MinValue":{"shape":"String"} } }, "ParameterKey":{ @@ -3870,6 +3875,7 @@ "type":"string", "pattern":"[\\u0009\\u000a\\u000d\\u0020-\\uD7FF\\uE000-\\uFFFD]*" }, + "String":{"type":"string"}, "SuccessfulShares":{ "type":"list", "member":{"shape":"AccountId"} diff --git a/models/apis/servicecatalog/2015-12-10/docs-2.json b/models/apis/servicecatalog/2015-12-10/docs-2.json index 4323493975..6fbe525462 100644 --- a/models/apis/servicecatalog/2015-12-10/docs-2.json +++ b/models/apis/servicecatalog/2015-12-10/docs-2.json @@ -234,12 +234,6 @@ "UpdateProductInput$AddTags": "

The tags to add to the product.

" } }, - "AllowedValue": { - "base": null, - "refs": { - "AllowedValues$member": null - } - }, "AllowedValues": { "base": null, "refs": { @@ -2873,6 +2867,18 @@ "ProvisionedProductPlanDetails$StatusMessage": "

The status message.

" } }, + "String": { + "base": null, + "refs": { + "AllowedValues$member": null, + "ParameterConstraints$AllowedPattern": "

A regular expression that represents the patterns that allow for String types. The pattern must match the entire parameter value provided.

", + "ParameterConstraints$ConstraintDescription": "

A string that explains a constraint when the constraint is violated. For example, without a constraint description, a parameter that has an allowed pattern of [A-Za-z0-9]+ displays the following error message when the user specifies an invalid value:

Malformed input-Parameter MyParameter must match pattern [A-Za-z0-9]+

By adding a constraint description, such as must only contain letters (uppercase and lowercase) and numbers, you can display the following customized error message:

Malformed input-Parameter MyParameter must only contain uppercase and lowercase letters and numbers.

", + "ParameterConstraints$MaxLength": "

An integer value that determines the largest number of characters you want to allow for String types.

", + "ParameterConstraints$MinLength": "

An integer value that determines the smallest number of characters you want to allow for String types.

", + "ParameterConstraints$MaxValue": "

A numeric value that determines the largest numeric value you want to allow for Number types.

", + "ParameterConstraints$MinValue": "

A numeric value that determines the smallest numeric value you want to allow for Number types.

" + } + }, "SuccessfulShares": { "base": null, "refs": { diff --git a/service/servicecatalog/api.go b/service/servicecatalog/api.go index cd43790c11..5d70b81e28 100644 --- a/service/servicecatalog/api.go +++ b/service/servicecatalog/api.go @@ -16931,8 +16931,43 @@ func (s *OrganizationNode) SetValue(v string) *OrganizationNode { type ParameterConstraints struct { _ struct{} `type:"structure"` + // A regular expression that represents the patterns that allow for String types. + // The pattern must match the entire parameter value provided. + AllowedPattern *string `type:"string"` + // The values that the administrator has allowed for the parameter. AllowedValues []*string `type:"list"` + + // A string that explains a constraint when the constraint is violated. For + // example, without a constraint description, a parameter that has an allowed + // pattern of [A-Za-z0-9]+ displays the following error message when the user + // specifies an invalid value: + // + // Malformed input-Parameter MyParameter must match pattern [A-Za-z0-9]+ + // + // By adding a constraint description, such as must only contain letters (uppercase + // and lowercase) and numbers, you can display the following customized error + // message: + // + // Malformed input-Parameter MyParameter must only contain uppercase and lowercase + // letters and numbers. + ConstraintDescription *string `type:"string"` + + // An integer value that determines the largest number of characters you want + // to allow for String types. + MaxLength *string `type:"string"` + + // A numeric value that determines the largest numeric value you want to allow + // for Number types. + MaxValue *string `type:"string"` + + // An integer value that determines the smallest number of characters you want + // to allow for String types. + MinLength *string `type:"string"` + + // A numeric value that determines the smallest numeric value you want to allow + // for Number types. + MinValue *string `type:"string"` } // String returns the string representation @@ -16945,12 +16980,48 @@ func (s ParameterConstraints) GoString() string { return s.String() } +// SetAllowedPattern sets the AllowedPattern field's value. +func (s *ParameterConstraints) SetAllowedPattern(v string) *ParameterConstraints { + s.AllowedPattern = &v + return s +} + // SetAllowedValues sets the AllowedValues field's value. func (s *ParameterConstraints) SetAllowedValues(v []*string) *ParameterConstraints { s.AllowedValues = v return s } +// SetConstraintDescription sets the ConstraintDescription field's value. +func (s *ParameterConstraints) SetConstraintDescription(v string) *ParameterConstraints { + s.ConstraintDescription = &v + return s +} + +// SetMaxLength sets the MaxLength field's value. +func (s *ParameterConstraints) SetMaxLength(v string) *ParameterConstraints { + s.MaxLength = &v + return s +} + +// SetMaxValue sets the MaxValue field's value. +func (s *ParameterConstraints) SetMaxValue(v string) *ParameterConstraints { + s.MaxValue = &v + return s +} + +// SetMinLength sets the MinLength field's value. +func (s *ParameterConstraints) SetMinLength(v string) *ParameterConstraints { + s.MinLength = &v + return s +} + +// SetMinValue sets the MinValue field's value. +func (s *ParameterConstraints) SetMinValue(v string) *ParameterConstraints { + s.MinValue = &v + return s +} + // Information about a portfolio. type PortfolioDetail struct { _ struct{} `type:"structure"`