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

com.pulumi.azure.compute.outputs.LinuxVirtualMachineScaleSetAdminSshKey Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.15.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.azure.compute.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class LinuxVirtualMachineScaleSetAdminSshKey {
    /**
     * @return The Public Key which should be used for authentication, which needs to be in `ssh-rsa` format with at least 2048-bit or in `ssh-ed25519` format.
     * 
     */
    private String publicKey;
    /**
     * @return The Username for which this Public SSH Key should be configured.
     * 
     * > **Note:** The Azure VM Agent only allows creating SSH Keys at the path `/home/{username}/.ssh/authorized_keys` - as such this public key will be added/appended to the authorized keys file.
     * 
     */
    private String username;

    private LinuxVirtualMachineScaleSetAdminSshKey() {}
    /**
     * @return The Public Key which should be used for authentication, which needs to be in `ssh-rsa` format with at least 2048-bit or in `ssh-ed25519` format.
     * 
     */
    public String publicKey() {
        return this.publicKey;
    }
    /**
     * @return The Username for which this Public SSH Key should be configured.
     * 
     * > **Note:** The Azure VM Agent only allows creating SSH Keys at the path `/home/{username}/.ssh/authorized_keys` - as such this public key will be added/appended to the authorized keys file.
     * 
     */
    public String username() {
        return this.username;
    }

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

    public static Builder builder(LinuxVirtualMachineScaleSetAdminSshKey defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String publicKey;
        private String username;
        public Builder() {}
        public Builder(LinuxVirtualMachineScaleSetAdminSshKey defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.publicKey = defaults.publicKey;
    	      this.username = defaults.username;
        }

        @CustomType.Setter
        public Builder publicKey(String publicKey) {
            if (publicKey == null) {
              throw new MissingRequiredPropertyException("LinuxVirtualMachineScaleSetAdminSshKey", "publicKey");
            }
            this.publicKey = publicKey;
            return this;
        }
        @CustomType.Setter
        public Builder username(String username) {
            if (username == null) {
              throw new MissingRequiredPropertyException("LinuxVirtualMachineScaleSetAdminSshKey", "username");
            }
            this.username = username;
            return this;
        }
        public LinuxVirtualMachineScaleSetAdminSshKey build() {
            final var _resultValue = new LinuxVirtualMachineScaleSetAdminSshKey();
            _resultValue.publicKey = publicKey;
            _resultValue.username = username;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy