PolicyState class
Input properties used for looking up and filtering Policy resources.
Constructors
-
PolicyState({Input<
String?> ? arn, Input<String?> ? content, Input<String?> ? description, Input<String?> ? name, Input<bool?> ? skipDestroy, Input<Map< ? tags, Input<String, String> ?>Map< ? tagsAll, Input<String, String> ?>String?> ? type}) -
Creates a new PolicyState.
arnARN of the policy.contentThe policy content to add to the new policy.descriptionA description to assign to the policy.nameThe friendly name to assign to the policy.skipDestroyIf set totrue, destroy will not delete the policy and instead just remove the resource from state. This can be useful in situations where the policies (and the associated attachment) must be preserved to meet the AWS minimum requirement of 1 attached policy.tagsKey-value map of resource tags. .If configured with a providerdefaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.tagsAllA map of tags assigned to the resource, including those inherited from the providerdefaultTagsconfiguration block.typeThe type of policy to create. Valid values areAISERVICES_OPT_OUT_POLICY,BACKUP_POLICY,BEDROCK_POLICY,CHATBOT_POLICY,DECLARATIVE_POLICY_EC2,INSPECTOR_POLICY,RESOURCE_CONTROL_POLICY(RCP),S3_POLICY,SECURITYHUB_POLICY,SERVICE_CONTROL_POLICY(SCP),TAG_POLICY, andUPGRADE_ROLLOUT_POLICY. Defaults toSERVICE_CONTROL_POLICY.const -
PolicyState.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
arn
→ Input<
String?> ? -
ARN of the policy.
final
-
content
→ Input<
String?> ? -
The policy content to add to the new policy.
For example, if you create a service control policy (SCP), this string must be JSON text that specifies the permissions that admins in attached accounts can delegate to their users, groups, and roles.
For more information about the AI Services opt-out Policy syntax, see the AI Services opt-out Policy Syntax documentation.
For more information about the Backup Policy syntax, see the Backup Policy Syntax documentation.
For more information about the Bedrock Policy syntax, see the Bedrock Policy Syntax documentation.
For more information about the Chatbot Policy syntax, see the Chatbot Policy Syntax documentation.
For more information about the Declarative Policy syntax, see the Declarative Policy Syntax documentation.
For more information about the Inspector Policy syntax, see the Inspector Policy Syntax documentation.
For more information about the RCP syntax, see the Resource Control Policy Syntax documentation.
For more information about the S3 Policy syntax, see the S3 Policy Syntax documentation.
For more information about the Security Hub Policy syntax, see the Security Hub Policy Syntax documentation. For more information about the SCP syntax, see the Service Control Policy Syntax documentation.
For more information on the Tag Policy syntax, see the Tag Policy Syntax documentation.
For more information about the Upgrade Rollout Policy syntax, see the Upgrade Rollout Policy Syntax documentation.
final
-
description
→ Input<
String?> ? -
A description to assign to the policy.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
name
→ Input<
String?> ? -
The friendly name to assign to the policy.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
skipDestroy
→ Input<
bool?> ? -
If set to
true, destroy will not delete the policy and instead just remove the resource from state. This can be useful in situations where the policies (and the associated attachment) must be preserved to meet the AWS minimum requirement of 1 attached policy.final -
Key-value map of resource tags. .If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.final -
A map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.final -
type
→ Input<
String?> ? -
The type of policy to create. Valid values are
AISERVICES_OPT_OUT_POLICY,BACKUP_POLICY,BEDROCK_POLICY,CHATBOT_POLICY,DECLARATIVE_POLICY_EC2,INSPECTOR_POLICY,RESOURCE_CONTROL_POLICY(RCP),S3_POLICY,SECURITYHUB_POLICY,SERVICE_CONTROL_POLICY(SCP),TAG_POLICY, andUPGRADE_ROLLOUT_POLICY. Defaults toSERVICE_CONTROL_POLICY.final
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