import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * An Anthos cluster running on Azure. * * For more information, see: * * [Multicloud overview](https://cloud.google.com/kubernetes-engine/multi-cloud/docs) * ## Example Usage * * ### Basic_azure_cluster * A basic example of a containerazure azure cluster * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const versions = gcp.container.getAzureVersions({ * project: "my-project-name", * location: "us-west1", * }); * const basic = new gcp.container.AzureClient("basic", { * applicationId: "12345678-1234-1234-1234-123456789111", * location: "us-west1", * name: "client-name", * tenantId: "12345678-1234-1234-1234-123456789111", * project: "my-project-name", * }); * const primary = new gcp.container.AzureCluster("primary", { * authorization: { * adminUsers: [{ * username: "mmv2@google.com", * }], * adminGroups: [{ * group: "group@domain.com", * }], * }, * azureRegion: "westus2", * client: pulumi.interpolate`projects/my-project-number/locations/us-west1/azureClients/${basic.name}`, * controlPlane: { * sshConfig: { * authorizedKey: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC8yaayO6lnb2v+SedxUMa2c8vtIEzCzBjM3EJJsv8Vm9zUDWR7dXWKoNGARUb2mNGXASvI6mFIDXTIlkQ0poDEPpMaXR0g2cb5xT8jAAJq7fqXL3+0rcJhY/uigQ+MrT6s+ub0BFVbsmGHNrMQttXX9gtmwkeAEvj3mra9e5pkNf90qlKnZz6U0SVArxVsLx07vHPHDIYrl0OPG4zUREF52igbBPiNrHJFDQJT/4YlDMJmo/QT/A1D6n9ocemvZSzhRx15/Arjowhr+VVKSbaxzPtEfY0oIg2SrqJnnr/l3Du5qIefwh5VmCZe4xopPUaDDoOIEFriZ88sB+3zz8ib8sk8zJJQCgeP78tQvXCgS+4e5W3TUg9mxjB6KjXTyHIVhDZqhqde0OI3Fy1UuVzRUwnBaLjBnAwP5EoFQGRmDYk/rEYe7HTmovLeEBUDQocBQKT4Ripm/xJkkWY7B07K/tfo56dGUCkvyIVXKBInCh+dLK7gZapnd4UWkY0xBYcwo1geMLRq58iFTLA2j/JmpmHXp7m0l7jJii7d44uD3tTIFYThn7NlOnvhLim/YcBK07GMGIN7XwrrKZKmxXaspw6KBWVhzuw1UPxctxshYEaMLfFg/bwOw8HvMPr9VtrElpSB7oiOh91PDIPdPBgHCi7N2QgQ5l/ZDBHieSpNrQ== thomasrodgers", * }, * subnetId: "/subscriptions/12345678-1234-1234-1234-123456789111/resourceGroups/my--dev-byo/providers/Microsoft.Network/virtualNetworks/my--dev-vnet/subnets/default", * version: versions.then(versions => versions.validVersions?.[0]), * }, * fleet: { * project: "my-project-number", * }, * location: "us-west1", * name: "name", * networking: { * podAddressCidrBlocks: ["10.200.0.0/16"], * serviceAddressCidrBlocks: ["10.32.0.0/24"], * virtualNetworkId: "/subscriptions/12345678-1234-1234-1234-123456789111/resourceGroups/my--dev-byo/providers/Microsoft.Network/virtualNetworks/my--dev-vnet", * }, * resourceGroupId: "/subscriptions/12345678-1234-1234-1234-123456789111/resourceGroups/my--dev-cluster", * project: "my-project-name", * }); * ``` * ### Beta_basic_enum_azure_cluster * A basic example of a containerazure azure cluster with lowercase enums (beta) * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const versions = gcp.container.getAzureVersions({ * project: "my-project-name", * location: "us-west1", * }); * const basic = new gcp.container.AzureClient("basic", { * applicationId: "12345678-1234-1234-1234-123456789111", * location: "us-west1", * name: "client-name", * tenantId: "12345678-1234-1234-1234-123456789111", * project: "my-project-name", * }); * const primary = new gcp.container.AzureCluster("primary", { * authorization: { * adminUsers: [{ * username: "mmv2@google.com", * }], * }, * azureRegion: "westus2", * client: pulumi.interpolate`projects/my-project-number/locations/us-west1/azureClients/${basic.name}`, * controlPlane: { * sshConfig: { * authorizedKey: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC8yaayO6lnb2v+SedxUMa2c8vtIEzCzBjM3EJJsv8Vm9zUDWR7dXWKoNGARUb2mNGXASvI6mFIDXTIlkQ0poDEPpMaXR0g2cb5xT8jAAJq7fqXL3+0rcJhY/uigQ+MrT6s+ub0BFVbsmGHNrMQttXX9gtmwkeAEvj3mra9e5pkNf90qlKnZz6U0SVArxVsLx07vHPHDIYrl0OPG4zUREF52igbBPiNrHJFDQJT/4YlDMJmo/QT/A1D6n9ocemvZSzhRx15/Arjowhr+VVKSbaxzPtEfY0oIg2SrqJnnr/l3Du5qIefwh5VmCZe4xopPUaDDoOIEFriZ88sB+3zz8ib8sk8zJJQCgeP78tQvXCgS+4e5W3TUg9mxjB6KjXTyHIVhDZqhqde0OI3Fy1UuVzRUwnBaLjBnAwP5EoFQGRmDYk/rEYe7HTmovLeEBUDQocBQKT4Ripm/xJkkWY7B07K/tfo56dGUCkvyIVXKBInCh+dLK7gZapnd4UWkY0xBYcwo1geMLRq58iFTLA2j/JmpmHXp7m0l7jJii7d44uD3tTIFYThn7NlOnvhLim/YcBK07GMGIN7XwrrKZKmxXaspw6KBWVhzuw1UPxctxshYEaMLfFg/bwOw8HvMPr9VtrElpSB7oiOh91PDIPdPBgHCi7N2QgQ5l/ZDBHieSpNrQ== thomasrodgers", * }, * subnetId: "/subscriptions/12345678-1234-1234-1234-123456789111/resourceGroups/my--dev-byo/providers/Microsoft.Network/virtualNetworks/my--dev-vnet/subnets/default", * version: versions.then(versions => versions.validVersions?.[0]), * }, * fleet: { * project: "my-project-number", * }, * location: "us-west1", * name: "name", * networking: { * podAddressCidrBlocks: ["10.200.0.0/16"], * serviceAddressCidrBlocks: ["10.32.0.0/24"], * virtualNetworkId: "/subscriptions/12345678-1234-1234-1234-123456789111/resourceGroups/my--dev-byo/providers/Microsoft.Network/virtualNetworks/my--dev-vnet", * }, * resourceGroupId: "/subscriptions/12345678-1234-1234-1234-123456789111/resourceGroups/my--dev-cluster", * project: "my-project-name", * loggingConfig: { * componentConfig: { * enableComponents: [ * "system_components", * "workloads", * ], * }, * }, * }); * ``` * * ## Import * * Cluster can be imported using any of these accepted formats: * * `projects/{{project}}/locations/{{location}}/azureClusters/{{name}}` * * `{{project}}/{{location}}/{{name}}` * * `{{location}}/{{name}}` * * When using the `pulumi import` command, Cluster can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:container/azureCluster:AzureCluster default projects/{{project}}/locations/{{location}}/azureClusters/{{name}} * $ pulumi import gcp:container/azureCluster:AzureCluster default {{project}}/{{location}}/{{name}} * $ pulumi import gcp:container/azureCluster:AzureCluster default {{location}}/{{name}} * ``` */ export declare class AzureCluster extends pulumi.CustomResource { /** * Get an existing AzureCluster resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: AzureClusterState, opts?: pulumi.CustomResourceOptions): AzureCluster; /** * Returns true if the given object is an instance of AzureCluster. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is AzureCluster; /** * Optional. Annotations on the cluster. This field has the same restrictions as Kubernetes annotations. The total size of all keys and values combined is limited to 256k. Keys can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between. * * **Note**: This field is non-authoritative, and will only manage the annotations present in your configuration. * Please refer to the field `effectiveAnnotations` for all of the annotations present on the resource. */ readonly annotations: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Configuration related to the cluster RBAC settings. */ readonly authorization: pulumi.Output; /** * The Azure region where the cluster runs. Each Google Cloud region supports a subset of nearby Azure regions. You can call to list all supported Azure regions within a given Google Cloud region. */ readonly azureRegion: pulumi.Output; /** * Azure authentication configuration for management of Azure resources */ readonly azureServicesAuthentication: pulumi.Output; /** * Name of the AzureClient. The `AzureClient` resource must reside on the same GCP project and region as the `AzureCluster`. `AzureClient` names are formatted as `projects//locations//azureClients/`. See Resource Names (https:cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names. */ readonly client: pulumi.Output; /** * Configuration related to the cluster control plane. */ readonly controlPlane: pulumi.Output; /** * Output only. The time at which this cluster was created. */ readonly createTime: pulumi.Output; /** * Optional. A human readable description of this cluster. Cannot be longer than 255 UTF-8 encoded bytes. */ readonly description: pulumi.Output; /** * All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services. */ readonly effectiveAnnotations: pulumi.Output<{ [key: string]: string; }>; /** * Output only. The endpoint of the cluster's API server. */ readonly endpoint: pulumi.Output; /** * Allows clients to perform consistent read-modify-writes through optimistic concurrency control. May be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. */ readonly etag: pulumi.Output; /** * Fleet configuration. */ readonly fleet: pulumi.Output; /** * The location for the resource */ readonly location: pulumi.Output; /** * Logging configuration. */ readonly loggingConfig: pulumi.Output; /** * The name of this resource. */ readonly name: pulumi.Output; /** * Cluster-wide networking configuration. */ readonly networking: pulumi.Output; /** * The project for the resource */ readonly project: pulumi.Output; /** * Output only. If set, there are currently changes in flight to the cluster. */ readonly reconciling: pulumi.Output; /** * The ARM ID of the resource group where the cluster resources are deployed. For example: `/subscriptions/*/resourceGroups/*` */ readonly resourceGroupId: pulumi.Output; /** * Output only. The current state of the cluster. Possible values: STATE_UNSPECIFIED, PROVISIONING, RUNNING, RECONCILING, STOPPING, ERROR, DEGRADED */ readonly state: pulumi.Output; /** * Output only. A globally unique identifier for the cluster. */ readonly uid: pulumi.Output; /** * Output only. The time at which this cluster was last updated. */ readonly updateTime: pulumi.Output; /** * Output only. Workload Identity settings. */ readonly workloadIdentityConfigs: pulumi.Output; /** * Create a AzureCluster resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: AzureClusterArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AzureCluster resources. */ export interface AzureClusterState { /** * Optional. Annotations on the cluster. This field has the same restrictions as Kubernetes annotations. The total size of all keys and values combined is limited to 256k. Keys can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between. * * **Note**: This field is non-authoritative, and will only manage the annotations present in your configuration. * Please refer to the field `effectiveAnnotations` for all of the annotations present on the resource. */ annotations?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Configuration related to the cluster RBAC settings. */ authorization?: pulumi.Input; /** * The Azure region where the cluster runs. Each Google Cloud region supports a subset of nearby Azure regions. You can call to list all supported Azure regions within a given Google Cloud region. */ azureRegion?: pulumi.Input; /** * Azure authentication configuration for management of Azure resources */ azureServicesAuthentication?: pulumi.Input; /** * Name of the AzureClient. The `AzureClient` resource must reside on the same GCP project and region as the `AzureCluster`. `AzureClient` names are formatted as `projects//locations//azureClients/`. See Resource Names (https:cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names. */ client?: pulumi.Input; /** * Configuration related to the cluster control plane. */ controlPlane?: pulumi.Input; /** * Output only. The time at which this cluster was created. */ createTime?: pulumi.Input; /** * Optional. A human readable description of this cluster. Cannot be longer than 255 UTF-8 encoded bytes. */ description?: pulumi.Input; /** * All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services. */ effectiveAnnotations?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Output only. The endpoint of the cluster's API server. */ endpoint?: pulumi.Input; /** * Allows clients to perform consistent read-modify-writes through optimistic concurrency control. May be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. */ etag?: pulumi.Input; /** * Fleet configuration. */ fleet?: pulumi.Input; /** * The location for the resource */ location?: pulumi.Input; /** * Logging configuration. */ loggingConfig?: pulumi.Input; /** * The name of this resource. */ name?: pulumi.Input; /** * Cluster-wide networking configuration. */ networking?: pulumi.Input; /** * The project for the resource */ project?: pulumi.Input; /** * Output only. If set, there are currently changes in flight to the cluster. */ reconciling?: pulumi.Input; /** * The ARM ID of the resource group where the cluster resources are deployed. For example: `/subscriptions/*/resourceGroups/*` */ resourceGroupId?: pulumi.Input; /** * Output only. The current state of the cluster. Possible values: STATE_UNSPECIFIED, PROVISIONING, RUNNING, RECONCILING, STOPPING, ERROR, DEGRADED */ state?: pulumi.Input; /** * Output only. A globally unique identifier for the cluster. */ uid?: pulumi.Input; /** * Output only. The time at which this cluster was last updated. */ updateTime?: pulumi.Input; /** * Output only. Workload Identity settings. */ workloadIdentityConfigs?: pulumi.Input[]>; } /** * The set of arguments for constructing a AzureCluster resource. */ export interface AzureClusterArgs { /** * Optional. Annotations on the cluster. This field has the same restrictions as Kubernetes annotations. The total size of all keys and values combined is limited to 256k. Keys can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between. * * **Note**: This field is non-authoritative, and will only manage the annotations present in your configuration. * Please refer to the field `effectiveAnnotations` for all of the annotations present on the resource. */ annotations?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Configuration related to the cluster RBAC settings. */ authorization: pulumi.Input; /** * The Azure region where the cluster runs. Each Google Cloud region supports a subset of nearby Azure regions. You can call to list all supported Azure regions within a given Google Cloud region. */ azureRegion: pulumi.Input; /** * Azure authentication configuration for management of Azure resources */ azureServicesAuthentication?: pulumi.Input; /** * Name of the AzureClient. The `AzureClient` resource must reside on the same GCP project and region as the `AzureCluster`. `AzureClient` names are formatted as `projects//locations//azureClients/`. See Resource Names (https:cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names. */ client?: pulumi.Input; /** * Configuration related to the cluster control plane. */ controlPlane: pulumi.Input; /** * Optional. A human readable description of this cluster. Cannot be longer than 255 UTF-8 encoded bytes. */ description?: pulumi.Input; /** * Fleet configuration. */ fleet: pulumi.Input; /** * The location for the resource */ location: pulumi.Input; /** * Logging configuration. */ loggingConfig?: pulumi.Input; /** * The name of this resource. */ name?: pulumi.Input; /** * Cluster-wide networking configuration. */ networking: pulumi.Input; /** * The project for the resource */ project?: pulumi.Input; /** * The ARM ID of the resource group where the cluster resources are deployed. For example: `/subscriptions/*/resourceGroups/*` */ resourceGroupId: pulumi.Input; }