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.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.iam.PolicyProps
PolicyProps.Builder, PolicyProps.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
Jsii$Proxy
(PolicyProps.Builder builder) Constructor that initializes the object based on literal property values passed by thePolicyProps.Builder
.protected
Jsii$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.JsonNode
final boolean
final PolicyDocument
Initial PolicyDocument to use for this Policy.final Boolean
getForce()
Force creation of anAWS::IAM::Policy
.Groups to attach this policy to.final String
The 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 int
hashCode()
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:PolicyProps
Initial PolicyDocument to use for this Policy.If omited, any
PolicyStatement
provided in thestatements
property will be applied against the empty defaultPolicyDocument
.Default: - An empty policy.
- Specified by:
getDocument
in interfacePolicyProps
-
getForce
Description copied from interface:PolicyProps
Force creation of anAWS::IAM::Policy
.Unless set to
true
, thisPolicy
construct will not materialize to anAWS::IAM::Policy
CloudFormation 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:
getForce
in interfacePolicyProps
-
getGroups
Description copied from interface:PolicyProps
Groups to attach this policy to.You can also use
attachToGroup(group)
to attach this policy to a group.Default: - No groups.
- Specified by:
getGroups
in interfacePolicyProps
-
getPolicyName
Description copied from interface:PolicyProps
The 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:
getPolicyName
in interfacePolicyProps
-
getRoles
Description copied from interface:PolicyProps
Roles to attach this policy to.You can also use
attachToRole(role)
to attach this policy to a role.Default: - No roles.
- Specified by:
getRoles
in interfacePolicyProps
-
getStatements
Description copied from interface:PolicyProps
Initial set of permissions to add to this policy document.You can also use
addStatements(...statement)
to add permissions later.Default: - No statements.
- Specified by:
getStatements
in interfacePolicyProps
-
getUsers
Description copied from interface:PolicyProps
Users to attach this policy to.You can also use
attachToUser(user)
to attach this policy to a user.Default: - No users.
- Specified by:
getUsers
in interfacePolicyProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-