Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azure.cognitive.AIServicesArgs 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.
// *** 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.cognitive;
import com.pulumi.azure.cognitive.inputs.AIServicesCustomerManagedKeyArgs;
import com.pulumi.azure.cognitive.inputs.AIServicesIdentityArgs;
import com.pulumi.azure.cognitive.inputs.AIServicesNetworkAclsArgs;
import com.pulumi.azure.cognitive.inputs.AIServicesStorageArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class AIServicesArgs extends com.pulumi.resources.ResourceArgs {
public static final AIServicesArgs Empty = new AIServicesArgs();
/**
* The subdomain name used for token-based authentication. This property is required when `network_acls` is specified. Changing this forces a new resource to be created.
*
*/
@Import(name="customSubdomainName")
private @Nullable Output customSubdomainName;
/**
* @return The subdomain name used for token-based authentication. This property is required when `network_acls` is specified. Changing this forces a new resource to be created.
*
*/
public Optional> customSubdomainName() {
return Optional.ofNullable(this.customSubdomainName);
}
/**
* A `customer_managed_key` block as documented below.
*
*/
@Import(name="customerManagedKey")
private @Nullable Output customerManagedKey;
/**
* @return A `customer_managed_key` block as documented below.
*
*/
public Optional> customerManagedKey() {
return Optional.ofNullable(this.customerManagedKey);
}
/**
* List of FQDNs allowed for the AI Services Account.
*
*/
@Import(name="fqdns")
private @Nullable Output> fqdns;
/**
* @return List of FQDNs allowed for the AI Services Account.
*
*/
public Optional>> fqdns() {
return Optional.ofNullable(this.fqdns);
}
/**
* An `identity` block as defined below.
*
*/
@Import(name="identity")
private @Nullable Output identity;
/**
* @return An `identity` block as defined below.
*
*/
public Optional> identity() {
return Optional.ofNullable(this.identity);
}
/**
* Whether local authentication is enabled for the AI Services Account. Defaults to `true`.
*
*/
@Import(name="localAuthenticationEnabled")
private @Nullable Output localAuthenticationEnabled;
/**
* @return Whether local authentication is enabled for the AI Services Account. Defaults to `true`.
*
*/
public Optional> localAuthenticationEnabled() {
return Optional.ofNullable(this.localAuthenticationEnabled);
}
/**
* Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
*
*/
@Import(name="location")
private @Nullable Output location;
/**
* @return Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
*
*/
public Optional> location() {
return Optional.ofNullable(this.location);
}
/**
* Specifies the name of the AI Services Account. Changing this forces a new resource to be created.
*
*/
@Import(name="name")
private @Nullable Output name;
/**
* @return Specifies the name of the AI Services Account. Changing this forces a new resource to be created.
*
*/
public Optional> name() {
return Optional.ofNullable(this.name);
}
/**
* A `network_acls` block as defined below. When this property is specified, `custom_subdomain_name` is also required to be set.
*
*/
@Import(name="networkAcls")
private @Nullable Output networkAcls;
/**
* @return A `network_acls` block as defined below. When this property is specified, `custom_subdomain_name` is also required to be set.
*
*/
public Optional> networkAcls() {
return Optional.ofNullable(this.networkAcls);
}
/**
* Whether outbound network access is restricted for the AI Services Account. Defaults to `false`.
*
*/
@Import(name="outboundNetworkAccessRestricted")
private @Nullable Output outboundNetworkAccessRestricted;
/**
* @return Whether outbound network access is restricted for the AI Services Account. Defaults to `false`.
*
*/
public Optional> outboundNetworkAccessRestricted() {
return Optional.ofNullable(this.outboundNetworkAccessRestricted);
}
/**
* Whether public network access is allowed for the AI Services Account. Possible values are `Enabled` and `Disabled`. Defaults to `Enabled`.
*
*/
@Import(name="publicNetworkAccess")
private @Nullable Output publicNetworkAccess;
/**
* @return Whether public network access is allowed for the AI Services Account. Possible values are `Enabled` and `Disabled`. Defaults to `Enabled`.
*
*/
public Optional> publicNetworkAccess() {
return Optional.ofNullable(this.publicNetworkAccess);
}
/**
* The name of the resource group in which the AI Services Account is created. Changing this forces a new resource to be created.
*
*/
@Import(name="resourceGroupName", required=true)
private Output resourceGroupName;
/**
* @return The name of the resource group in which the AI Services Account is created. Changing this forces a new resource to be created.
*
*/
public Output resourceGroupName() {
return this.resourceGroupName;
}
/**
* Specifies the SKU Name for this AI Services Account. Possible values are `F0`, `F1`, `S0`, `S`, `S1`, `S2`, `S3`, `S4`, `S5`, `S6`, `P0`, `P1`, `P2`, `E0` and `DC0`.
*
* > **NOTE:** SKU `DC0` is the commitment tier for AI Services Account containers running in disconnected environments. You must obtain approval from Microsoft by submitting the [request form](https://aka.ms/csdisconnectedcontainers) first, before you can use this SKU. More information on [Purchase a commitment plan to use containers in disconnected environments](https://learn.microsoft.com/en-us/azure/cognitive-services/containers/disconnected-containers?tabs=stt#purchase-a-commitment-plan-to-use-containers-in-disconnected-environments).
*
*/
@Import(name="skuName", required=true)
private Output skuName;
/**
* @return Specifies the SKU Name for this AI Services Account. Possible values are `F0`, `F1`, `S0`, `S`, `S1`, `S2`, `S3`, `S4`, `S5`, `S6`, `P0`, `P1`, `P2`, `E0` and `DC0`.
*
* > **NOTE:** SKU `DC0` is the commitment tier for AI Services Account containers running in disconnected environments. You must obtain approval from Microsoft by submitting the [request form](https://aka.ms/csdisconnectedcontainers) first, before you can use this SKU. More information on [Purchase a commitment plan to use containers in disconnected environments](https://learn.microsoft.com/en-us/azure/cognitive-services/containers/disconnected-containers?tabs=stt#purchase-a-commitment-plan-to-use-containers-in-disconnected-environments).
*
*/
public Output skuName() {
return this.skuName;
}
/**
* A `storage` block as defined below.
*
*/
@Import(name="storages")
private @Nullable Output> storages;
/**
* @return A `storage` block as defined below.
*
*/
public Optional>> storages() {
return Optional.ofNullable(this.storages);
}
/**
* A mapping of tags to assign to the resource.
*
*/
@Import(name="tags")
private @Nullable Output> tags;
/**
* @return A mapping of tags to assign to the resource.
*
*/
public Optional>> tags() {
return Optional.ofNullable(this.tags);
}
private AIServicesArgs() {}
private AIServicesArgs(AIServicesArgs $) {
this.customSubdomainName = $.customSubdomainName;
this.customerManagedKey = $.customerManagedKey;
this.fqdns = $.fqdns;
this.identity = $.identity;
this.localAuthenticationEnabled = $.localAuthenticationEnabled;
this.location = $.location;
this.name = $.name;
this.networkAcls = $.networkAcls;
this.outboundNetworkAccessRestricted = $.outboundNetworkAccessRestricted;
this.publicNetworkAccess = $.publicNetworkAccess;
this.resourceGroupName = $.resourceGroupName;
this.skuName = $.skuName;
this.storages = $.storages;
this.tags = $.tags;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AIServicesArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private AIServicesArgs $;
public Builder() {
$ = new AIServicesArgs();
}
public Builder(AIServicesArgs defaults) {
$ = new AIServicesArgs(Objects.requireNonNull(defaults));
}
/**
* @param customSubdomainName The subdomain name used for token-based authentication. This property is required when `network_acls` is specified. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder customSubdomainName(@Nullable Output customSubdomainName) {
$.customSubdomainName = customSubdomainName;
return this;
}
/**
* @param customSubdomainName The subdomain name used for token-based authentication. This property is required when `network_acls` is specified. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder customSubdomainName(String customSubdomainName) {
return customSubdomainName(Output.of(customSubdomainName));
}
/**
* @param customerManagedKey A `customer_managed_key` block as documented below.
*
* @return builder
*
*/
public Builder customerManagedKey(@Nullable Output customerManagedKey) {
$.customerManagedKey = customerManagedKey;
return this;
}
/**
* @param customerManagedKey A `customer_managed_key` block as documented below.
*
* @return builder
*
*/
public Builder customerManagedKey(AIServicesCustomerManagedKeyArgs customerManagedKey) {
return customerManagedKey(Output.of(customerManagedKey));
}
/**
* @param fqdns List of FQDNs allowed for the AI Services Account.
*
* @return builder
*
*/
public Builder fqdns(@Nullable Output> fqdns) {
$.fqdns = fqdns;
return this;
}
/**
* @param fqdns List of FQDNs allowed for the AI Services Account.
*
* @return builder
*
*/
public Builder fqdns(List fqdns) {
return fqdns(Output.of(fqdns));
}
/**
* @param fqdns List of FQDNs allowed for the AI Services Account.
*
* @return builder
*
*/
public Builder fqdns(String... fqdns) {
return fqdns(List.of(fqdns));
}
/**
* @param identity An `identity` block as defined below.
*
* @return builder
*
*/
public Builder identity(@Nullable Output identity) {
$.identity = identity;
return this;
}
/**
* @param identity An `identity` block as defined below.
*
* @return builder
*
*/
public Builder identity(AIServicesIdentityArgs identity) {
return identity(Output.of(identity));
}
/**
* @param localAuthenticationEnabled Whether local authentication is enabled for the AI Services Account. Defaults to `true`.
*
* @return builder
*
*/
public Builder localAuthenticationEnabled(@Nullable Output localAuthenticationEnabled) {
$.localAuthenticationEnabled = localAuthenticationEnabled;
return this;
}
/**
* @param localAuthenticationEnabled Whether local authentication is enabled for the AI Services Account. Defaults to `true`.
*
* @return builder
*
*/
public Builder localAuthenticationEnabled(Boolean localAuthenticationEnabled) {
return localAuthenticationEnabled(Output.of(localAuthenticationEnabled));
}
/**
* @param location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder location(@Nullable Output location) {
$.location = location;
return this;
}
/**
* @param location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder location(String location) {
return location(Output.of(location));
}
/**
* @param name Specifies the name of the AI Services Account. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder name(@Nullable Output name) {
$.name = name;
return this;
}
/**
* @param name Specifies the name of the AI Services Account. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param networkAcls A `network_acls` block as defined below. When this property is specified, `custom_subdomain_name` is also required to be set.
*
* @return builder
*
*/
public Builder networkAcls(@Nullable Output networkAcls) {
$.networkAcls = networkAcls;
return this;
}
/**
* @param networkAcls A `network_acls` block as defined below. When this property is specified, `custom_subdomain_name` is also required to be set.
*
* @return builder
*
*/
public Builder networkAcls(AIServicesNetworkAclsArgs networkAcls) {
return networkAcls(Output.of(networkAcls));
}
/**
* @param outboundNetworkAccessRestricted Whether outbound network access is restricted for the AI Services Account. Defaults to `false`.
*
* @return builder
*
*/
public Builder outboundNetworkAccessRestricted(@Nullable Output outboundNetworkAccessRestricted) {
$.outboundNetworkAccessRestricted = outboundNetworkAccessRestricted;
return this;
}
/**
* @param outboundNetworkAccessRestricted Whether outbound network access is restricted for the AI Services Account. Defaults to `false`.
*
* @return builder
*
*/
public Builder outboundNetworkAccessRestricted(Boolean outboundNetworkAccessRestricted) {
return outboundNetworkAccessRestricted(Output.of(outboundNetworkAccessRestricted));
}
/**
* @param publicNetworkAccess Whether public network access is allowed for the AI Services Account. Possible values are `Enabled` and `Disabled`. Defaults to `Enabled`.
*
* @return builder
*
*/
public Builder publicNetworkAccess(@Nullable Output publicNetworkAccess) {
$.publicNetworkAccess = publicNetworkAccess;
return this;
}
/**
* @param publicNetworkAccess Whether public network access is allowed for the AI Services Account. Possible values are `Enabled` and `Disabled`. Defaults to `Enabled`.
*
* @return builder
*
*/
public Builder publicNetworkAccess(String publicNetworkAccess) {
return publicNetworkAccess(Output.of(publicNetworkAccess));
}
/**
* @param resourceGroupName The name of the resource group in which the AI Services Account is created. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder resourceGroupName(Output resourceGroupName) {
$.resourceGroupName = resourceGroupName;
return this;
}
/**
* @param resourceGroupName The name of the resource group in which the AI Services Account is created. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder resourceGroupName(String resourceGroupName) {
return resourceGroupName(Output.of(resourceGroupName));
}
/**
* @param skuName Specifies the SKU Name for this AI Services Account. Possible values are `F0`, `F1`, `S0`, `S`, `S1`, `S2`, `S3`, `S4`, `S5`, `S6`, `P0`, `P1`, `P2`, `E0` and `DC0`.
*
* > **NOTE:** SKU `DC0` is the commitment tier for AI Services Account containers running in disconnected environments. You must obtain approval from Microsoft by submitting the [request form](https://aka.ms/csdisconnectedcontainers) first, before you can use this SKU. More information on [Purchase a commitment plan to use containers in disconnected environments](https://learn.microsoft.com/en-us/azure/cognitive-services/containers/disconnected-containers?tabs=stt#purchase-a-commitment-plan-to-use-containers-in-disconnected-environments).
*
* @return builder
*
*/
public Builder skuName(Output skuName) {
$.skuName = skuName;
return this;
}
/**
* @param skuName Specifies the SKU Name for this AI Services Account. Possible values are `F0`, `F1`, `S0`, `S`, `S1`, `S2`, `S3`, `S4`, `S5`, `S6`, `P0`, `P1`, `P2`, `E0` and `DC0`.
*
* > **NOTE:** SKU `DC0` is the commitment tier for AI Services Account containers running in disconnected environments. You must obtain approval from Microsoft by submitting the [request form](https://aka.ms/csdisconnectedcontainers) first, before you can use this SKU. More information on [Purchase a commitment plan to use containers in disconnected environments](https://learn.microsoft.com/en-us/azure/cognitive-services/containers/disconnected-containers?tabs=stt#purchase-a-commitment-plan-to-use-containers-in-disconnected-environments).
*
* @return builder
*
*/
public Builder skuName(String skuName) {
return skuName(Output.of(skuName));
}
/**
* @param storages A `storage` block as defined below.
*
* @return builder
*
*/
public Builder storages(@Nullable Output> storages) {
$.storages = storages;
return this;
}
/**
* @param storages A `storage` block as defined below.
*
* @return builder
*
*/
public Builder storages(List storages) {
return storages(Output.of(storages));
}
/**
* @param storages A `storage` block as defined below.
*
* @return builder
*
*/
public Builder storages(AIServicesStorageArgs... storages) {
return storages(List.of(storages));
}
/**
* @param tags A mapping of tags to assign to the resource.
*
* @return builder
*
*/
public Builder tags(@Nullable Output> tags) {
$.tags = tags;
return this;
}
/**
* @param tags A mapping of tags to assign to the resource.
*
* @return builder
*
*/
public Builder tags(Map tags) {
return tags(Output.of(tags));
}
public AIServicesArgs build() {
if ($.resourceGroupName == null) {
throw new MissingRequiredPropertyException("AIServicesArgs", "resourceGroupName");
}
if ($.skuName == null) {
throw new MissingRequiredPropertyException("AIServicesArgs", "skuName");
}
return $;
}
}
}