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

software.amazon.awscdk.cli.lib.alpha.BootstrapOptions Maven / Gradle / Ivy

There is a newer version: 2.169.0-alpha.0
Show newest version
package software.amazon.awscdk.cli.lib.alpha;

/**
 * (experimental) Options to use with cdk bootstrap.
 * 

* Example: *

*

 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import software.amazon.awscdk.cli.lib.alpha.*;
 * BootstrapOptions bootstrapOptions = BootstrapOptions.builder()
 *         .assetMetadata(false)
 *         .bootstrapBucketName("bootstrapBucketName")
 *         .bootstrapCustomerKey("bootstrapCustomerKey")
 *         .bootstrapKmsKeyId("bootstrapKmsKeyId")
 *         .caBundlePath("caBundlePath")
 *         .cfnExecutionPolicy("cfnExecutionPolicy")
 *         .color(false)
 *         .context(Map.of(
 *                 "contextKey", "context"))
 *         .customPermissionsBoundary("customPermissionsBoundary")
 *         .debug(false)
 *         .ec2Creds(false)
 *         .examplePermissionsBoundary(false)
 *         .execute(false)
 *         .force(false)
 *         .ignoreErrors(false)
 *         .json(false)
 *         .lookups(false)
 *         .notices(false)
 *         .pathMetadata(false)
 *         .profile("profile")
 *         .proxy("proxy")
 *         .publicAccessBlockConfiguration("publicAccessBlockConfiguration")
 *         .qualifier("qualifier")
 *         .roleArn("roleArn")
 *         .showTemplate(false)
 *         .stacks(List.of("stacks"))
 *         .staging(false)
 *         .strict(false)
 *         .template("template")
 *         .terminationProtection(false)
 *         .toolkitStackName("toolkitStackName")
 *         .trace(false)
 *         .trust("trust")
 *         .trustForLookup("trustForLookup")
 *         .usePreviousParameters(false)
 *         .verbose(false)
 *         .versionReporting(false)
 *         .build();
 * 
*/ @javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-09-11T18:01:25.295Z") @software.amazon.jsii.Jsii(module = software.amazon.awscdk.cli.lib.alpha.$Module.class, fqn = "@aws-cdk/cli-lib-alpha.BootstrapOptions") @software.amazon.jsii.Jsii.Proxy(BootstrapOptions.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface BootstrapOptions extends software.amazon.jsii.JsiiSerializable, software.amazon.awscdk.cli.lib.alpha.SharedOptions { /** * (experimental) The name of the CDK toolkit bucket; *

* bucket will be created and * must not exist *

* Default: - auto-generated CloudFormation name */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.String getBootstrapBucketName() { return null; } /** * (experimental) Create a Customer Master Key (CMK) for the bootstrap bucket (you will be charged but can customize permissions, modern bootstrapping only). *

* Default: undefined */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.String getBootstrapCustomerKey() { return null; } /** * (experimental) AWS KMS master key ID used for the SSE-KMS encryption. *

* Default: undefined */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.String getBootstrapKmsKeyId() { return null; } /** * (experimental) The Managed Policy ARNs that should be attached to the role performing deployments into this environment (may be repeated, modern bootstrapping only). *

* Default: - none */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.String getCfnExecutionPolicy() { return null; } /** * (experimental) Use the permissions boundary specified by name. *

* Default: undefined */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.String getCustomPermissionsBoundary() { return null; } /** * (experimental) Use the example permissions boundary. *

* Default: undefined */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.Boolean getExamplePermissionsBoundary() { return null; } /** * (experimental) Whether to execute ChangeSet (--no-execute will NOT execute the ChangeSet). *

* Default: true */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.Boolean getExecute() { return null; } /** * (experimental) Always bootstrap even if it would downgrade template version. *

* Default: false */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.Boolean getForce() { return null; } /** * (experimental) Block public access configuration on CDK toolkit bucket (enabled by default). *

* Default: undefined */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.String getPublicAccessBlockConfiguration() { return null; } /** * (experimental) String which must be unique for each bootstrap stack. *

* You * must configure it on your CDK app if you change this * from the default. *

* Default: undefined */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.String getQualifier() { return null; } /** * (experimental) Instead of actual bootstrapping, print the current CLI's bootstrapping template to stdout for customization. *

* Default: false */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.Boolean getShowTemplate() { return null; } /** * (experimental) Use the template from the given file instead of the built-in one (use --show-template to obtain an example). */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.String getTemplate() { return null; } /** * (experimental) Toggle CloudFormation termination protection on the bootstrap stacks. *

* Default: false */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.Boolean getTerminationProtection() { return null; } /** * (experimental) The name of the CDK toolkit stack to create. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.String getToolkitStackName() { return null; } /** * (experimental) The AWS account IDs that should be trusted to perform deployments into this environment (may be repeated, modern bootstrapping only). *

* Default: undefined */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.String getTrust() { return null; } /** * (experimental) The AWS account IDs that should be trusted to look up values in this environment (may be repeated, modern bootstrapping only). *

* Default: undefined */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.String getTrustForLookup() { return null; } /** * (experimental) Use previous values for existing parameters (you must specify all parameters on every deployment if this is disabled). *

* Default: true */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.Boolean getUsePreviousParameters() { return null; } /** * @return a {@link Builder} of {@link BootstrapOptions} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) static Builder builder() { return new Builder(); } /** * A builder for {@link BootstrapOptions} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static final class Builder implements software.amazon.jsii.Builder { java.lang.String bootstrapBucketName; java.lang.String bootstrapCustomerKey; java.lang.String bootstrapKmsKeyId; java.lang.String cfnExecutionPolicy; java.lang.String customPermissionsBoundary; java.lang.Boolean examplePermissionsBoundary; java.lang.Boolean execute; java.lang.Boolean force; java.lang.String publicAccessBlockConfiguration; java.lang.String qualifier; java.lang.Boolean showTemplate; java.lang.String template; java.lang.Boolean terminationProtection; java.lang.String toolkitStackName; java.lang.String trust; java.lang.String trustForLookup; java.lang.Boolean usePreviousParameters; java.lang.Boolean assetMetadata; java.lang.String caBundlePath; java.lang.Boolean color; java.util.Map context; java.lang.Boolean debug; java.lang.Boolean ec2Creds; java.lang.Boolean ignoreErrors; java.lang.Boolean json; java.lang.Boolean lookups; java.lang.Boolean notices; java.lang.Boolean pathMetadata; java.lang.String profile; java.lang.String proxy; java.lang.String roleArn; java.util.List stacks; java.lang.Boolean staging; java.lang.Boolean strict; java.lang.Boolean trace; java.lang.Boolean verbose; java.lang.Boolean versionReporting; /** * Sets the value of {@link BootstrapOptions#getBootstrapBucketName} * @param bootstrapBucketName The name of the CDK toolkit bucket;. * bucket will be created and * must not exist * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder bootstrapBucketName(java.lang.String bootstrapBucketName) { this.bootstrapBucketName = bootstrapBucketName; return this; } /** * Sets the value of {@link BootstrapOptions#getBootstrapCustomerKey} * @param bootstrapCustomerKey Create a Customer Master Key (CMK) for the bootstrap bucket (you will be charged but can customize permissions, modern bootstrapping only). * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder bootstrapCustomerKey(java.lang.String bootstrapCustomerKey) { this.bootstrapCustomerKey = bootstrapCustomerKey; return this; } /** * Sets the value of {@link BootstrapOptions#getBootstrapKmsKeyId} * @param bootstrapKmsKeyId AWS KMS master key ID used for the SSE-KMS encryption. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder bootstrapKmsKeyId(java.lang.String bootstrapKmsKeyId) { this.bootstrapKmsKeyId = bootstrapKmsKeyId; return this; } /** * Sets the value of {@link BootstrapOptions#getCfnExecutionPolicy} * @param cfnExecutionPolicy The Managed Policy ARNs that should be attached to the role performing deployments into this environment (may be repeated, modern bootstrapping only). * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder cfnExecutionPolicy(java.lang.String cfnExecutionPolicy) { this.cfnExecutionPolicy = cfnExecutionPolicy; return this; } /** * Sets the value of {@link BootstrapOptions#getCustomPermissionsBoundary} * @param customPermissionsBoundary Use the permissions boundary specified by name. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder customPermissionsBoundary(java.lang.String customPermissionsBoundary) { this.customPermissionsBoundary = customPermissionsBoundary; return this; } /** * Sets the value of {@link BootstrapOptions#getExamplePermissionsBoundary} * @param examplePermissionsBoundary Use the example permissions boundary. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder examplePermissionsBoundary(java.lang.Boolean examplePermissionsBoundary) { this.examplePermissionsBoundary = examplePermissionsBoundary; return this; } /** * Sets the value of {@link BootstrapOptions#getExecute} * @param execute Whether to execute ChangeSet (--no-execute will NOT execute the ChangeSet). * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder execute(java.lang.Boolean execute) { this.execute = execute; return this; } /** * Sets the value of {@link BootstrapOptions#getForce} * @param force Always bootstrap even if it would downgrade template version. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder force(java.lang.Boolean force) { this.force = force; return this; } /** * Sets the value of {@link BootstrapOptions#getPublicAccessBlockConfiguration} * @param publicAccessBlockConfiguration Block public access configuration on CDK toolkit bucket (enabled by default). * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder publicAccessBlockConfiguration(java.lang.String publicAccessBlockConfiguration) { this.publicAccessBlockConfiguration = publicAccessBlockConfiguration; return this; } /** * Sets the value of {@link BootstrapOptions#getQualifier} * @param qualifier String which must be unique for each bootstrap stack. * You * must configure it on your CDK app if you change this * from the default. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder qualifier(java.lang.String qualifier) { this.qualifier = qualifier; return this; } /** * Sets the value of {@link BootstrapOptions#getShowTemplate} * @param showTemplate Instead of actual bootstrapping, print the current CLI's bootstrapping template to stdout for customization. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder showTemplate(java.lang.Boolean showTemplate) { this.showTemplate = showTemplate; return this; } /** * Sets the value of {@link BootstrapOptions#getTemplate} * @param template Use the template from the given file instead of the built-in one (use --show-template to obtain an example). * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder template(java.lang.String template) { this.template = template; return this; } /** * Sets the value of {@link BootstrapOptions#getTerminationProtection} * @param terminationProtection Toggle CloudFormation termination protection on the bootstrap stacks. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder terminationProtection(java.lang.Boolean terminationProtection) { this.terminationProtection = terminationProtection; return this; } /** * Sets the value of {@link BootstrapOptions#getToolkitStackName} * @param toolkitStackName The name of the CDK toolkit stack to create. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder toolkitStackName(java.lang.String toolkitStackName) { this.toolkitStackName = toolkitStackName; return this; } /** * Sets the value of {@link BootstrapOptions#getTrust} * @param trust The AWS account IDs that should be trusted to perform deployments into this environment (may be repeated, modern bootstrapping only). * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder trust(java.lang.String trust) { this.trust = trust; return this; } /** * Sets the value of {@link BootstrapOptions#getTrustForLookup} * @param trustForLookup The AWS account IDs that should be trusted to look up values in this environment (may be repeated, modern bootstrapping only). * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder trustForLookup(java.lang.String trustForLookup) { this.trustForLookup = trustForLookup; return this; } /** * Sets the value of {@link BootstrapOptions#getUsePreviousParameters} * @param usePreviousParameters Use previous values for existing parameters (you must specify all parameters on every deployment if this is disabled). * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder usePreviousParameters(java.lang.Boolean usePreviousParameters) { this.usePreviousParameters = usePreviousParameters; return this; } /** * Sets the value of {@link BootstrapOptions#getAssetMetadata} * @param assetMetadata Include "aws:asset:*" CloudFormation metadata for resources that use assets. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder assetMetadata(java.lang.Boolean assetMetadata) { this.assetMetadata = assetMetadata; return this; } /** * Sets the value of {@link BootstrapOptions#getCaBundlePath} * @param caBundlePath Path to CA certificate to use when validating HTTPS requests. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder caBundlePath(java.lang.String caBundlePath) { this.caBundlePath = caBundlePath; return this; } /** * Sets the value of {@link BootstrapOptions#getColor} * @param color Show colors and other style from console output. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder color(java.lang.Boolean color) { this.color = color; return this; } /** * Sets the value of {@link BootstrapOptions#getContext} * @param context Additional context. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder context(java.util.Map context) { this.context = context; return this; } /** * Sets the value of {@link BootstrapOptions#getDebug} * @param debug enable emission of additional debugging information, such as creation stack traces of tokens. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder debug(java.lang.Boolean debug) { this.debug = debug; return this; } /** * Sets the value of {@link BootstrapOptions#getEc2Creds} * @param ec2Creds Force trying to fetch EC2 instance credentials. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder ec2Creds(java.lang.Boolean ec2Creds) { this.ec2Creds = ec2Creds; return this; } /** * Sets the value of {@link BootstrapOptions#getIgnoreErrors} * @param ignoreErrors Ignores synthesis errors, which will likely produce an invalid output. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder ignoreErrors(java.lang.Boolean ignoreErrors) { this.ignoreErrors = ignoreErrors; return this; } /** * Sets the value of {@link BootstrapOptions#getJson} * @param json Use JSON output instead of YAML when templates are printed to STDOUT. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder json(java.lang.Boolean json) { this.json = json; return this; } /** * Sets the value of {@link BootstrapOptions#getLookups} * @param lookups Perform context lookups. * Synthesis fails if this is disabled and context lookups need * to be performed * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder lookups(java.lang.Boolean lookups) { this.lookups = lookups; return this; } /** * Sets the value of {@link BootstrapOptions#getNotices} * @param notices Show relevant notices. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder notices(java.lang.Boolean notices) { this.notices = notices; return this; } /** * Sets the value of {@link BootstrapOptions#getPathMetadata} * @param pathMetadata Include "aws:cdk:path" CloudFormation metadata for each resource. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder pathMetadata(java.lang.Boolean pathMetadata) { this.pathMetadata = pathMetadata; return this; } /** * Sets the value of {@link BootstrapOptions#getProfile} * @param profile Use the indicated AWS profile as the default environment. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder profile(java.lang.String profile) { this.profile = profile; return this; } /** * Sets the value of {@link BootstrapOptions#getProxy} * @param proxy Use the indicated proxy. * Will read from * HTTPS_PROXY environment if specified * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder proxy(java.lang.String proxy) { this.proxy = proxy; return this; } /** * Sets the value of {@link BootstrapOptions#getRoleArn} * @param roleArn Role to pass to CloudFormation for deployment. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder roleArn(java.lang.String roleArn) { this.roleArn = roleArn; return this; } /** * Sets the value of {@link BootstrapOptions#getStacks} * @param stacks List of stacks to deploy. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder stacks(java.util.List stacks) { this.stacks = stacks; return this; } /** * Sets the value of {@link BootstrapOptions#getStaging} * @param staging Copy assets to the output directory. * Needed for local debugging the source files with SAM CLI * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder staging(java.lang.Boolean staging) { this.staging = staging; return this; } /** * Sets the value of {@link BootstrapOptions#getStrict} * @param strict Do not construct stacks with warnings. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder strict(java.lang.Boolean strict) { this.strict = strict; return this; } /** * Sets the value of {@link BootstrapOptions#getTrace} * @param trace Print trace for stack warnings. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder trace(java.lang.Boolean trace) { this.trace = trace; return this; } /** * Sets the value of {@link BootstrapOptions#getVerbose} * @param verbose show debug logs. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder verbose(java.lang.Boolean verbose) { this.verbose = verbose; return this; } /** * Sets the value of {@link BootstrapOptions#getVersionReporting} * @param versionReporting Include "AWS::CDK::Metadata" resource in synthesized templates. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder versionReporting(java.lang.Boolean versionReporting) { this.versionReporting = versionReporting; return this; } /** * Builds the configured instance. * @return a new instance of {@link BootstrapOptions} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public BootstrapOptions build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link BootstrapOptions} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements BootstrapOptions { private final java.lang.String bootstrapBucketName; private final java.lang.String bootstrapCustomerKey; private final java.lang.String bootstrapKmsKeyId; private final java.lang.String cfnExecutionPolicy; private final java.lang.String customPermissionsBoundary; private final java.lang.Boolean examplePermissionsBoundary; private final java.lang.Boolean execute; private final java.lang.Boolean force; private final java.lang.String publicAccessBlockConfiguration; private final java.lang.String qualifier; private final java.lang.Boolean showTemplate; private final java.lang.String template; private final java.lang.Boolean terminationProtection; private final java.lang.String toolkitStackName; private final java.lang.String trust; private final java.lang.String trustForLookup; private final java.lang.Boolean usePreviousParameters; private final java.lang.Boolean assetMetadata; private final java.lang.String caBundlePath; private final java.lang.Boolean color; private final java.util.Map context; private final java.lang.Boolean debug; private final java.lang.Boolean ec2Creds; private final java.lang.Boolean ignoreErrors; private final java.lang.Boolean json; private final java.lang.Boolean lookups; private final java.lang.Boolean notices; private final java.lang.Boolean pathMetadata; private final java.lang.String profile; private final java.lang.String proxy; private final java.lang.String roleArn; private final java.util.List stacks; private final java.lang.Boolean staging; private final java.lang.Boolean strict; private final java.lang.Boolean trace; private final java.lang.Boolean verbose; private final java.lang.Boolean versionReporting; /** * Constructor that initializes the object based on values retrieved from the JsiiObject. * @param objRef Reference to the JSII managed object. */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); this.bootstrapBucketName = software.amazon.jsii.Kernel.get(this, "bootstrapBucketName", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.bootstrapCustomerKey = software.amazon.jsii.Kernel.get(this, "bootstrapCustomerKey", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.bootstrapKmsKeyId = software.amazon.jsii.Kernel.get(this, "bootstrapKmsKeyId", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.cfnExecutionPolicy = software.amazon.jsii.Kernel.get(this, "cfnExecutionPolicy", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.customPermissionsBoundary = software.amazon.jsii.Kernel.get(this, "customPermissionsBoundary", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.examplePermissionsBoundary = software.amazon.jsii.Kernel.get(this, "examplePermissionsBoundary", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.execute = software.amazon.jsii.Kernel.get(this, "execute", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.force = software.amazon.jsii.Kernel.get(this, "force", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.publicAccessBlockConfiguration = software.amazon.jsii.Kernel.get(this, "publicAccessBlockConfiguration", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.qualifier = software.amazon.jsii.Kernel.get(this, "qualifier", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.showTemplate = software.amazon.jsii.Kernel.get(this, "showTemplate", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.template = software.amazon.jsii.Kernel.get(this, "template", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.terminationProtection = software.amazon.jsii.Kernel.get(this, "terminationProtection", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.toolkitStackName = software.amazon.jsii.Kernel.get(this, "toolkitStackName", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.trust = software.amazon.jsii.Kernel.get(this, "trust", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.trustForLookup = software.amazon.jsii.Kernel.get(this, "trustForLookup", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.usePreviousParameters = software.amazon.jsii.Kernel.get(this, "usePreviousParameters", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.assetMetadata = software.amazon.jsii.Kernel.get(this, "assetMetadata", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.caBundlePath = software.amazon.jsii.Kernel.get(this, "caBundlePath", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.color = software.amazon.jsii.Kernel.get(this, "color", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.context = software.amazon.jsii.Kernel.get(this, "context", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))); this.debug = software.amazon.jsii.Kernel.get(this, "debug", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.ec2Creds = software.amazon.jsii.Kernel.get(this, "ec2Creds", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.ignoreErrors = software.amazon.jsii.Kernel.get(this, "ignoreErrors", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.json = software.amazon.jsii.Kernel.get(this, "json", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.lookups = software.amazon.jsii.Kernel.get(this, "lookups", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.notices = software.amazon.jsii.Kernel.get(this, "notices", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.pathMetadata = software.amazon.jsii.Kernel.get(this, "pathMetadata", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.profile = software.amazon.jsii.Kernel.get(this, "profile", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.proxy = software.amazon.jsii.Kernel.get(this, "proxy", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.roleArn = software.amazon.jsii.Kernel.get(this, "roleArn", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.stacks = software.amazon.jsii.Kernel.get(this, "stacks", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))); this.staging = software.amazon.jsii.Kernel.get(this, "staging", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.strict = software.amazon.jsii.Kernel.get(this, "strict", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.trace = software.amazon.jsii.Kernel.get(this, "trace", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.verbose = software.amazon.jsii.Kernel.get(this, "verbose", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.versionReporting = software.amazon.jsii.Kernel.get(this, "versionReporting", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ protected Jsii$Proxy(final Builder builder) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.bootstrapBucketName = builder.bootstrapBucketName; this.bootstrapCustomerKey = builder.bootstrapCustomerKey; this.bootstrapKmsKeyId = builder.bootstrapKmsKeyId; this.cfnExecutionPolicy = builder.cfnExecutionPolicy; this.customPermissionsBoundary = builder.customPermissionsBoundary; this.examplePermissionsBoundary = builder.examplePermissionsBoundary; this.execute = builder.execute; this.force = builder.force; this.publicAccessBlockConfiguration = builder.publicAccessBlockConfiguration; this.qualifier = builder.qualifier; this.showTemplate = builder.showTemplate; this.template = builder.template; this.terminationProtection = builder.terminationProtection; this.toolkitStackName = builder.toolkitStackName; this.trust = builder.trust; this.trustForLookup = builder.trustForLookup; this.usePreviousParameters = builder.usePreviousParameters; this.assetMetadata = builder.assetMetadata; this.caBundlePath = builder.caBundlePath; this.color = builder.color; this.context = builder.context; this.debug = builder.debug; this.ec2Creds = builder.ec2Creds; this.ignoreErrors = builder.ignoreErrors; this.json = builder.json; this.lookups = builder.lookups; this.notices = builder.notices; this.pathMetadata = builder.pathMetadata; this.profile = builder.profile; this.proxy = builder.proxy; this.roleArn = builder.roleArn; this.stacks = builder.stacks; this.staging = builder.staging; this.strict = builder.strict; this.trace = builder.trace; this.verbose = builder.verbose; this.versionReporting = builder.versionReporting; } @Override public final java.lang.String getBootstrapBucketName() { return this.bootstrapBucketName; } @Override public final java.lang.String getBootstrapCustomerKey() { return this.bootstrapCustomerKey; } @Override public final java.lang.String getBootstrapKmsKeyId() { return this.bootstrapKmsKeyId; } @Override public final java.lang.String getCfnExecutionPolicy() { return this.cfnExecutionPolicy; } @Override public final java.lang.String getCustomPermissionsBoundary() { return this.customPermissionsBoundary; } @Override public final java.lang.Boolean getExamplePermissionsBoundary() { return this.examplePermissionsBoundary; } @Override public final java.lang.Boolean getExecute() { return this.execute; } @Override public final java.lang.Boolean getForce() { return this.force; } @Override public final java.lang.String getPublicAccessBlockConfiguration() { return this.publicAccessBlockConfiguration; } @Override public final java.lang.String getQualifier() { return this.qualifier; } @Override public final java.lang.Boolean getShowTemplate() { return this.showTemplate; } @Override public final java.lang.String getTemplate() { return this.template; } @Override public final java.lang.Boolean getTerminationProtection() { return this.terminationProtection; } @Override public final java.lang.String getToolkitStackName() { return this.toolkitStackName; } @Override public final java.lang.String getTrust() { return this.trust; } @Override public final java.lang.String getTrustForLookup() { return this.trustForLookup; } @Override public final java.lang.Boolean getUsePreviousParameters() { return this.usePreviousParameters; } @Override public final java.lang.Boolean getAssetMetadata() { return this.assetMetadata; } @Override public final java.lang.String getCaBundlePath() { return this.caBundlePath; } @Override public final java.lang.Boolean getColor() { return this.color; } @Override public final java.util.Map getContext() { return this.context; } @Override public final java.lang.Boolean getDebug() { return this.debug; } @Override public final java.lang.Boolean getEc2Creds() { return this.ec2Creds; } @Override public final java.lang.Boolean getIgnoreErrors() { return this.ignoreErrors; } @Override public final java.lang.Boolean getJson() { return this.json; } @Override public final java.lang.Boolean getLookups() { return this.lookups; } @Override public final java.lang.Boolean getNotices() { return this.notices; } @Override public final java.lang.Boolean getPathMetadata() { return this.pathMetadata; } @Override public final java.lang.String getProfile() { return this.profile; } @Override public final java.lang.String getProxy() { return this.proxy; } @Override public final java.lang.String getRoleArn() { return this.roleArn; } @Override public final java.util.List getStacks() { return this.stacks; } @Override public final java.lang.Boolean getStaging() { return this.staging; } @Override public final java.lang.Boolean getStrict() { return this.strict; } @Override public final java.lang.Boolean getTrace() { return this.trace; } @Override public final java.lang.Boolean getVerbose() { return this.verbose; } @Override public final java.lang.Boolean getVersionReporting() { return this.versionReporting; } @Override @software.amazon.jsii.Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); if (this.getBootstrapBucketName() != null) { data.set("bootstrapBucketName", om.valueToTree(this.getBootstrapBucketName())); } if (this.getBootstrapCustomerKey() != null) { data.set("bootstrapCustomerKey", om.valueToTree(this.getBootstrapCustomerKey())); } if (this.getBootstrapKmsKeyId() != null) { data.set("bootstrapKmsKeyId", om.valueToTree(this.getBootstrapKmsKeyId())); } if (this.getCfnExecutionPolicy() != null) { data.set("cfnExecutionPolicy", om.valueToTree(this.getCfnExecutionPolicy())); } if (this.getCustomPermissionsBoundary() != null) { data.set("customPermissionsBoundary", om.valueToTree(this.getCustomPermissionsBoundary())); } if (this.getExamplePermissionsBoundary() != null) { data.set("examplePermissionsBoundary", om.valueToTree(this.getExamplePermissionsBoundary())); } if (this.getExecute() != null) { data.set("execute", om.valueToTree(this.getExecute())); } if (this.getForce() != null) { data.set("force", om.valueToTree(this.getForce())); } if (this.getPublicAccessBlockConfiguration() != null) { data.set("publicAccessBlockConfiguration", om.valueToTree(this.getPublicAccessBlockConfiguration())); } if (this.getQualifier() != null) { data.set("qualifier", om.valueToTree(this.getQualifier())); } if (this.getShowTemplate() != null) { data.set("showTemplate", om.valueToTree(this.getShowTemplate())); } if (this.getTemplate() != null) { data.set("template", om.valueToTree(this.getTemplate())); } if (this.getTerminationProtection() != null) { data.set("terminationProtection", om.valueToTree(this.getTerminationProtection())); } if (this.getToolkitStackName() != null) { data.set("toolkitStackName", om.valueToTree(this.getToolkitStackName())); } if (this.getTrust() != null) { data.set("trust", om.valueToTree(this.getTrust())); } if (this.getTrustForLookup() != null) { data.set("trustForLookup", om.valueToTree(this.getTrustForLookup())); } if (this.getUsePreviousParameters() != null) { data.set("usePreviousParameters", om.valueToTree(this.getUsePreviousParameters())); } if (this.getAssetMetadata() != null) { data.set("assetMetadata", om.valueToTree(this.getAssetMetadata())); } if (this.getCaBundlePath() != null) { data.set("caBundlePath", om.valueToTree(this.getCaBundlePath())); } if (this.getColor() != null) { data.set("color", om.valueToTree(this.getColor())); } if (this.getContext() != null) { data.set("context", om.valueToTree(this.getContext())); } if (this.getDebug() != null) { data.set("debug", om.valueToTree(this.getDebug())); } if (this.getEc2Creds() != null) { data.set("ec2Creds", om.valueToTree(this.getEc2Creds())); } if (this.getIgnoreErrors() != null) { data.set("ignoreErrors", om.valueToTree(this.getIgnoreErrors())); } if (this.getJson() != null) { data.set("json", om.valueToTree(this.getJson())); } if (this.getLookups() != null) { data.set("lookups", om.valueToTree(this.getLookups())); } if (this.getNotices() != null) { data.set("notices", om.valueToTree(this.getNotices())); } if (this.getPathMetadata() != null) { data.set("pathMetadata", om.valueToTree(this.getPathMetadata())); } if (this.getProfile() != null) { data.set("profile", om.valueToTree(this.getProfile())); } if (this.getProxy() != null) { data.set("proxy", om.valueToTree(this.getProxy())); } if (this.getRoleArn() != null) { data.set("roleArn", om.valueToTree(this.getRoleArn())); } if (this.getStacks() != null) { data.set("stacks", om.valueToTree(this.getStacks())); } if (this.getStaging() != null) { data.set("staging", om.valueToTree(this.getStaging())); } if (this.getStrict() != null) { data.set("strict", om.valueToTree(this.getStrict())); } if (this.getTrace() != null) { data.set("trace", om.valueToTree(this.getTrace())); } if (this.getVerbose() != null) { data.set("verbose", om.valueToTree(this.getVerbose())); } if (this.getVersionReporting() != null) { data.set("versionReporting", om.valueToTree(this.getVersionReporting())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@aws-cdk/cli-lib-alpha.BootstrapOptions")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); obj.set("$jsii.struct", struct); return obj; } @Override public final boolean equals(final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; BootstrapOptions.Jsii$Proxy that = (BootstrapOptions.Jsii$Proxy) o; if (this.bootstrapBucketName != null ? !this.bootstrapBucketName.equals(that.bootstrapBucketName) : that.bootstrapBucketName != null) return false; if (this.bootstrapCustomerKey != null ? !this.bootstrapCustomerKey.equals(that.bootstrapCustomerKey) : that.bootstrapCustomerKey != null) return false; if (this.bootstrapKmsKeyId != null ? !this.bootstrapKmsKeyId.equals(that.bootstrapKmsKeyId) : that.bootstrapKmsKeyId != null) return false; if (this.cfnExecutionPolicy != null ? !this.cfnExecutionPolicy.equals(that.cfnExecutionPolicy) : that.cfnExecutionPolicy != null) return false; if (this.customPermissionsBoundary != null ? !this.customPermissionsBoundary.equals(that.customPermissionsBoundary) : that.customPermissionsBoundary != null) return false; if (this.examplePermissionsBoundary != null ? !this.examplePermissionsBoundary.equals(that.examplePermissionsBoundary) : that.examplePermissionsBoundary != null) return false; if (this.execute != null ? !this.execute.equals(that.execute) : that.execute != null) return false; if (this.force != null ? !this.force.equals(that.force) : that.force != null) return false; if (this.publicAccessBlockConfiguration != null ? !this.publicAccessBlockConfiguration.equals(that.publicAccessBlockConfiguration) : that.publicAccessBlockConfiguration != null) return false; if (this.qualifier != null ? !this.qualifier.equals(that.qualifier) : that.qualifier != null) return false; if (this.showTemplate != null ? !this.showTemplate.equals(that.showTemplate) : that.showTemplate != null) return false; if (this.template != null ? !this.template.equals(that.template) : that.template != null) return false; if (this.terminationProtection != null ? !this.terminationProtection.equals(that.terminationProtection) : that.terminationProtection != null) return false; if (this.toolkitStackName != null ? !this.toolkitStackName.equals(that.toolkitStackName) : that.toolkitStackName != null) return false; if (this.trust != null ? !this.trust.equals(that.trust) : that.trust != null) return false; if (this.trustForLookup != null ? !this.trustForLookup.equals(that.trustForLookup) : that.trustForLookup != null) return false; if (this.usePreviousParameters != null ? !this.usePreviousParameters.equals(that.usePreviousParameters) : that.usePreviousParameters != null) return false; if (this.assetMetadata != null ? !this.assetMetadata.equals(that.assetMetadata) : that.assetMetadata != null) return false; if (this.caBundlePath != null ? !this.caBundlePath.equals(that.caBundlePath) : that.caBundlePath != null) return false; if (this.color != null ? !this.color.equals(that.color) : that.color != null) return false; if (this.context != null ? !this.context.equals(that.context) : that.context != null) return false; if (this.debug != null ? !this.debug.equals(that.debug) : that.debug != null) return false; if (this.ec2Creds != null ? !this.ec2Creds.equals(that.ec2Creds) : that.ec2Creds != null) return false; if (this.ignoreErrors != null ? !this.ignoreErrors.equals(that.ignoreErrors) : that.ignoreErrors != null) return false; if (this.json != null ? !this.json.equals(that.json) : that.json != null) return false; if (this.lookups != null ? !this.lookups.equals(that.lookups) : that.lookups != null) return false; if (this.notices != null ? !this.notices.equals(that.notices) : that.notices != null) return false; if (this.pathMetadata != null ? !this.pathMetadata.equals(that.pathMetadata) : that.pathMetadata != null) return false; if (this.profile != null ? !this.profile.equals(that.profile) : that.profile != null) return false; if (this.proxy != null ? !this.proxy.equals(that.proxy) : that.proxy != null) return false; if (this.roleArn != null ? !this.roleArn.equals(that.roleArn) : that.roleArn != null) return false; if (this.stacks != null ? !this.stacks.equals(that.stacks) : that.stacks != null) return false; if (this.staging != null ? !this.staging.equals(that.staging) : that.staging != null) return false; if (this.strict != null ? !this.strict.equals(that.strict) : that.strict != null) return false; if (this.trace != null ? !this.trace.equals(that.trace) : that.trace != null) return false; if (this.verbose != null ? !this.verbose.equals(that.verbose) : that.verbose != null) return false; return this.versionReporting != null ? this.versionReporting.equals(that.versionReporting) : that.versionReporting == null; } @Override public final int hashCode() { int result = this.bootstrapBucketName != null ? this.bootstrapBucketName.hashCode() : 0; result = 31 * result + (this.bootstrapCustomerKey != null ? this.bootstrapCustomerKey.hashCode() : 0); result = 31 * result + (this.bootstrapKmsKeyId != null ? this.bootstrapKmsKeyId.hashCode() : 0); result = 31 * result + (this.cfnExecutionPolicy != null ? this.cfnExecutionPolicy.hashCode() : 0); result = 31 * result + (this.customPermissionsBoundary != null ? this.customPermissionsBoundary.hashCode() : 0); result = 31 * result + (this.examplePermissionsBoundary != null ? this.examplePermissionsBoundary.hashCode() : 0); result = 31 * result + (this.execute != null ? this.execute.hashCode() : 0); result = 31 * result + (this.force != null ? this.force.hashCode() : 0); result = 31 * result + (this.publicAccessBlockConfiguration != null ? this.publicAccessBlockConfiguration.hashCode() : 0); result = 31 * result + (this.qualifier != null ? this.qualifier.hashCode() : 0); result = 31 * result + (this.showTemplate != null ? this.showTemplate.hashCode() : 0); result = 31 * result + (this.template != null ? this.template.hashCode() : 0); result = 31 * result + (this.terminationProtection != null ? this.terminationProtection.hashCode() : 0); result = 31 * result + (this.toolkitStackName != null ? this.toolkitStackName.hashCode() : 0); result = 31 * result + (this.trust != null ? this.trust.hashCode() : 0); result = 31 * result + (this.trustForLookup != null ? this.trustForLookup.hashCode() : 0); result = 31 * result + (this.usePreviousParameters != null ? this.usePreviousParameters.hashCode() : 0); result = 31 * result + (this.assetMetadata != null ? this.assetMetadata.hashCode() : 0); result = 31 * result + (this.caBundlePath != null ? this.caBundlePath.hashCode() : 0); result = 31 * result + (this.color != null ? this.color.hashCode() : 0); result = 31 * result + (this.context != null ? this.context.hashCode() : 0); result = 31 * result + (this.debug != null ? this.debug.hashCode() : 0); result = 31 * result + (this.ec2Creds != null ? this.ec2Creds.hashCode() : 0); result = 31 * result + (this.ignoreErrors != null ? this.ignoreErrors.hashCode() : 0); result = 31 * result + (this.json != null ? this.json.hashCode() : 0); result = 31 * result + (this.lookups != null ? this.lookups.hashCode() : 0); result = 31 * result + (this.notices != null ? this.notices.hashCode() : 0); result = 31 * result + (this.pathMetadata != null ? this.pathMetadata.hashCode() : 0); result = 31 * result + (this.profile != null ? this.profile.hashCode() : 0); result = 31 * result + (this.proxy != null ? this.proxy.hashCode() : 0); result = 31 * result + (this.roleArn != null ? this.roleArn.hashCode() : 0); result = 31 * result + (this.stacks != null ? this.stacks.hashCode() : 0); result = 31 * result + (this.staging != null ? this.staging.hashCode() : 0); result = 31 * result + (this.strict != null ? this.strict.hashCode() : 0); result = 31 * result + (this.trace != null ? this.trace.hashCode() : 0); result = 31 * result + (this.verbose != null ? this.verbose.hashCode() : 0); result = 31 * result + (this.versionReporting != null ? this.versionReporting.hashCode() : 0); return result; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy