Class PolicyProps.Jsii$Proxy
- All Implemented Interfaces:
PolicyProps,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- PolicyProps
PolicyProps-
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.services.iam.PolicyProps
PolicyProps.Builder, PolicyProps.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(PolicyProps.Builder builder) Constructor that initializes the object based on literal property values passed by thePolicyProps.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 PolicyDocumentInitial PolicyDocument to use for this Policy.final BooleangetForce()Force creation of anAWS::IAM::Policy.Groups to attach this policy to.final StringThe name of the policy.getRoles()Roles to attach this policy to.final List<PolicyStatement>Initial set of permissions to add to this policy document.getUsers()Users to attach this policy to.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 thePolicyProps.Builder.
-
-
Method Details
-
getDocument
Description copied from interface:PolicyPropsInitial PolicyDocument to use for this Policy.If omited, any
PolicyStatementprovided in thestatementsproperty will be applied against the empty defaultPolicyDocument.Default: - An empty policy.
- Specified by:
getDocumentin interfacePolicyProps
-
getForce
Description copied from interface:PolicyPropsForce creation of anAWS::IAM::Policy.Unless set to
true, thisPolicyconstruct will not materialize to anAWS::IAM::PolicyCloudFormation resource in case it would have no effect (for example, if it remains unattached to an IAM identity or if it has no statements). This is generally desired behavior, since it prevents creating invalid--and hence undeployable--CloudFormation templates.In cases where you know the policy must be created and it is actually an error if no statements have been added to it, you can set this to
true.Default: false
- Specified by:
getForcein interfacePolicyProps
-
getGroups
Description copied from interface:PolicyPropsGroups to attach this policy to.You can also use
attachToGroup(group)to attach this policy to a group.Default: - No groups.
- Specified by:
getGroupsin interfacePolicyProps
-
getPolicyName
Description copied from interface:PolicyPropsThe name of the policy.If you specify multiple policies for an entity, specify unique names. For example, if you specify a list of policies for an IAM role, each policy must have a unique name.
Default: - Uses the logical ID of the policy resource, which is ensured to be unique within the stack.
- Specified by:
getPolicyNamein interfacePolicyProps
-
getRoles
Description copied from interface:PolicyPropsRoles to attach this policy to.You can also use
attachToRole(role)to attach this policy to a role.Default: - No roles.
- Specified by:
getRolesin interfacePolicyProps
-
getStatements
Description copied from interface:PolicyPropsInitial set of permissions to add to this policy document.You can also use
addStatements(...statement)to add permissions later.Default: - No statements.
- Specified by:
getStatementsin interfacePolicyProps
-
getUsers
Description copied from interface:PolicyPropsUsers to attach this policy to.You can also use
attachToUser(user)to attach this policy to a user.Default: - No users.
- Specified by:
getUsersin interfacePolicyProps
-
$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()
-