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 CreatePolicyStoreAlias operation. Creates a policy store alias for the specified policy store. A policy store alias is an alternative identifier that you can use to reference a policy store in API operations.
This operation is idempotent. If multiple CreatePolicyStoreAlias requests are made
where the aliasName and policyStoreId fields are the same between the
requests, subsequent requests will be ignored. For each duplicate CreatePolicyStoreAlias
request, a Success response will be returned and a new policy store alias will not
be created.
Verified Permissions is eventually consistent. It can take a few seconds for a new or changed element to propagate through the service and be visible in the results of other Verified Permissions operations.
Namespace: Amazon.VerifiedPermissions.Model
Assembly: AWSSDK.VerifiedPermissions.dll
Version: 3.x.y.z
public class CreatePolicyStoreAliasRequest : AmazonVerifiedPermissionsRequest IAmazonWebServiceRequest
The CreatePolicyStoreAliasRequest type exposes the following members
| Name | Description | |
|---|---|---|
|
CreatePolicyStoreAliasRequest() |
| Name | Type | Description | |
|---|---|---|---|
|
AliasName | System.String |
Gets and sets the property AliasName. Specifies the name of the policy store alias to create. The name must be unique within your Amazon Web Services account and Amazon Web Services Region.
The alias name must always be prefixed with |
|
PolicyStoreId | System.String |
Gets and sets the property PolicyStoreId. Specifies the ID of the policy store to associate with the alias. The associated policy store must be specified using its ID. The alias name cannot be used. |
The following example creates a new policy store alias.
var client = new AmazonVerifiedPermissionsClient();
var response = client.BatchGetPolicy(new BatchGetPolicyRequest
{
Requests = new List<BatchGetPolicyInputItem> {
new BatchGetPolicyInputItem {
PolicyId = "PWv5M6d5HePx3gVVLKY1nK",
PolicyStoreId = "ERZeDpRc34dkYZeb6FZRVC"
},
new BatchGetPolicyInputItem {
PolicyId = "LzFn6KgLWvv4Mbegus35jn",
PolicyStoreId = "ERZeDpRc34dkYZeb6FZRVC"
},
new BatchGetPolicyInputItem {
PolicyId = "77gLjer8H5o3mvrnMGrSL5",
PolicyStoreId = "ERZeDpRc34dkYZeb6FZRVC"
}
}
});
List<BatchGetPolicyErrorItem> errors = response.Errors;
List<BatchGetPolicyOutputItem> results = response.Results;
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5