Class CfnPolicyMixinProps.Jsii$Proxy
- All Implemented Interfaces:
CfnPolicyMixinProps,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
CfnPolicyMixinProps
CfnPolicyMixinProps-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.cfnpropertymixins.services.organizations.CfnPolicyMixinProps
CfnPolicyMixinProps.Builder, CfnPolicyMixinProps.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(CfnPolicyMixinProps.Builder builder) Constructor that initializes the object based on literal property values passed by theCfnPolicyMixinProps.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanfinal ObjectThe policy text content.final StringHuman readable description of the policy.final StringgetName()Name of the policy.getTags()A list of tags that you want to attach to the newly created policy.List of unique identifiers (IDs) of the root, OU, or account that you want to attach the policy to.final StringgetType()The type of policy to create.final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theCfnPolicyMixinProps.Builder.
-
-
Method Details
-
getContent
Description copied from interface:CfnPolicyMixinPropsThe policy text content. You can specify the policy content as a JSON object or a JSON string.When you specify the policy content as a JSON string, you can't perform drift detection on the CloudFormation stack. For this reason, we recommend specifying the policy content as a JSON object instead.
The text that you supply must adhere to the rules of the policy type you specify in the
Typeparameter. The following AWS Organizations quotas are enforced for the maximum size of a policy document:- Service control policies: 5,120 characters
- Resource control policies: 5,120 characters
- Declarative policies: 10,000 characters
- Backup policies: 10,000 characters
- Tag policies: 10,000 characters
- Chat applications policies: 10,000 characters
- AI services opt-out policies: 2,500 characters
- Security Hub policies: 10,000 characters
- Amazon Inspector policies: 10,000 characters
- Amazon Bedrock policies: 10,000 characters
- Upgrade rollout policies: 10,000 characters
For more information about Organizations service quotas, see Quotas for AWS Organizations in the AWS Organizations User Guide .
- Specified by:
getContentin interfaceCfnPolicyMixinProps- See Also:
-
getDescription
Description copied from interface:CfnPolicyMixinPropsHuman readable description of the policy.- Specified by:
getDescriptionin interfaceCfnPolicyMixinProps- See Also:
-
getName
Description copied from interface:CfnPolicyMixinPropsName of the policy.The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
- Specified by:
getNamein interfaceCfnPolicyMixinProps- See Also:
-
getTags
Description copied from interface:CfnPolicyMixinPropsA list of tags that you want to attach to the newly created policy.For each tag in the list, you must specify both a tag key and a value. You can set the value to an empty string, but you can't set it to
null. For more information about tagging, see Tagging AWS Organizations resources in the AWS Organizations User Guide.If any one of the tags is not valid or if you exceed the allowed number of tags for a policy, then the entire request fails and the policy is not created.
- Specified by:
getTagsin interfaceCfnPolicyMixinProps- See Also:
-
getTargetIds
Description copied from interface:CfnPolicyMixinPropsList of unique identifiers (IDs) of the root, OU, or account that you want to attach the policy to.You can get the ID by calling the ListRoots , ListOrganizationalUnitsForParent , or ListAccounts operations. If you don't specify this parameter, the policy is created but not attached to any organization resource.
The regex pattern for a target ID string requires one of the following:
- Root - A string that begins with "r-" followed by from 4 to 32 lowercase letters or digits.
- Account - A string that consists of exactly 12 digits.
- Organizational unit (OU) - A string that begins with "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that the OU is in). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.
- Specified by:
getTargetIdsin interfaceCfnPolicyMixinProps- See Also:
-
getType
Description copied from interface:CfnPolicyMixinPropsThe type of policy to create.- Specified by:
getTypein interfaceCfnPolicyMixinProps- See Also:
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-