ResourcePolicyArgs class
The set of arguments for ResourcePolicy. The set of arguments for ResourcePolicy.
Constructors
-
ResourcePolicyArgs({Input<
bool?> ? bypassPolicyLockoutCheck, required Input<String> policyDocument, required Input<String> policyName, Input<String?> ? policyRevisionId, Input<String?> ? region}) -
Creates a new ResourcePolicyArgs.
bypassPolicyLockoutCheckFlag to indicate whether to bypass the resource policy lockout safety check. Setting this value to true increases the risk that the policy becomes unmanageable. Do not set this value to true indiscriminately. Use this parameter only when you include a policy in the request and you intend to prevent the principal that is making the request from making a subsequent PutResourcePolicy request. The default value isfalse.policyDocumentJSON string of the resource policy or resource policy document, which can be up to 5kb in size.policyNameName of the resource policy. Must be unique within a specific Amazon Web Services account.policyRevisionIdSpecifies a specific policy revision, to ensure an atomic create operation. By default the resource policy is created if it does not exist, or updated with an incremented revision id. The revision id is unique to each policy in the account. If the policy revision id does not match the latest revision id, the operation will fail with an InvalidPolicyRevisionIdException exception. You can also provide a PolicyRevisionId of 0. In this case, the operation will fail with an InvalidPolicyRevisionIdException exception if a resource policy with the same name already exists.regionRegion where this resource will be managed. Defaults to the Region set in the provider configuration.const -
ResourcePolicyArgs.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
bypassPolicyLockoutCheck
→ Input<
bool?> ? -
Flag to indicate whether to bypass the resource policy lockout safety check. Setting this value to true increases the risk that the policy becomes unmanageable. Do not set this value to true indiscriminately. Use this parameter only when you include a policy in the request and you intend to prevent the principal that is making the request from making a subsequent PutResourcePolicy request. The default value is
false.final - hashCode → int
-
The hash code for this object.
no setterinherited
-
policyDocument
→ Input<
String> -
JSON string of the resource policy or resource policy document, which can be up to 5kb in size.
final
-
policyName
→ Input<
String> -
Name of the resource policy. Must be unique within a specific Amazon Web Services account.
final
-
policyRevisionId
→ Input<
String?> ? -
Specifies a specific policy revision, to ensure an atomic create operation. By default the resource policy is created if it does not exist, or updated with an incremented revision id. The revision id is unique to each policy in the account. If the policy revision id does not match the latest revision id, the operation will fail with an InvalidPolicyRevisionIdException exception. You can also provide a PolicyRevisionId of 0. In this case, the operation will fail with an InvalidPolicyRevisionIdException exception if a resource policy with the same name already exists.
final
-
region
→ Input<
String?> ? -
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited