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

com.pulumi.azure.compute.inputs.ScaleSetIdentityArgs 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.10.0-alpha.1731737215
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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
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;


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

    public static final ScaleSetIdentityArgs Empty = new ScaleSetIdentityArgs();

    /**
     * Specifies a list of user managed identity ids to be assigned to the VMSS. Required if `type` is `UserAssigned`.
     * 
     * <!--Start PulumiCodeChooser -->
     * 
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.compute.ScaleSet;
     * import com.pulumi.azure.compute.ScaleSetArgs;
     * import com.pulumi.azure.compute.inputs.ScaleSetSkuArgs;
     * import com.pulumi.azure.compute.inputs.ScaleSetIdentityArgs;
     * import com.pulumi.azure.compute.inputs.ScaleSetExtensionArgs;
     * import java.util.List;
     * import java.util.ArrayList;
     * import java.util.Map;
     * import java.io.File;
     * import java.nio.file.Files;
     * import java.nio.file.Paths;
     * 
     * public class App {
     *     public static void main(String[] args) {
     *         Pulumi.run(App::stack);
     *     }
     * 
     *     public static void stack(Context ctx) {
     *         var example = new ScaleSet("example", ScaleSetArgs.builder()
     *             .name("vm-scaleset")
     *             .resourceGroupName(exampleAzurermResourceGroup.name())
     *             .location(exampleAzurermResourceGroup.location())
     *             .sku(ScaleSetSkuArgs.builder()
     *                 .name(vmSku)
     *                 .tier("Standard")
     *                 .capacity(instanceCount)
     *                 .build())
     *             .identity(ScaleSetIdentityArgs.builder()
     *                 .type("SystemAssigned")
     *                 .build())
     *             .extensions(ScaleSetExtensionArgs.builder()
     *                 .name("MSILinuxExtension")
     *                 .publisher("Microsoft.ManagedIdentity")
     *                 .type("ManagedIdentityExtensionForLinux")
     *                 .typeHandlerVersion("1.0")
     *                 .settings("{\"port\": 50342}")
     *                 .build())
     *             .build());
     * 
     *         ctx.export("principalId", example.identity().applyValue(identity -> identity.principalId()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ @Import(name="identityIds") private @Nullable Output> identityIds; /** * @return Specifies a list of user managed identity ids to be assigned to the VMSS. Required if `type` is `UserAssigned`. * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.compute.ScaleSet;
     * import com.pulumi.azure.compute.ScaleSetArgs;
     * import com.pulumi.azure.compute.inputs.ScaleSetSkuArgs;
     * import com.pulumi.azure.compute.inputs.ScaleSetIdentityArgs;
     * import com.pulumi.azure.compute.inputs.ScaleSetExtensionArgs;
     * import java.util.List;
     * import java.util.ArrayList;
     * import java.util.Map;
     * import java.io.File;
     * import java.nio.file.Files;
     * import java.nio.file.Paths;
     * 
     * public class App {
     *     public static void main(String[] args) {
     *         Pulumi.run(App::stack);
     *     }
     * 
     *     public static void stack(Context ctx) {
     *         var example = new ScaleSet("example", ScaleSetArgs.builder()
     *             .name("vm-scaleset")
     *             .resourceGroupName(exampleAzurermResourceGroup.name())
     *             .location(exampleAzurermResourceGroup.location())
     *             .sku(ScaleSetSkuArgs.builder()
     *                 .name(vmSku)
     *                 .tier("Standard")
     *                 .capacity(instanceCount)
     *                 .build())
     *             .identity(ScaleSetIdentityArgs.builder()
     *                 .type("SystemAssigned")
     *                 .build())
     *             .extensions(ScaleSetExtensionArgs.builder()
     *                 .name("MSILinuxExtension")
     *                 .publisher("Microsoft.ManagedIdentity")
     *                 .type("ManagedIdentityExtensionForLinux")
     *                 .typeHandlerVersion("1.0")
     *                 .settings("{\"port\": 50342}")
     *                 .build())
     *             .build());
     * 
     *         ctx.export("principalId", example.identity().applyValue(identity -> identity.principalId()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public Optional>> identityIds() { return Optional.ofNullable(this.identityIds); } @Import(name="principalId") private @Nullable Output principalId; public Optional> principalId() { return Optional.ofNullable(this.principalId); } @Import(name="tenantId") private @Nullable Output tenantId; public Optional> tenantId() { return Optional.ofNullable(this.tenantId); } /** * Specifies the identity type to be assigned to the scale set. Allowable values are `SystemAssigned` and `UserAssigned`. For the `SystemAssigned` identity the scale set's Service Principal ID (SPN) can be retrieved after the scale set has been created. See [documentation](https://docs.microsoft.com/azure/active-directory/managed-service-identity/overview) for more information. Possible values are `SystemAssigned`, `UserAssigned` and `SystemAssigned, UserAssigned`. * */ @Import(name="type", required=true) private Output type; /** * @return Specifies the identity type to be assigned to the scale set. Allowable values are `SystemAssigned` and `UserAssigned`. For the `SystemAssigned` identity the scale set's Service Principal ID (SPN) can be retrieved after the scale set has been created. See [documentation](https://docs.microsoft.com/azure/active-directory/managed-service-identity/overview) for more information. Possible values are `SystemAssigned`, `UserAssigned` and `SystemAssigned, UserAssigned`. * */ public Output type() { return this.type; } private ScaleSetIdentityArgs() {} private ScaleSetIdentityArgs(ScaleSetIdentityArgs $) { this.identityIds = $.identityIds; this.principalId = $.principalId; this.tenantId = $.tenantId; this.type = $.type; } public static Builder builder() { return new Builder(); } public static Builder builder(ScaleSetIdentityArgs defaults) { return new Builder(defaults); } public static final class Builder { private ScaleSetIdentityArgs $; public Builder() { $ = new ScaleSetIdentityArgs(); } public Builder(ScaleSetIdentityArgs defaults) { $ = new ScaleSetIdentityArgs(Objects.requireNonNull(defaults)); } /** * @param identityIds Specifies a list of user managed identity ids to be assigned to the VMSS. Required if `type` is `UserAssigned`. * * <!--Start PulumiCodeChooser --> *
         * {@code
         * package generated_program;
         * 
         * import com.pulumi.Context;
         * import com.pulumi.Pulumi;
         * import com.pulumi.core.Output;
         * import com.pulumi.azure.compute.ScaleSet;
         * import com.pulumi.azure.compute.ScaleSetArgs;
         * import com.pulumi.azure.compute.inputs.ScaleSetSkuArgs;
         * import com.pulumi.azure.compute.inputs.ScaleSetIdentityArgs;
         * import com.pulumi.azure.compute.inputs.ScaleSetExtensionArgs;
         * import java.util.List;
         * import java.util.ArrayList;
         * import java.util.Map;
         * import java.io.File;
         * import java.nio.file.Files;
         * import java.nio.file.Paths;
         * 
         * public class App {
         *     public static void main(String[] args) {
         *         Pulumi.run(App::stack);
         *     }
         * 
         *     public static void stack(Context ctx) {
         *         var example = new ScaleSet("example", ScaleSetArgs.builder()
         *             .name("vm-scaleset")
         *             .resourceGroupName(exampleAzurermResourceGroup.name())
         *             .location(exampleAzurermResourceGroup.location())
         *             .sku(ScaleSetSkuArgs.builder()
         *                 .name(vmSku)
         *                 .tier("Standard")
         *                 .capacity(instanceCount)
         *                 .build())
         *             .identity(ScaleSetIdentityArgs.builder()
         *                 .type("SystemAssigned")
         *                 .build())
         *             .extensions(ScaleSetExtensionArgs.builder()
         *                 .name("MSILinuxExtension")
         *                 .publisher("Microsoft.ManagedIdentity")
         *                 .type("ManagedIdentityExtensionForLinux")
         *                 .typeHandlerVersion("1.0")
         *                 .settings("{\"port\": 50342}")
         *                 .build())
         *             .build());
         * 
         *         ctx.export("principalId", example.identity().applyValue(identity -> identity.principalId()));
         *     }
         * }
         * }
         * 
* <!--End PulumiCodeChooser --> * * @return builder * */ public Builder identityIds(@Nullable Output> identityIds) { $.identityIds = identityIds; return this; } /** * @param identityIds Specifies a list of user managed identity ids to be assigned to the VMSS. Required if `type` is `UserAssigned`. * * <!--Start PulumiCodeChooser --> *
         * {@code
         * package generated_program;
         * 
         * import com.pulumi.Context;
         * import com.pulumi.Pulumi;
         * import com.pulumi.core.Output;
         * import com.pulumi.azure.compute.ScaleSet;
         * import com.pulumi.azure.compute.ScaleSetArgs;
         * import com.pulumi.azure.compute.inputs.ScaleSetSkuArgs;
         * import com.pulumi.azure.compute.inputs.ScaleSetIdentityArgs;
         * import com.pulumi.azure.compute.inputs.ScaleSetExtensionArgs;
         * import java.util.List;
         * import java.util.ArrayList;
         * import java.util.Map;
         * import java.io.File;
         * import java.nio.file.Files;
         * import java.nio.file.Paths;
         * 
         * public class App {
         *     public static void main(String[] args) {
         *         Pulumi.run(App::stack);
         *     }
         * 
         *     public static void stack(Context ctx) {
         *         var example = new ScaleSet("example", ScaleSetArgs.builder()
         *             .name("vm-scaleset")
         *             .resourceGroupName(exampleAzurermResourceGroup.name())
         *             .location(exampleAzurermResourceGroup.location())
         *             .sku(ScaleSetSkuArgs.builder()
         *                 .name(vmSku)
         *                 .tier("Standard")
         *                 .capacity(instanceCount)
         *                 .build())
         *             .identity(ScaleSetIdentityArgs.builder()
         *                 .type("SystemAssigned")
         *                 .build())
         *             .extensions(ScaleSetExtensionArgs.builder()
         *                 .name("MSILinuxExtension")
         *                 .publisher("Microsoft.ManagedIdentity")
         *                 .type("ManagedIdentityExtensionForLinux")
         *                 .typeHandlerVersion("1.0")
         *                 .settings("{\"port\": 50342}")
         *                 .build())
         *             .build());
         * 
         *         ctx.export("principalId", example.identity().applyValue(identity -> identity.principalId()));
         *     }
         * }
         * }
         * 
* <!--End PulumiCodeChooser --> * * @return builder * */ public Builder identityIds(List identityIds) { return identityIds(Output.of(identityIds)); } /** * @param identityIds Specifies a list of user managed identity ids to be assigned to the VMSS. Required if `type` is `UserAssigned`. * * <!--Start PulumiCodeChooser --> *
         * {@code
         * package generated_program;
         * 
         * import com.pulumi.Context;
         * import com.pulumi.Pulumi;
         * import com.pulumi.core.Output;
         * import com.pulumi.azure.compute.ScaleSet;
         * import com.pulumi.azure.compute.ScaleSetArgs;
         * import com.pulumi.azure.compute.inputs.ScaleSetSkuArgs;
         * import com.pulumi.azure.compute.inputs.ScaleSetIdentityArgs;
         * import com.pulumi.azure.compute.inputs.ScaleSetExtensionArgs;
         * import java.util.List;
         * import java.util.ArrayList;
         * import java.util.Map;
         * import java.io.File;
         * import java.nio.file.Files;
         * import java.nio.file.Paths;
         * 
         * public class App {
         *     public static void main(String[] args) {
         *         Pulumi.run(App::stack);
         *     }
         * 
         *     public static void stack(Context ctx) {
         *         var example = new ScaleSet("example", ScaleSetArgs.builder()
         *             .name("vm-scaleset")
         *             .resourceGroupName(exampleAzurermResourceGroup.name())
         *             .location(exampleAzurermResourceGroup.location())
         *             .sku(ScaleSetSkuArgs.builder()
         *                 .name(vmSku)
         *                 .tier("Standard")
         *                 .capacity(instanceCount)
         *                 .build())
         *             .identity(ScaleSetIdentityArgs.builder()
         *                 .type("SystemAssigned")
         *                 .build())
         *             .extensions(ScaleSetExtensionArgs.builder()
         *                 .name("MSILinuxExtension")
         *                 .publisher("Microsoft.ManagedIdentity")
         *                 .type("ManagedIdentityExtensionForLinux")
         *                 .typeHandlerVersion("1.0")
         *                 .settings("{\"port\": 50342}")
         *                 .build())
         *             .build());
         * 
         *         ctx.export("principalId", example.identity().applyValue(identity -> identity.principalId()));
         *     }
         * }
         * }
         * 
* <!--End PulumiCodeChooser --> * * @return builder * */ public Builder identityIds(String... identityIds) { return identityIds(List.of(identityIds)); } public Builder principalId(@Nullable Output principalId) { $.principalId = principalId; return this; } public Builder principalId(String principalId) { return principalId(Output.of(principalId)); } public Builder tenantId(@Nullable Output tenantId) { $.tenantId = tenantId; return this; } public Builder tenantId(String tenantId) { return tenantId(Output.of(tenantId)); } /** * @param type Specifies the identity type to be assigned to the scale set. Allowable values are `SystemAssigned` and `UserAssigned`. For the `SystemAssigned` identity the scale set's Service Principal ID (SPN) can be retrieved after the scale set has been created. See [documentation](https://docs.microsoft.com/azure/active-directory/managed-service-identity/overview) for more information. Possible values are `SystemAssigned`, `UserAssigned` and `SystemAssigned, UserAssigned`. * * @return builder * */ public Builder type(Output type) { $.type = type; return this; } /** * @param type Specifies the identity type to be assigned to the scale set. Allowable values are `SystemAssigned` and `UserAssigned`. For the `SystemAssigned` identity the scale set's Service Principal ID (SPN) can be retrieved after the scale set has been created. See [documentation](https://docs.microsoft.com/azure/active-directory/managed-service-identity/overview) for more information. Possible values are `SystemAssigned`, `UserAssigned` and `SystemAssigned, UserAssigned`. * * @return builder * */ public Builder type(String type) { return type(Output.of(type)); } public ScaleSetIdentityArgs build() { if ($.type == null) { throw new MissingRequiredPropertyException("ScaleSetIdentityArgs", "type"); } return $; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy