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

com.pulumi.aws.ec2.AmiLaunchPermissionArgs 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.66.3
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;
import java.util.Optional;
import javax.annotation.Nullable;


public final class AmiLaunchPermissionArgs extends com.pulumi.resources.ResourceArgs {

    public static final AmiLaunchPermissionArgs Empty = new AmiLaunchPermissionArgs();

    /**
     * AWS account ID for the launch permission.
     * 
     */
    @Import(name="accountId")
    private @Nullable Output accountId;

    /**
     * @return AWS account ID for the launch permission.
     * 
     */
    public Optional> accountId() {
        return Optional.ofNullable(this.accountId);
    }

    /**
     * Name of the group for the launch permission. Valid values: `"all"`.
     * 
     */
    @Import(name="group")
    private @Nullable Output group;

    /**
     * @return Name of the group for the launch permission. Valid values: `"all"`.
     * 
     */
    public Optional> group() {
        return Optional.ofNullable(this.group);
    }

    /**
     * ID of the AMI.
     * 
     */
    @Import(name="imageId", required=true)
    private Output imageId;

    /**
     * @return ID of the AMI.
     * 
     */
    public Output imageId() {
        return this.imageId;
    }

    /**
     * ARN of an organization for the launch permission.
     * 
     */
    @Import(name="organizationArn")
    private @Nullable Output organizationArn;

    /**
     * @return ARN of an organization for the launch permission.
     * 
     */
    public Optional> organizationArn() {
        return Optional.ofNullable(this.organizationArn);
    }

    /**
     * ARN of an organizational unit for the launch permission.
     * 
     */
    @Import(name="organizationalUnitArn")
    private @Nullable Output organizationalUnitArn;

    /**
     * @return ARN of an organizational unit for the launch permission.
     * 
     */
    public Optional> organizationalUnitArn() {
        return Optional.ofNullable(this.organizationalUnitArn);
    }

    private AmiLaunchPermissionArgs() {}

    private AmiLaunchPermissionArgs(AmiLaunchPermissionArgs $) {
        this.accountId = $.accountId;
        this.group = $.group;
        this.imageId = $.imageId;
        this.organizationArn = $.organizationArn;
        this.organizationalUnitArn = $.organizationalUnitArn;
    }

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

    public static final class Builder {
        private AmiLaunchPermissionArgs $;

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

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

        /**
         * @param accountId AWS account ID for the launch permission.
         * 
         * @return builder
         * 
         */
        public Builder accountId(@Nullable Output accountId) {
            $.accountId = accountId;
            return this;
        }

        /**
         * @param accountId AWS account ID for the launch permission.
         * 
         * @return builder
         * 
         */
        public Builder accountId(String accountId) {
            return accountId(Output.of(accountId));
        }

        /**
         * @param group Name of the group for the launch permission. Valid values: `"all"`.
         * 
         * @return builder
         * 
         */
        public Builder group(@Nullable Output group) {
            $.group = group;
            return this;
        }

        /**
         * @param group Name of the group for the launch permission. Valid values: `"all"`.
         * 
         * @return builder
         * 
         */
        public Builder group(String group) {
            return group(Output.of(group));
        }

        /**
         * @param imageId ID of the AMI.
         * 
         * @return builder
         * 
         */
        public Builder imageId(Output imageId) {
            $.imageId = imageId;
            return this;
        }

        /**
         * @param imageId ID of the AMI.
         * 
         * @return builder
         * 
         */
        public Builder imageId(String imageId) {
            return imageId(Output.of(imageId));
        }

        /**
         * @param organizationArn ARN of an organization for the launch permission.
         * 
         * @return builder
         * 
         */
        public Builder organizationArn(@Nullable Output organizationArn) {
            $.organizationArn = organizationArn;
            return this;
        }

        /**
         * @param organizationArn ARN of an organization for the launch permission.
         * 
         * @return builder
         * 
         */
        public Builder organizationArn(String organizationArn) {
            return organizationArn(Output.of(organizationArn));
        }

        /**
         * @param organizationalUnitArn ARN of an organizational unit for the launch permission.
         * 
         * @return builder
         * 
         */
        public Builder organizationalUnitArn(@Nullable Output organizationalUnitArn) {
            $.organizationalUnitArn = organizationalUnitArn;
            return this;
        }

        /**
         * @param organizationalUnitArn ARN of an organizational unit for the launch permission.
         * 
         * @return builder
         * 
         */
        public Builder organizationalUnitArn(String organizationalUnitArn) {
            return organizationalUnitArn(Output.of(organizationalUnitArn));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy