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

com.pulumi.azurenative.awsconnector.inputs.AwsIamInstanceProfilePropertiesArgs Maven / Gradle / Ivy

// *** 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.awsconnector.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of awsIamInstanceProfile
 * 
 */
public final class AwsIamInstanceProfilePropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final AwsIamInstanceProfilePropertiesArgs Empty = new AwsIamInstanceProfilePropertiesArgs();

    /**
     * Property arn
     * 
     */
    @Import(name="arn")
    private @Nullable Output arn;

    /**
     * @return Property arn
     * 
     */
    public Optional> arn() {
        return Optional.ofNullable(this.arn);
    }

    /**
     * The name of the instance profile to create. This parameter allows (through its [regex pattern](https://docs.aws.amazon.com/http://wikipedia.org/wiki/regex)) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.{@literal @}-
     * 
     */
    @Import(name="instanceProfileName")
    private @Nullable Output instanceProfileName;

    /**
     * @return The name of the instance profile to create. This parameter allows (through its [regex pattern](https://docs.aws.amazon.com/http://wikipedia.org/wiki/regex)) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.{@literal @}-
     * 
     */
    public Optional> instanceProfileName() {
        return Optional.ofNullable(this.instanceProfileName);
    }

    /**
     * The path to the instance profile. For more information about paths, see [IAM Identifiers](https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) in the *IAM User Guide*. This parameter is optional. If it is not included, it defaults to a slash (/). This parameter allows (through its [regex pattern](https://docs.aws.amazon.com/http://wikipedia.org/wiki/regex)) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (``\u0021``) through the DEL character (``\u007F``), including most punctuation characters, digits, and upper and lowercased letters.
     * 
     */
    @Import(name="path")
    private @Nullable Output path;

    /**
     * @return The path to the instance profile. For more information about paths, see [IAM Identifiers](https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) in the *IAM User Guide*. This parameter is optional. If it is not included, it defaults to a slash (/). This parameter allows (through its [regex pattern](https://docs.aws.amazon.com/http://wikipedia.org/wiki/regex)) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (``\u0021``) through the DEL character (``\u007F``), including most punctuation characters, digits, and upper and lowercased letters.
     * 
     */
    public Optional> path() {
        return Optional.ofNullable(this.path);
    }

    /**
     * The name of the role to associate with the instance profile. Only one role can be assigned to an EC2 instance at a time, and all applications on the instance share the same role and permissions.
     * 
     */
    @Import(name="roles")
    private @Nullable Output> roles;

    /**
     * @return The name of the role to associate with the instance profile. Only one role can be assigned to an EC2 instance at a time, and all applications on the instance share the same role and permissions.
     * 
     */
    public Optional>> roles() {
        return Optional.ofNullable(this.roles);
    }

    private AwsIamInstanceProfilePropertiesArgs() {}

    private AwsIamInstanceProfilePropertiesArgs(AwsIamInstanceProfilePropertiesArgs $) {
        this.arn = $.arn;
        this.instanceProfileName = $.instanceProfileName;
        this.path = $.path;
        this.roles = $.roles;
    }

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

    public static final class Builder {
        private AwsIamInstanceProfilePropertiesArgs $;

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

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

        /**
         * @param arn Property arn
         * 
         * @return builder
         * 
         */
        public Builder arn(@Nullable Output arn) {
            $.arn = arn;
            return this;
        }

        /**
         * @param arn Property arn
         * 
         * @return builder
         * 
         */
        public Builder arn(String arn) {
            return arn(Output.of(arn));
        }

        /**
         * @param instanceProfileName The name of the instance profile to create. This parameter allows (through its [regex pattern](https://docs.aws.amazon.com/http://wikipedia.org/wiki/regex)) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.{@literal @}-
         * 
         * @return builder
         * 
         */
        public Builder instanceProfileName(@Nullable Output instanceProfileName) {
            $.instanceProfileName = instanceProfileName;
            return this;
        }

        /**
         * @param instanceProfileName The name of the instance profile to create. This parameter allows (through its [regex pattern](https://docs.aws.amazon.com/http://wikipedia.org/wiki/regex)) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.{@literal @}-
         * 
         * @return builder
         * 
         */
        public Builder instanceProfileName(String instanceProfileName) {
            return instanceProfileName(Output.of(instanceProfileName));
        }

        /**
         * @param path The path to the instance profile. For more information about paths, see [IAM Identifiers](https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) in the *IAM User Guide*. This parameter is optional. If it is not included, it defaults to a slash (/). This parameter allows (through its [regex pattern](https://docs.aws.amazon.com/http://wikipedia.org/wiki/regex)) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (``\u0021``) through the DEL character (``\u007F``), including most punctuation characters, digits, and upper and lowercased letters.
         * 
         * @return builder
         * 
         */
        public Builder path(@Nullable Output path) {
            $.path = path;
            return this;
        }

        /**
         * @param path The path to the instance profile. For more information about paths, see [IAM Identifiers](https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) in the *IAM User Guide*. This parameter is optional. If it is not included, it defaults to a slash (/). This parameter allows (through its [regex pattern](https://docs.aws.amazon.com/http://wikipedia.org/wiki/regex)) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (``\u0021``) through the DEL character (``\u007F``), including most punctuation characters, digits, and upper and lowercased letters.
         * 
         * @return builder
         * 
         */
        public Builder path(String path) {
            return path(Output.of(path));
        }

        /**
         * @param roles The name of the role to associate with the instance profile. Only one role can be assigned to an EC2 instance at a time, and all applications on the instance share the same role and permissions.
         * 
         * @return builder
         * 
         */
        public Builder roles(@Nullable Output> roles) {
            $.roles = roles;
            return this;
        }

        /**
         * @param roles The name of the role to associate with the instance profile. Only one role can be assigned to an EC2 instance at a time, and all applications on the instance share the same role and permissions.
         * 
         * @return builder
         * 
         */
        public Builder roles(List roles) {
            return roles(Output.of(roles));
        }

        /**
         * @param roles The name of the role to associate with the instance profile. Only one role can be assigned to an EC2 instance at a time, and all applications on the instance share the same role and permissions.
         * 
         * @return builder
         * 
         */
        public Builder roles(String... roles) {
            return roles(List.of(roles));
        }

        public AwsIamInstanceProfilePropertiesArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy