import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Create a multicast domain activation in the specified location of the current project. * * To get more information about MulticastDomainActivation, see: * * * [API documentation](https://docs.cloud.google.com/vpc/docs/multicast/reference/rest/v1/projects.locations.multicastDomainActivations) * * How-to Guides * * [Create Multicast Domain Activation](https://docs.cloud.google.com/vpc/docs/multicast/create-domains#activate-domain) * * ## Example Usage * * ### Network Services Multicast Domain Activation Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const network = new gcp.compute.Network("network", { * name: "test-network-mda", * autoCreateSubnetworks: false, * }); * const multicastDomain = new gcp.networkservices.MulticastDomain("multicast_domain", { * multicastDomainId: "test-domain-mda", * location: "global", * adminNetwork: network.id, * connectionConfig: { * connectionType: "SAME_VPC", * }, * }, { * dependsOn: [network], * }); * const mdaTest = new gcp.networkservices.MulticastDomainActivation("mda_test", { * multicastDomainActivationId: "test-domain-activation-mda", * location: "us-central1-b", * multicastDomain: multicastDomain.id, * }); * ``` * * ## Import * * MulticastDomainActivation can be imported using any of these accepted formats: * * * `projects/{{project}}/locations/{{location}}/multicastDomainActivations/{{multicast_domain_activation_id}}` * * `{{project}}/{{location}}/{{multicast_domain_activation_id}}` * * `{{location}}/{{multicast_domain_activation_id}}` * * When using the `pulumi import` command, MulticastDomainActivation can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:networkservices/multicastDomainActivation:MulticastDomainActivation default projects/{{project}}/locations/{{location}}/multicastDomainActivations/{{multicast_domain_activation_id}} * $ pulumi import gcp:networkservices/multicastDomainActivation:MulticastDomainActivation default {{project}}/{{location}}/{{multicast_domain_activation_id}} * $ pulumi import gcp:networkservices/multicastDomainActivation:MulticastDomainActivation default {{location}}/{{multicast_domain_activation_id}} * ``` */ export declare class MulticastDomainActivation extends pulumi.CustomResource { /** * Get an existing MulticastDomainActivation 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?: MulticastDomainActivationState, opts?: pulumi.CustomResourceOptions): MulticastDomainActivation; /** * Returns true if the given object is an instance of MulticastDomainActivation. 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 MulticastDomainActivation; /** * The URL of the admin network. */ readonly adminNetwork: pulumi.Output; /** * The timestamp when the multicast domain activation was * created. */ readonly createTime: pulumi.Output; /** * An optional text description of the multicast domain activation. */ readonly description: pulumi.Output; /** * Option to allow disabling placement policy for multicast infrastructure. * Only applicable if the activation is for a domain associating with a * multicast domain group. */ readonly disablePlacementPolicy: pulumi.Output; /** * All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. */ readonly effectiveLabels: pulumi.Output<{ [key: string]: string; }>; /** * Labels as key-value pairs * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ readonly labels: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122. */ readonly location: pulumi.Output; /** * The resource name of the multicast domain to activate. * Use the following format: * `projects/*/locations/global/multicastDomains/*`. */ readonly multicastDomain: pulumi.Output; /** * A unique name for the multicast domain activation. * The name is restricted to letters, numbers, and hyphen, with the first * character a letter, and the last a letter or a number. The name must not * exceed 48 characters. */ readonly multicastDomainActivationId: pulumi.Output; /** * Identifier. The resource name of the multicast domain activation. * Use the following format: * `projects/*/locations/*/multicastDomainActivations/*`. */ readonly name: pulumi.Output; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ readonly project: pulumi.Output; /** * The combination of labels configured directly on the resource * and default labels configured on the provider. */ readonly pulumiLabels: pulumi.Output<{ [key: string]: string; }>; /** * (Output) * The state of the multicast resource. * Possible values: * CREATING * ACTIVE * DELETING * DELETE_FAILED * UPDATING * UPDATE_FAILED * INACTIVE */ readonly states: pulumi.Output; /** * Specifies the traffic volume and multicast group scale parameters that are * used to set up multicast infrastructure for a multicast domain in a zone. * Structure is documented below. */ readonly trafficSpec: pulumi.Output; /** * The Google-generated UUID for the resource. This value is * unique across all multicast domain activation resources. If a domain * activation is deleted and another with the same name is created, the new * domain activation is assigned a different unique_id. */ readonly uniqueId: pulumi.Output; /** * The timestamp when the multicast domain activation was most * recently updated. */ readonly updateTime: pulumi.Output; /** * Create a MulticastDomainActivation 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: MulticastDomainActivationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering MulticastDomainActivation resources. */ export interface MulticastDomainActivationState { /** * The URL of the admin network. */ adminNetwork?: pulumi.Input; /** * The timestamp when the multicast domain activation was * created. */ createTime?: pulumi.Input; /** * An optional text description of the multicast domain activation. */ description?: pulumi.Input; /** * Option to allow disabling placement policy for multicast infrastructure. * Only applicable if the activation is for a domain associating with a * multicast domain group. */ disablePlacementPolicy?: pulumi.Input; /** * All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. */ effectiveLabels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Labels as key-value pairs * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122. */ location?: pulumi.Input; /** * The resource name of the multicast domain to activate. * Use the following format: * `projects/*/locations/global/multicastDomains/*`. */ multicastDomain?: pulumi.Input; /** * A unique name for the multicast domain activation. * The name is restricted to letters, numbers, and hyphen, with the first * character a letter, and the last a letter or a number. The name must not * exceed 48 characters. */ multicastDomainActivationId?: pulumi.Input; /** * Identifier. The resource name of the multicast domain activation. * Use the following format: * `projects/*/locations/*/multicastDomainActivations/*`. */ name?: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * The combination of labels configured directly on the resource * and default labels configured on the provider. */ pulumiLabels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * (Output) * The state of the multicast resource. * Possible values: * CREATING * ACTIVE * DELETING * DELETE_FAILED * UPDATING * UPDATE_FAILED * INACTIVE */ states?: pulumi.Input[]>; /** * Specifies the traffic volume and multicast group scale parameters that are * used to set up multicast infrastructure for a multicast domain in a zone. * Structure is documented below. */ trafficSpec?: pulumi.Input; /** * The Google-generated UUID for the resource. This value is * unique across all multicast domain activation resources. If a domain * activation is deleted and another with the same name is created, the new * domain activation is assigned a different unique_id. */ uniqueId?: pulumi.Input; /** * The timestamp when the multicast domain activation was most * recently updated. */ updateTime?: pulumi.Input; } /** * The set of arguments for constructing a MulticastDomainActivation resource. */ export interface MulticastDomainActivationArgs { /** * An optional text description of the multicast domain activation. */ description?: pulumi.Input; /** * Option to allow disabling placement policy for multicast infrastructure. * Only applicable if the activation is for a domain associating with a * multicast domain group. */ disablePlacementPolicy?: pulumi.Input; /** * Labels as key-value pairs * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122. */ location: pulumi.Input; /** * The resource name of the multicast domain to activate. * Use the following format: * `projects/*/locations/global/multicastDomains/*`. */ multicastDomain: pulumi.Input; /** * A unique name for the multicast domain activation. * The name is restricted to letters, numbers, and hyphen, with the first * character a letter, and the last a letter or a number. The name must not * exceed 48 characters. */ multicastDomainActivationId: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * Specifies the traffic volume and multicast group scale parameters that are * used to set up multicast infrastructure for a multicast domain in a zone. * Structure is documented below. */ trafficSpec?: pulumi.Input; }