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

com.pulumi.azurenative.hybridcompute.inputs.RunCommandManagedIdentityArgs 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.hybridcompute.inputs;

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


/**
 *  Contains clientId or objectId (use only one, not both) of a user-assigned managed identity that has access to storage blob used in Run Command. Use an empty RunCommandManagedIdentity object in case of system-assigned identity. Make sure the Azure storage blob exists in case of scriptUri, and managed identity has been given access to blob's container with 'Storage Blob Data Reader' role assignment with scriptUri blob and 'Storage Blob Data Contributor' for Append blobs(outputBlobUri, errorBlobUri). In case of user assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged.
 * 
 */
public final class RunCommandManagedIdentityArgs extends com.pulumi.resources.ResourceArgs {

    public static final RunCommandManagedIdentityArgs Empty = new RunCommandManagedIdentityArgs();

    /**
     * Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided.
     * 
     */
    @Import(name="clientId")
    private @Nullable Output clientId;

    /**
     * @return Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided.
     * 
     */
    public Optional> clientId() {
        return Optional.ofNullable(this.clientId);
    }

    /**
     * Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided.
     * 
     */
    @Import(name="objectId")
    private @Nullable Output objectId;

    /**
     * @return Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided.
     * 
     */
    public Optional> objectId() {
        return Optional.ofNullable(this.objectId);
    }

    private RunCommandManagedIdentityArgs() {}

    private RunCommandManagedIdentityArgs(RunCommandManagedIdentityArgs $) {
        this.clientId = $.clientId;
        this.objectId = $.objectId;
    }

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

    public static final class Builder {
        private RunCommandManagedIdentityArgs $;

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

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

        /**
         * @param clientId Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided.
         * 
         * @return builder
         * 
         */
        public Builder clientId(@Nullable Output clientId) {
            $.clientId = clientId;
            return this;
        }

        /**
         * @param clientId Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided.
         * 
         * @return builder
         * 
         */
        public Builder clientId(String clientId) {
            return clientId(Output.of(clientId));
        }

        /**
         * @param objectId Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided.
         * 
         * @return builder
         * 
         */
        public Builder objectId(@Nullable Output objectId) {
            $.objectId = objectId;
            return this;
        }

        /**
         * @param objectId Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided.
         * 
         * @return builder
         * 
         */
        public Builder objectId(String objectId) {
            return objectId(Output.of(objectId));
        }

        public RunCommandManagedIdentityArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy