com.pulumi.aws.ebs.SnapshotBlockPublicAccessArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.ebs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class SnapshotBlockPublicAccessArgs extends com.pulumi.resources.ResourceArgs {
public static final SnapshotBlockPublicAccessArgs Empty = new SnapshotBlockPublicAccessArgs();
/**
* The mode in which to enable "Block public access for snapshots" for the region. Allowed values are `block-all-sharing`, `block-new-sharing`, `unblocked`.
*
*/
@Import(name="state", required=true)
private Output state;
/**
* @return The mode in which to enable "Block public access for snapshots" for the region. Allowed values are `block-all-sharing`, `block-new-sharing`, `unblocked`.
*
*/
public Output state() {
return this.state;
}
private SnapshotBlockPublicAccessArgs() {}
private SnapshotBlockPublicAccessArgs(SnapshotBlockPublicAccessArgs $) {
this.state = $.state;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SnapshotBlockPublicAccessArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private SnapshotBlockPublicAccessArgs $;
public Builder() {
$ = new SnapshotBlockPublicAccessArgs();
}
public Builder(SnapshotBlockPublicAccessArgs defaults) {
$ = new SnapshotBlockPublicAccessArgs(Objects.requireNonNull(defaults));
}
/**
* @param state The mode in which to enable "Block public access for snapshots" for the region. Allowed values are `block-all-sharing`, `block-new-sharing`, `unblocked`.
*
* @return builder
*
*/
public Builder state(Output state) {
$.state = state;
return this;
}
/**
* @param state The mode in which to enable "Block public access for snapshots" for the region. Allowed values are `block-all-sharing`, `block-new-sharing`, `unblocked`.
*
* @return builder
*
*/
public Builder state(String state) {
return state(Output.of(state));
}
public SnapshotBlockPublicAccessArgs build() {
if ($.state == null) {
throw new MissingRequiredPropertyException("SnapshotBlockPublicAccessArgs", "state");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy