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

com.pulumi.aws.ec2.ImageBlockPublicAccessArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show newest version
// *** 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.ec2;

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 ImageBlockPublicAccessArgs extends com.pulumi.resources.ResourceArgs {

    public static final ImageBlockPublicAccessArgs Empty = new ImageBlockPublicAccessArgs();

    /**
     * The state of block public access for AMIs at the account level in the configured AWS Region. Valid values: `unblocked` and `block-new-sharing`.
     * 
     */
    @Import(name="state", required=true)
    private Output state;

    /**
     * @return The state of block public access for AMIs at the account level in the configured AWS Region. Valid values: `unblocked` and `block-new-sharing`.
     * 
     */
    public Output state() {
        return this.state;
    }

    private ImageBlockPublicAccessArgs() {}

    private ImageBlockPublicAccessArgs(ImageBlockPublicAccessArgs $) {
        this.state = $.state;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(ImageBlockPublicAccessArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private ImageBlockPublicAccessArgs $;

        public Builder() {
            $ = new ImageBlockPublicAccessArgs();
        }

        public Builder(ImageBlockPublicAccessArgs defaults) {
            $ = new ImageBlockPublicAccessArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param state The state of block public access for AMIs at the account level in the configured AWS Region. Valid values: `unblocked` and `block-new-sharing`.
         * 
         * @return builder
         * 
         */
        public Builder state(Output state) {
            $.state = state;
            return this;
        }

        /**
         * @param state The state of block public access for AMIs at the account level in the configured AWS Region. Valid values: `unblocked` and `block-new-sharing`.
         * 
         * @return builder
         * 
         */
        public Builder state(String state) {
            return state(Output.of(state));
        }

        public ImageBlockPublicAccessArgs build() {
            if ($.state == null) {
                throw new MissingRequiredPropertyException("ImageBlockPublicAccessArgs", "state");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy