Package com.pulumi.gcp.container
Class AzureClient
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.gcp.container.AzureClient
-
public class AzureClient extends com.pulumi.resources.CustomResource
AzureClient resources hold client authentication information needed by the Anthos Multi-Cloud API to manage Azure resources on your Azure subscription.When an AzureCluster is created, an AzureClient resource needs to be provided and all operations on Azure resources associated to that cluster will authenticate to Azure services using the given client.AzureClient resources are immutable and cannot be modified upon creation.Each AzureClient resource is bound to a single Azure Active Directory Application and tenant. For more information, see: * [Multicloud overview](https://cloud.google.com/anthos/clusters/docs/multi-cloud) ## Example Usage ### Basic_azure_client A basic example of a containerazure azure client ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.container.AzureClient; import com.pulumi.gcp.container.AzureClientArgs; 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 primary = new AzureClient("primary", AzureClientArgs.builder() .applicationId("12345678-1234-1234-1234-123456789111") .location("us-west1") .project("my-project-name") .tenantId("12345678-1234-1234-1234-123456789111") .build()); } } ``` ## Import Client can be imported using any of these accepted formats* `projects/{{project}}/locations/{{location}}/azureClients/{{name}}` * `{{project}}/{{location}}/{{name}}` * `{{location}}/{{name}}` In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import Client using one of the formats above. For exampletf import { id = "projects/{{project}}/locations/{{location}}/azureClients/{{name}}" to = google_container_azure_client.default } ```sh $ pulumi import gcp:container/azureClient:AzureClient When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), Client can be imported using one of the formats above. For example ``` ```sh $ pulumi import gcp:container/azureClient:AzureClient default projects/{{project}}/locations/{{location}}/azureClients/{{name}} ``` ```sh $ pulumi import gcp:container/azureClient:AzureClient default {{project}}/{{location}}/{{name}} ``` ```sh $ pulumi import gcp:container/azureClient:AzureClient default {{location}}/{{name}} ```
-
-
Constructor Summary
Constructors Constructor Description AzureClient(java.lang.String name)
AzureClient(java.lang.String name, AzureClientArgs args)
AzureClient(java.lang.String name, AzureClientArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>
applicationId()
com.pulumi.core.Output<java.lang.String>
certificate()
com.pulumi.core.Output<java.lang.String>
createTime()
static AzureClient
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, AzureClientState state, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>
location()
com.pulumi.core.Output<java.lang.String>
name()
com.pulumi.core.Output<java.lang.String>
project()
com.pulumi.core.Output<java.lang.String>
tenantId()
com.pulumi.core.Output<java.lang.String>
uid()
-
-
-
Constructor Detail
-
AzureClient
public AzureClient(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
AzureClient
public AzureClient(java.lang.String name, AzureClientArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
AzureClient
public AzureClient(java.lang.String name, AzureClientArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
applicationId
public com.pulumi.core.Output<java.lang.String> applicationId()
- Returns:
- The Azure Active Directory Application ID.
-
certificate
public com.pulumi.core.Output<java.lang.String> certificate()
- Returns:
- Output only. The PEM encoded x509 certificate.
-
createTime
public com.pulumi.core.Output<java.lang.String> createTime()
- Returns:
- Output only. The time at which this resource was created.
-
location
public com.pulumi.core.Output<java.lang.String> location()
- Returns:
- The location for the resource
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- The name of this resource.
-
project
public com.pulumi.core.Output<java.lang.String> project()
- Returns:
- The project for the resource
-
tenantId
public com.pulumi.core.Output<java.lang.String> tenantId()
- Returns:
- The Azure Active Directory Tenant ID. ***
-
uid
public com.pulumi.core.Output<java.lang.String> uid()
- Returns:
- Output only. A globally unique identifier for the client.
-
get
public static AzureClient get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable AzureClientState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.state
-options
- Optional settings to control the behavior of the CustomResource.
-
-