AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the AcquireRole operation. Creates an IAM role from the specified role template. The new role takes its configuration—including its name, path, trust policy, inline and managed policies, permissions boundary, tags, and maximum session duration—from the role template version that you specify. For more information about roles, see IAM roles in the IAM User Guide.
If the template version defines parameters, use the ReplacementValues parameter
to supply the values that the service substitutes into the role during creation.
Namespace: Amazon.IdentityManagement.Model
Assembly: AWSSDK.IdentityManagement.dll
Version: 3.x.y.z
public class AcquireRoleRequest : AmazonIdentityManagementServiceRequest IAmazonWebServiceRequest
The AcquireRoleRequest type exposes the following members
| Name | Description | |
|---|---|---|
|
AcquireRoleRequest() |
| Name | Type | Description | |
|---|---|---|---|
|
ReplacementValues | System.Collections.Generic.Dictionary<System.String, Amazon.IdentityManagement.Model.ReplacementValueEntry> |
Gets and sets the property ReplacementValues. A map of values to substitute for the parameters that are defined in the role template version. Each key is a parameter name from the template, and each value is a structure that contains the replacement values for that parameter. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true. |
|
TemplateArn | System.String |
Gets and sets the property TemplateArn. The Amazon Resource Name (ARN) of the role template to create the role from. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference. |
|
TemplateMinorVersion | System.Nullable<System.Int32> |
Gets and sets the property TemplateMinorVersion. The minor version of the role template to use. If you do not specify a minor version, the service uses the template's default minor version. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.7.2 and newer