This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi
This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi
Creates a new ManagedZone in a given project and location. Auto-naming is currently not supported for this resource.
Create ManagedZone Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ManagedZone(name: string, args: ManagedZoneArgs, opts?: CustomResourceOptions);@overload
def ManagedZone(resource_name: str,
args: ManagedZoneArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ManagedZone(resource_name: str,
opts: Optional[ResourceOptions] = None,
dns: Optional[str] = None,
managed_zone_id: Optional[str] = None,
target_project: Optional[str] = None,
target_vpc: Optional[str] = None,
description: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
project: Optional[str] = None)func NewManagedZone(ctx *Context, name string, args ManagedZoneArgs, opts ...ResourceOption) (*ManagedZone, error)public ManagedZone(string name, ManagedZoneArgs args, CustomResourceOptions? opts = null)
public ManagedZone(String name, ManagedZoneArgs args)
public ManagedZone(String name, ManagedZoneArgs args, CustomResourceOptions options)
type: google-native:connectors/v1:ManagedZone
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "google-native_connectors_v1_managed_zone" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ManagedZoneArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ManagedZoneArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ManagedZoneArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ManagedZoneArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ManagedZoneArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var managedZoneResource = new GoogleNative.Connectors.V1.ManagedZone("managedZoneResource", new()
{
Dns = "string",
ManagedZoneId = "string",
TargetProject = "string",
TargetVpc = "string",
Description = "string",
Labels =
{
{ "string", "string" },
},
Project = "string",
});
example, err := connectors.NewManagedZone(ctx, "managedZoneResource", &connectors.ManagedZoneArgs{
Dns: pulumi.String("string"),
ManagedZoneId: pulumi.String("string"),
TargetProject: pulumi.String("string"),
TargetVpc: pulumi.String("string"),
Description: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Project: pulumi.String("string"),
})
resource "google-native_connectors_v1_managed_zone" "managedZoneResource" {
lifecycle {
create_before_destroy = true
}
dns = "string"
managed_zone_id = "string"
target_project = "string"
target_vpc = "string"
description = "string"
labels = {
"string" = "string"
}
project = "string"
}
var managedZoneResource = new com.pulumi.googlenative.connectors_v1.ManagedZone("managedZoneResource", com.pulumi.googlenative.connectors_v1.ManagedZoneArgs.builder()
.dns("string")
.managedZoneId("string")
.targetProject("string")
.targetVpc("string")
.description("string")
.labels(Map.of("string", "string"))
.project("string")
.build());
managed_zone_resource = google_native.connectors.v1.ManagedZone("managedZoneResource",
dns="string",
managed_zone_id="string",
target_project="string",
target_vpc="string",
description="string",
labels={
"string": "string",
},
project="string")
const managedZoneResource = new google_native.connectors.v1.ManagedZone("managedZoneResource", {
dns: "string",
managedZoneId: "string",
targetProject: "string",
targetVpc: "string",
description: "string",
labels: {
string: "string",
},
project: "string",
});
type: google-native:connectors/v1:ManagedZone
properties:
description: string
dns: string
labels:
string: string
managedZoneId: string
project: string
targetProject: string
targetVpc: string
ManagedZone Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ManagedZone resource accepts the following input properties:
- Dns string
- DNS Name of the resource
- Managed
Zone stringId - Required. Identifier to assign to the ManagedZone. Must be unique within scope of the parent resource.
- Target
Project string - The name of the Target Project
- Target
Vpc string - The name of the Target Project VPC Network
- Description string
- Optional. Description of the resource.
- Labels Dictionary<string, string>
- Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
- Project string
- Dns string
- DNS Name of the resource
- Managed
Zone stringId - Required. Identifier to assign to the ManagedZone. Must be unique within scope of the parent resource.
- Target
Project string - The name of the Target Project
- Target
Vpc string - The name of the Target Project VPC Network
- Description string
- Optional. Description of the resource.
- Labels map[string]string
- Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
- Project string
- dns string
- DNS Name of the resource
- managed_
zone_ stringid - Required. Identifier to assign to the ManagedZone. Must be unique within scope of the parent resource.
- target_
project string - The name of the Target Project
- target_
vpc string - The name of the Target Project VPC Network
- description string
- Optional. Description of the resource.
- labels map(string)
- Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
- project string
- dns String
- DNS Name of the resource
- managed
Zone StringId - Required. Identifier to assign to the ManagedZone. Must be unique within scope of the parent resource.
- target
Project String - The name of the Target Project
- target
Vpc String - The name of the Target Project VPC Network
- description String
- Optional. Description of the resource.
- labels Map<String,String>
- Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
- project String
- dns string
- DNS Name of the resource
- managed
Zone stringId - Required. Identifier to assign to the ManagedZone. Must be unique within scope of the parent resource.
- target
Project string - The name of the Target Project
- target
Vpc string - The name of the Target Project VPC Network
- description string
- Optional. Description of the resource.
- labels {[key: string]: string}
- Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
- project string
- dns str
- DNS Name of the resource
- managed_
zone_ strid - Required. Identifier to assign to the ManagedZone. Must be unique within scope of the parent resource.
- target_
project str - The name of the Target Project
- target_
vpc str - The name of the Target Project VPC Network
- description str
- Optional. Description of the resource.
- labels Mapping[str, str]
- Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
- project str
- dns String
- DNS Name of the resource
- managed
Zone StringId - Required. Identifier to assign to the ManagedZone. Must be unique within scope of the parent resource.
- target
Project String - The name of the Target Project
- target
Vpc String - The name of the Target Project VPC Network
- description String
- Optional. Description of the resource.
- labels Map<String>
- Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
- project String
Outputs
All input properties are implicitly available as output properties. Additionally, the ManagedZone resource produces the following output properties:
- Create
Time string - Created time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name of the Managed Zone. Format: projects/{project}/locations/global/managedZones/{managed_zone}
- Update
Time string - Updated time.
- Create
Time string - Created time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name of the Managed Zone. Format: projects/{project}/locations/global/managedZones/{managed_zone}
- Update
Time string - Updated time.
- create_
time string - Created time.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name of the Managed Zone. Format: projects/{project}/locations/global/managedZones/{managed_zone}
- update_
time string - Updated time.
- create
Time String - Created time.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name of the Managed Zone. Format: projects/{project}/locations/global/managedZones/{managed_zone}
- update
Time String - Updated time.
- create
Time string - Created time.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name of the Managed Zone. Format: projects/{project}/locations/global/managedZones/{managed_zone}
- update
Time string - Updated time.
- create_
time str - Created time.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Resource name of the Managed Zone. Format: projects/{project}/locations/global/managedZones/{managed_zone}
- update_
time str - Updated time.
- create
Time String - Created time.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name of the Managed Zone. Format: projects/{project}/locations/global/managedZones/{managed_zone}
- update
Time String - Updated time.
Look up Existing ManagedZone Resource
Get an existing ManagedZone resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): ManagedZone@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> ManagedZonefunc GetManagedZone(ctx *Context, name string, id IDInput, state *ManagedZoneState, opts ...ResourceOption) (*ManagedZone, error)public static ManagedZone Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static ManagedZone get(String name, Output<String> id, CustomResourceOptions options)resources: existingManagedZone: type: google-native:connectors/v1:ManagedZone get: id: ${id}import {
to = google-native_connectors_v1_managed_zone.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state ManagedZoneState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi