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<String, String>?>? tags, Input<Map<String, String>?>? tagsAll, Input<String?>? type})
Creates a new PolicyState. arn ARN of the policy. content The policy content to add to the new policy. description A description to assign to the policy. name The friendly name to assign to the policy. skipDestroy 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. tags Key-value map of resource tags. .If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level. tagsAll A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block. type 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, and UPGRADE_ROLLOUT_POLICY. Defaults to SERVICE_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
tags → Input<Map<String, String>?>?
Key-value map of resource tags. .If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
final
tagsAll → Input<Map<String, String>?>?
A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration 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, and UPGRADE_ROLLOUT_POLICY. Defaults to SERVICE_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