KeyPolicyArgs class
The set of arguments for KeyPolicy. The set of arguments for KeyPolicy.
Constructors
-
KeyPolicyArgs({Input<
bool?> ? bypassPolicyLockoutSafetyCheck, required Input<String> keyId, required Input<String> policy, Input<String?> ? region}) -
Creates a new KeyPolicyArgs.
bypassPolicyLockoutSafetyCheckA flag to indicate whether to bypass the key policy lockout safety check.keyIdThe ID of the KMS Key to attach the policy.policyA valid policy JSON document. Although this is a key policy, not an IAM policy, anaws.iam.getPolicyDocument, in the form that designates a principal, can be used. For more information about building policy documents, see the AWS IAM Policy Document Guide.regionRegion where this resource will be managed. Defaults to the Region set in the provider configuration.const -
KeyPolicyArgs.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
bypassPolicyLockoutSafetyCheck
→ Input<
bool?> ? -
A flag to indicate whether to bypass the key policy lockout safety check.
Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately. If this value is set, and the resource is destroyed, a warning will be shown, and the resource will be removed from state.
For more information, refer to the scenario in the Default Key Policy section in the AWS KMS Developer Guide.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
keyId
→ Input<
String> -
The ID of the KMS Key to attach the policy.
final
-
policy
→ Input<
String> -
A valid policy JSON document. Although this is a key policy, not an IAM policy, an
aws.iam.getPolicyDocument, in the form that designates a principal, can be used. For more information about building policy documents, see the AWS IAM Policy Document Guide.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