Skip to content

Commit ea91820

Browse files
author
awstools
committed
feat(client-service-catalog): New parameter added in ServiceCatalog DescribeProvisioningArtifact api - IncludeProvisioningArtifactParameters. This parameter can be used to return information about the parameters used to provision the product
1 parent 4164757 commit ea91820

File tree

4 files changed

+157
-125
lines changed

4 files changed

+157
-125
lines changed

clients/client-service-catalog/src/commands/DescribeProvisioningArtifactCommand.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export interface DescribeProvisioningArtifactCommandOutput
5555
* ProvisioningArtifactName: "STRING_VALUE",
5656
* ProductName: "STRING_VALUE",
5757
* Verbose: true || false,
58+
* IncludeProvisioningArtifactParameters: true || false,
5859
* };
5960
* const command = new DescribeProvisioningArtifactCommand(input);
6061
* const response = await client.send(command);
@@ -73,6 +74,26 @@ export interface DescribeProvisioningArtifactCommandOutput
7374
* // "<keys>": "STRING_VALUE",
7475
* // },
7576
* // Status: "AVAILABLE" || "CREATING" || "FAILED",
77+
* // ProvisioningArtifactParameters: [ // ProvisioningArtifactParameters
78+
* // { // ProvisioningArtifactParameter
79+
* // ParameterKey: "STRING_VALUE",
80+
* // DefaultValue: "STRING_VALUE",
81+
* // ParameterType: "STRING_VALUE",
82+
* // IsNoEcho: true || false,
83+
* // Description: "STRING_VALUE",
84+
* // ParameterConstraints: { // ParameterConstraints
85+
* // AllowedValues: [ // AllowedValues
86+
* // "STRING_VALUE",
87+
* // ],
88+
* // AllowedPattern: "STRING_VALUE",
89+
* // ConstraintDescription: "STRING_VALUE",
90+
* // MaxLength: "STRING_VALUE",
91+
* // MinLength: "STRING_VALUE",
92+
* // MaxValue: "STRING_VALUE",
93+
* // MinValue: "STRING_VALUE",
94+
* // },
95+
* // },
96+
* // ],
7697
* // };
7798
*
7899
* ```

clients/client-service-catalog/src/models/models_0.ts

Lines changed: 120 additions & 123 deletions
Original file line numberDiff line numberDiff line change
@@ -295,27 +295,28 @@ export interface AssociatePrincipalWithPortfolioInput {
295295
PortfolioId: string | undefined;
296296

297297
/**
298-
* <p>The ARN of the principal (user, role, or group). The supported value is a fully defined <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns">
299-
* <code>IAM</code> ARN</a>
300-
* if the
301-
* <code>PrincipalType</code> is <code>IAM</code>. If the <code>PrincipalType</code> is <code>IAM_PATTERN</code>,
302-
* the supported value is an <code>IAM</code> ARN without an AccountID in the following format:</p>
298+
* <p>The ARN of the principal (user, role, or group). If the <code>PrincipalType</code> is <code>IAM</code>, the supported value is a
299+
* fully defined
300+
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns">IAM Amazon Resource Name (ARN)</a>.
301+
* If the <code>PrincipalType</code> is <code>IAM_PATTERN</code>,
302+
* the supported value is an <code>IAM</code> ARN <i>without an AccountID</i> in the following format:</p>
303303
* <p>
304304
* <i>arn:partition:iam:::resource-type/resource-id</i>
305305
* </p>
306-
* <p>The resource-id can be either of the following:</p>
306+
* <p>The ARN resource-id can be either:</p>
307307
* <ul>
308308
* <li>
309-
* <p>Fully formed, for example <i>arn:aws:iam:::role/resource-name</i> or
309+
* <p>A fully formed resource-id. For example, <i>arn:aws:iam:::role/resource-name</i> or
310310
* <i>arn:aws:iam:::role/resource-path/resource-name</i>
311311
* </p>
312312
* </li>
313313
* <li>
314314
* <p>A wildcard ARN. The wildcard ARN accepts <code>IAM_PATTERN</code> values with a
315-
* "*" or "?" in the resource-id segment of the ARN, for example <i>arn:partition:service:::resource-type/resource-path/resource-name</i>.
315+
* "*" or "?" in the resource-id segment of the ARN. For example <i>arn:partition:service:::resource-type/resource-path/resource-name</i>.
316316
* The new symbols are exclusive to the <b>resource-path</b> and <b>resource-name</b>
317-
* and cannot be used to replace the <b>resource-type</b> or other
317+
* and cannot replace the <b>resource-type</b> or other
318318
* ARN values. </p>
319+
* <p>The ARN path and principal name allow unlimited wildcard characters.</p>
319320
* </li>
320321
* </ul>
321322
* <p>Examples of an <b>acceptable</b> wildcard ARN:</p>
@@ -335,40 +336,26 @@ export interface AssociatePrincipalWithPortfolioInput {
335336
* </ul>
336337
* <p>You can associate multiple <code>IAM_PATTERN</code>s even if the account has no principal
337338
* with that name. </p>
338-
* <note>
339-
* <ul>
340-
* <li>
341-
* <p>The ARN path and principal name allow unlimited wildcard characters. </p>
342-
* </li>
343-
* <li>
344-
* <p>The "?" wildcard character matches zero or one of any character. This is similar to ".?" in regular
345-
* regex context.</p>
346-
* </li>
347-
* <li>
348-
* <p>The "*" wildcard character matches any number of any characters. This is similar ".*" in regular
349-
* regex context.</p>
350-
* </li>
351-
* <li>
352-
* <p>In the IAM Principal ARNs format (arn:partition:iam:::resource-type/resource-path/resource-name),
353-
* valid <b>resource-type</b> values include user/, group/, or role/. The "?" and "*"
354-
* are allowed only after the <b>resource-type</b>, in the resource-id segment.
355-
* You can use special characters anywhere within the <b>resource-id</b>.</p>
356-
* </li>
357-
* <li>
358-
* <p>The "*" also matches the "/" character, allowing paths to be formed within the
359-
* <b>resource-id</b>.
360-
* For example, arn:aws:iam:::role/*\/ResourceName_? matches both arn:aws:iam:::role/pathA/pathB/ResourceName_1
339+
* <p>The "?" wildcard character matches zero or one of any character. This is similar to ".?" in regular
340+
* regex context. The "*" wildcard character matches any number of any characters.
341+
* This is similar to ".*" in regular regex context.</p>
342+
* <p>In the IAM Principal ARN format (<i>arn:partition:iam:::resource-type/resource-path/resource-name</i>),
343+
* valid resource-type values include <b>user/</b>, <b>group/</b>,
344+
* or <b>role/</b>. The "?" and "*" characters
345+
* are allowed only after the resource-type in the resource-id segment.
346+
* You can use special characters anywhere within the resource-id. </p>
347+
* <p>The "*" character also matches the "/" character, allowing paths to be formed <i>within</i> the
348+
* resource-id. For example, <i>arn:aws:iam:::role/<b>*</b>/ResourceName_?</i>
349+
* matches both <i>arn:aws:iam:::role/pathA/pathB/ResourceName_1</i>
361350
* and
362-
* arn:aws:iam:::role/pathA/ResourceName_1.</p>
363-
* </li>
364-
* </ul>
365-
* </note>
351+
* <i>arn:aws:iam:::role/pathA/ResourceName_1</i>. </p>
366352
*/
367353
PrincipalARN: string | undefined;
368354

369355
/**
370-
* <p>The principal type. The supported value is <code>IAM</code> if you use a fully defined ARN,
371-
* or <code>IAM_PATTERN</code> if you use an ARN with no <code>accountID</code>, with or without wildcard characters. </p>
356+
* <p>The principal type. The supported value is <code>IAM</code> if you use a fully defined Amazon Resource Name
357+
* (ARN), or <code>IAM_PATTERN</code> if you use an ARN with no <code>accountID</code>,
358+
* with or without wildcard characters. </p>
372359
*/
373360
PrincipalType: PrincipalType | string | undefined;
374361
}
@@ -3673,6 +3660,96 @@ export interface DescribeProvisioningArtifactInput {
36733660
* <p>Indicates whether a verbose level of detail is enabled.</p>
36743661
*/
36753662
Verbose?: boolean;
3663+
3664+
/**
3665+
* <p>Indicates if the API call response does or does not include additional details about the provisioning parameters. </p>
3666+
*/
3667+
IncludeProvisioningArtifactParameters?: boolean;
3668+
}
3669+
3670+
/**
3671+
* @public
3672+
* <p>The constraints that the administrator has put on the parameter.</p>
3673+
*/
3674+
export interface ParameterConstraints {
3675+
/**
3676+
* <p>The values that the administrator has allowed for the parameter.</p>
3677+
*/
3678+
AllowedValues?: string[];
3679+
3680+
/**
3681+
* <p>A regular expression that represents the patterns that allow for <code>String</code> types. The pattern must match the entire parameter value provided.</p>
3682+
*/
3683+
AllowedPattern?: string;
3684+
3685+
/**
3686+
* <p>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 <code>[A-Za-z0-9]+</code> displays the following error message when the user specifies an invalid value:</p>
3687+
* <p>
3688+
* <code>Malformed input-Parameter MyParameter must match pattern [A-Za-z0-9]+</code>
3689+
* </p>
3690+
* <p>By adding a constraint description, such as must only contain letters (uppercase and lowercase) and numbers, you can display the following customized error message:</p>
3691+
* <p>
3692+
* <code>Malformed input-Parameter MyParameter must only contain uppercase and lowercase letters and numbers.</code>
3693+
* </p>
3694+
*/
3695+
ConstraintDescription?: string;
3696+
3697+
/**
3698+
* <p>An integer value that determines the largest number of characters you want to allow for <code>String</code> types. </p>
3699+
*/
3700+
MaxLength?: string;
3701+
3702+
/**
3703+
* <p>An integer value that determines the smallest number of characters you want to allow for <code>String</code> types.</p>
3704+
*/
3705+
MinLength?: string;
3706+
3707+
/**
3708+
* <p>A numeric value that determines the largest numeric value you want to allow for <code>Number</code> types.</p>
3709+
*/
3710+
MaxValue?: string;
3711+
3712+
/**
3713+
* <p>A numeric value that determines the smallest numeric value you want to allow for <code>Number</code> types. </p>
3714+
*/
3715+
MinValue?: string;
3716+
}
3717+
3718+
/**
3719+
* @public
3720+
* <p>Information about a parameter used to provision a product.</p>
3721+
*/
3722+
export interface ProvisioningArtifactParameter {
3723+
/**
3724+
* <p>The parameter key.</p>
3725+
*/
3726+
ParameterKey?: string;
3727+
3728+
/**
3729+
* <p>The default value.</p>
3730+
*/
3731+
DefaultValue?: string;
3732+
3733+
/**
3734+
* <p>The parameter type.</p>
3735+
*/
3736+
ParameterType?: string;
3737+
3738+
/**
3739+
* <p>If this value is true, the value for this parameter is obfuscated from view when the
3740+
* parameter is retrieved. This parameter is used to hide sensitive information.</p>
3741+
*/
3742+
IsNoEcho?: boolean;
3743+
3744+
/**
3745+
* <p>The description of the parameter.</p>
3746+
*/
3747+
Description?: string;
3748+
3749+
/**
3750+
* <p>Constraints that the administrator has put on a parameter.</p>
3751+
*/
3752+
ParameterConstraints?: ParameterConstraints;
36763753
}
36773754

36783755
/**
@@ -3693,6 +3770,11 @@ export interface DescribeProvisioningArtifactOutput {
36933770
* <p>The status of the current request.</p>
36943771
*/
36953772
Status?: Status | string;
3773+
3774+
/**
3775+
* <p>Information about the parameters used to provision the product. </p>
3776+
*/
3777+
ProvisioningArtifactParameters?: ProvisioningArtifactParameter[];
36963778
}
36973779

36983780
/**
@@ -3799,91 +3881,6 @@ export interface ProvisioningArtifactOutput {
37993881
Description?: string;
38003882
}
38013883

3802-
/**
3803-
* @public
3804-
* <p>The constraints that the administrator has put on the parameter.</p>
3805-
*/
3806-
export interface ParameterConstraints {
3807-
/**
3808-
* <p>The values that the administrator has allowed for the parameter.</p>
3809-
*/
3810-
AllowedValues?: string[];
3811-
3812-
/**
3813-
* <p>A regular expression that represents the patterns that allow for <code>String</code> types. The pattern must match the entire parameter value provided.</p>
3814-
*/
3815-
AllowedPattern?: string;
3816-
3817-
/**
3818-
* <p>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 <code>[A-Za-z0-9]+</code> displays the following error message when the user specifies an invalid value:</p>
3819-
* <p>
3820-
* <code>Malformed input-Parameter MyParameter must match pattern [A-Za-z0-9]+</code>
3821-
* </p>
3822-
* <p>By adding a constraint description, such as must only contain letters (uppercase and lowercase) and numbers, you can display the following customized error message:</p>
3823-
* <p>
3824-
* <code>Malformed input-Parameter MyParameter must only contain uppercase and lowercase letters and numbers.</code>
3825-
* </p>
3826-
*/
3827-
ConstraintDescription?: string;
3828-
3829-
/**
3830-
* <p>An integer value that determines the largest number of characters you want to allow for <code>String</code> types. </p>
3831-
*/
3832-
MaxLength?: string;
3833-
3834-
/**
3835-
* <p>An integer value that determines the smallest number of characters you want to allow for <code>String</code> types.</p>
3836-
*/
3837-
MinLength?: string;
3838-
3839-
/**
3840-
* <p>A numeric value that determines the largest numeric value you want to allow for <code>Number</code> types.</p>
3841-
*/
3842-
MaxValue?: string;
3843-
3844-
/**
3845-
* <p>A numeric value that determines the smallest numeric value you want to allow for <code>Number</code> types. </p>
3846-
*/
3847-
MinValue?: string;
3848-
}
3849-
3850-
/**
3851-
* @public
3852-
* <p>Information about a parameter used to provision a product.</p>
3853-
*/
3854-
export interface ProvisioningArtifactParameter {
3855-
/**
3856-
* <p>The parameter key.</p>
3857-
*/
3858-
ParameterKey?: string;
3859-
3860-
/**
3861-
* <p>The default value.</p>
3862-
*/
3863-
DefaultValue?: string;
3864-
3865-
/**
3866-
* <p>The parameter type.</p>
3867-
*/
3868-
ParameterType?: string;
3869-
3870-
/**
3871-
* <p>If this value is true, the value for this parameter is obfuscated from view when the
3872-
* parameter is retrieved. This parameter is used to hide sensitive information.</p>
3873-
*/
3874-
IsNoEcho?: boolean;
3875-
3876-
/**
3877-
* <p>The description of the parameter.</p>
3878-
*/
3879-
Description?: string;
3880-
3881-
/**
3882-
* <p>Constraints that the administrator has put on a parameter.</p>
3883-
*/
3884-
ParameterConstraints?: ParameterConstraints;
3885-
}
3886-
38873884
/**
38883885
* @public
38893886
* <p>The user-defined preferences that will be applied during product provisioning, unless overridden by <code>ProvisioningPreferences</code> or <code>UpdateProvisioningPreferences</code>.</p>

clients/client-service-catalog/src/protocols/Aws_json1_1.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6963,6 +6963,7 @@ const de_DescribeProvisioningArtifactOutput = (
69636963
return take(output, {
69646964
Info: _json,
69656965
ProvisioningArtifactDetail: (_: any) => de_ProvisioningArtifactDetail(_, context),
6966+
ProvisioningArtifactParameters: _json,
69666967
Status: __expectString,
69676968
}) as any;
69686969
};

0 commit comments

Comments
 (0)