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

com.pulumi.azurenative.security.inputs.AwsEnvironmentDataArgs Maven / Gradle / Ivy

There is a newer version: 2.72.0
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.azurenative.security.inputs;

import com.pulumi.azurenative.security.inputs.AwsOrganizationalDataMasterArgs;
import com.pulumi.azurenative.security.inputs.AwsOrganizationalDataMemberArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The AWS connector environment data
 * 
 */
public final class AwsEnvironmentDataArgs extends com.pulumi.resources.ResourceArgs {

    public static final AwsEnvironmentDataArgs Empty = new AwsEnvironmentDataArgs();

    /**
     * The type of the environment data.
     * Expected value is 'AwsAccount'.
     * 
     */
    @Import(name="environmentType", required=true)
    private Output environmentType;

    /**
     * @return The type of the environment data.
     * Expected value is 'AwsAccount'.
     * 
     */
    public Output environmentType() {
        return this.environmentType;
    }

    /**
     * The AWS account's organizational data
     * 
     */
    @Import(name="organizationalData")
    private @Nullable Output> organizationalData;

    /**
     * @return The AWS account's organizational data
     * 
     */
    public Optional>> organizationalData() {
        return Optional.ofNullable(this.organizationalData);
    }

    /**
     * list of regions to scan
     * 
     */
    @Import(name="regions")
    private @Nullable Output> regions;

    /**
     * @return list of regions to scan
     * 
     */
    public Optional>> regions() {
        return Optional.ofNullable(this.regions);
    }

    private AwsEnvironmentDataArgs() {}

    private AwsEnvironmentDataArgs(AwsEnvironmentDataArgs $) {
        this.environmentType = $.environmentType;
        this.organizationalData = $.organizationalData;
        this.regions = $.regions;
    }

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

    public static final class Builder {
        private AwsEnvironmentDataArgs $;

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

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

        /**
         * @param environmentType The type of the environment data.
         * Expected value is 'AwsAccount'.
         * 
         * @return builder
         * 
         */
        public Builder environmentType(Output environmentType) {
            $.environmentType = environmentType;
            return this;
        }

        /**
         * @param environmentType The type of the environment data.
         * Expected value is 'AwsAccount'.
         * 
         * @return builder
         * 
         */
        public Builder environmentType(String environmentType) {
            return environmentType(Output.of(environmentType));
        }

        /**
         * @param organizationalData The AWS account's organizational data
         * 
         * @return builder
         * 
         */
        public Builder organizationalData(@Nullable Output> organizationalData) {
            $.organizationalData = organizationalData;
            return this;
        }

        /**
         * @param organizationalData The AWS account's organizational data
         * 
         * @return builder
         * 
         */
        public Builder organizationalData(Either organizationalData) {
            return organizationalData(Output.of(organizationalData));
        }

        /**
         * @param organizationalData The AWS account's organizational data
         * 
         * @return builder
         * 
         */
        public Builder organizationalData(AwsOrganizationalDataMasterArgs organizationalData) {
            return organizationalData(Either.ofLeft(organizationalData));
        }

        /**
         * @param organizationalData The AWS account's organizational data
         * 
         * @return builder
         * 
         */
        public Builder organizationalData(AwsOrganizationalDataMemberArgs organizationalData) {
            return organizationalData(Either.ofRight(organizationalData));
        }

        /**
         * @param regions list of regions to scan
         * 
         * @return builder
         * 
         */
        public Builder regions(@Nullable Output> regions) {
            $.regions = regions;
            return this;
        }

        /**
         * @param regions list of regions to scan
         * 
         * @return builder
         * 
         */
        public Builder regions(List regions) {
            return regions(Output.of(regions));
        }

        /**
         * @param regions list of regions to scan
         * 
         * @return builder
         * 
         */
        public Builder regions(String... regions) {
            return regions(List.of(regions));
        }

        public AwsEnvironmentDataArgs build() {
            $.environmentType = Codegen.stringProp("environmentType").output().arg($.environmentType).require();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy