Class CfnPolicyPropsMixin.PolicyDefinitionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.verifiedpermissions.CfnPolicyPropsMixin.PolicyDefinitionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPolicyPropsMixin.PolicyDefinitionProperty>
- Enclosing interface:
CfnPolicyPropsMixin.PolicyDefinitionProperty
@Stability(Stable)
public static final class CfnPolicyPropsMixin.PolicyDefinitionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPolicyPropsMixin.PolicyDefinitionProperty>
A builder for
CfnPolicyPropsMixin.PolicyDefinitionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnPolicyPropsMixin.PolicyDefinitionProperty.getStaticValue()staticValue(IResolvable staticValue) Sets the value ofCfnPolicyPropsMixin.PolicyDefinitionProperty.getStaticValue()Sets the value ofCfnPolicyPropsMixin.PolicyDefinitionProperty.getTemplateLinked()templateLinked(IResolvable templateLinked) Sets the value ofCfnPolicyPropsMixin.PolicyDefinitionProperty.getTemplateLinked()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
staticValue
@Stability(Stable) public CfnPolicyPropsMixin.PolicyDefinitionProperty.Builder staticValue(IResolvable staticValue) Sets the value ofCfnPolicyPropsMixin.PolicyDefinitionProperty.getStaticValue()- Parameters:
staticValue- A structure that describes a static policy. An static policy doesn't use a template or allow placeholders for entities.- Returns:
this
-
staticValue
@Stability(Stable) public CfnPolicyPropsMixin.PolicyDefinitionProperty.Builder staticValue(CfnPolicyPropsMixin.StaticPolicyDefinitionProperty staticValue) Sets the value ofCfnPolicyPropsMixin.PolicyDefinitionProperty.getStaticValue()- Parameters:
staticValue- A structure that describes a static policy. An static policy doesn't use a template or allow placeholders for entities.- Returns:
this
-
templateLinked
@Stability(Stable) public CfnPolicyPropsMixin.PolicyDefinitionProperty.Builder templateLinked(IResolvable templateLinked) Sets the value ofCfnPolicyPropsMixin.PolicyDefinitionProperty.getTemplateLinked()- Parameters:
templateLinked- A structure that describes a policy that was instantiated from a template. The template can specify placeholders forprincipalandresource. When you use CreatePolicy to create a policy from a template, you specify the exact principal and resource to use for the instantiated policy.- Returns:
this
-
templateLinked
@Stability(Stable) public CfnPolicyPropsMixin.PolicyDefinitionProperty.Builder templateLinked(CfnPolicyPropsMixin.TemplateLinkedPolicyDefinitionProperty templateLinked) Sets the value ofCfnPolicyPropsMixin.PolicyDefinitionProperty.getTemplateLinked()- Parameters:
templateLinked- A structure that describes a policy that was instantiated from a template. The template can specify placeholders forprincipalandresource. When you use CreatePolicy to create a policy from a template, you specify the exact principal and resource to use for the instantiated policy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPolicyPropsMixin.PolicyDefinitionProperty>- Returns:
- a new instance of
CfnPolicyPropsMixin.PolicyDefinitionProperty - Throws:
NullPointerException- if any required attribute was not provided
-