All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pepperize.cdk.organizations.PolicyAttachment Maven / Gradle / Ivy

Go to download

Manage AWS organizations, organizational units (OU), accounts and service control policies (SCP).

There is a newer version: 0.7.969
Show newest version
package com.pepperize.cdk.organizations;

/**
 * Attaches a policy to a root, an organizational unit (OU), or an individual account.
 * 

* How the policy affects accounts depends on the type of policy. Refer to the AWS Organizations User Guide for information about each policy type: */ @javax.annotation.Generated(value = "jsii-pacmak/1.98.0 (build 00b106d)", date = "2024-05-17T01:18:02.671Z") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Jsii(module = com.pepperize.cdk.organizations.$Module.class, fqn = "@pepperize/cdk-organizations.PolicyAttachment") public class PolicyAttachment extends software.constructs.Construct { protected PolicyAttachment(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } protected PolicyAttachment(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { super(initializationMode); } /** * @param scope This parameter is required. * @param id This parameter is required. * @param props This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public PolicyAttachment(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull com.pepperize.cdk.organizations.PolicyAttachmentProps props) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") }); } /** * A fluent builder for {@link com.pepperize.cdk.organizations.PolicyAttachment}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { /** * @return a new instance of {@link Builder}. * @param scope This parameter is required. * @param id This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static Builder create(final software.constructs.Construct scope, final java.lang.String id) { return new Builder(scope, id); } private final software.constructs.Construct scope; private final java.lang.String id; private final com.pepperize.cdk.organizations.PolicyAttachmentProps.Builder props; private Builder(final software.constructs.Construct scope, final java.lang.String id) { this.scope = scope; this.id = id; this.props = new com.pepperize.cdk.organizations.PolicyAttachmentProps.Builder(); } /** * The policy that you want to attach to the target. *

* @return {@code this} * @param policy The policy that you want to attach to the target. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder policy(final com.pepperize.cdk.organizations.IPolicy policy) { this.props.policy(policy); return this; } /** * The root, OU, or account that you want to attach the policy to. *

* @return {@code this} * @param target The root, OU, or account that you want to attach the policy to. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder target(final com.pepperize.cdk.organizations.IPolicyAttachmentTarget target) { this.props.target(target); return this; } /** * @return a newly built instance of {@link com.pepperize.cdk.organizations.PolicyAttachment}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public com.pepperize.cdk.organizations.PolicyAttachment build() { return new com.pepperize.cdk.organizations.PolicyAttachment( this.scope, this.id, this.props.build() ); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy