1. Packages
  2. Google Cloud Native
  3. API Docs
  4. dataplex
  5. dataplex/v1
  6. Partition

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.dataplex/v1.Partition

Explore with Pulumi AI

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

Create a metadata partition. Auto-naming is currently not supported for this resource.

Create Partition Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Partition(name: string, args: PartitionArgs, opts?: CustomResourceOptions);
@overload
def Partition(resource_name: str,
              args: PartitionArgs,
              opts: Optional[ResourceOptions] = None)

@overload
def Partition(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              entity_id: Optional[str] = None,
              lake_id: Optional[str] = None,
              values: Optional[Sequence[str]] = None,
              etag: Optional[str] = None,
              location: Optional[str] = None,
              project: Optional[str] = None,
              zone: Optional[str] = None)
func NewPartition(ctx *Context, name string, args PartitionArgs, opts ...ResourceOption) (*Partition, error)
public Partition(string name, PartitionArgs args, CustomResourceOptions? opts = null)
public Partition(String name, PartitionArgs args)
public Partition(String name, PartitionArgs args, CustomResourceOptions options)
type: google-native:dataplex/v1:Partition
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. PartitionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. PartitionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. PartitionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. PartitionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. PartitionArgs
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 partitionResource = new GoogleNative.Dataplex.V1.Partition("partitionResource", new()
{
    EntityId = "string",
    LakeId = "string",
    Values = new[]
    {
        "string",
    },
    Etag = "string",
    Location = "string",
    Project = "string",
    Zone = "string",
});
Copy
example, err := dataplex.NewPartition(ctx, "partitionResource", &dataplex.PartitionArgs{
	EntityId: pulumi.String("string"),
	LakeId:   pulumi.String("string"),
	Values: pulumi.StringArray{
		pulumi.String("string"),
	},
	Etag:     pulumi.String("string"),
	Location: pulumi.String("string"),
	Project:  pulumi.String("string"),
	Zone:     pulumi.String("string"),
})
Copy
var partitionResource = new Partition("partitionResource", PartitionArgs.builder()
    .entityId("string")
    .lakeId("string")
    .values("string")
    .etag("string")
    .location("string")
    .project("string")
    .zone("string")
    .build());
Copy
partition_resource = google_native.dataplex.v1.Partition("partitionResource",
    entity_id="string",
    lake_id="string",
    values=["string"],
    etag="string",
    location="string",
    project="string",
    zone="string")
Copy
const partitionResource = new google_native.dataplex.v1.Partition("partitionResource", {
    entityId: "string",
    lakeId: "string",
    values: ["string"],
    etag: "string",
    location: "string",
    project: "string",
    zone: "string",
});
Copy
type: google-native:dataplex/v1:Partition
properties:
    entityId: string
    etag: string
    lakeId: string
    location: string
    project: string
    values:
        - string
    zone: string
Copy

Partition 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 Partition resource accepts the following input properties:

EntityId
This property is required.
Changes to this property will trigger replacement.
string
LakeId
This property is required.
Changes to this property will trigger replacement.
string
Values This property is required. List<string>
Immutable. The set of values representing the partition, which correspond to the partition schema defined in the parent entity.
Etag string
Optional. The etag for this partition.
Location string
Immutable. The location of the entity data within the partition, for example, gs://bucket/path/to/entity/key1=value1/key2=value2. Or projects//datasets//tables/
Project Changes to this property will trigger replacement. string
Zone Changes to this property will trigger replacement. string
EntityId
This property is required.
Changes to this property will trigger replacement.
string
LakeId
This property is required.
Changes to this property will trigger replacement.
string
Values This property is required. []string
Immutable. The set of values representing the partition, which correspond to the partition schema defined in the parent entity.
Etag string
Optional. The etag for this partition.
Location string
Immutable. The location of the entity data within the partition, for example, gs://bucket/path/to/entity/key1=value1/key2=value2. Or projects//datasets//tables/
Project Changes to this property will trigger replacement. string
Zone Changes to this property will trigger replacement. string
entityId
This property is required.
Changes to this property will trigger replacement.
String
lakeId
This property is required.
Changes to this property will trigger replacement.
String
values This property is required. List<String>
Immutable. The set of values representing the partition, which correspond to the partition schema defined in the parent entity.
etag String
Optional. The etag for this partition.
location String
Immutable. The location of the entity data within the partition, for example, gs://bucket/path/to/entity/key1=value1/key2=value2. Or projects//datasets//tables/
project Changes to this property will trigger replacement. String
zone Changes to this property will trigger replacement. String
entityId
This property is required.
Changes to this property will trigger replacement.
string
lakeId
This property is required.
Changes to this property will trigger replacement.
string
values This property is required. string[]
Immutable. The set of values representing the partition, which correspond to the partition schema defined in the parent entity.
etag string
Optional. The etag for this partition.
location string
Immutable. The location of the entity data within the partition, for example, gs://bucket/path/to/entity/key1=value1/key2=value2. Or projects//datasets//tables/
project Changes to this property will trigger replacement. string
zone Changes to this property will trigger replacement. string
entity_id
This property is required.
Changes to this property will trigger replacement.
str
lake_id
This property is required.
Changes to this property will trigger replacement.
str
values This property is required. Sequence[str]
Immutable. The set of values representing the partition, which correspond to the partition schema defined in the parent entity.
etag str
Optional. The etag for this partition.
location str
Immutable. The location of the entity data within the partition, for example, gs://bucket/path/to/entity/key1=value1/key2=value2. Or projects//datasets//tables/
project Changes to this property will trigger replacement. str
zone Changes to this property will trigger replacement. str
entityId
This property is required.
Changes to this property will trigger replacement.
String
lakeId
This property is required.
Changes to this property will trigger replacement.
String
values This property is required. List<String>
Immutable. The set of values representing the partition, which correspond to the partition schema defined in the parent entity.
etag String
Optional. The etag for this partition.
location String
Immutable. The location of the entity data within the partition, for example, gs://bucket/path/to/entity/key1=value1/key2=value2. Or projects//datasets//tables/
project Changes to this property will trigger replacement. String
zone Changes to this property will trigger replacement. String

Outputs

All input properties are implicitly available as output properties. Additionally, the Partition resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Name string
Partition values used in the HTTP URL must be double encoded. For example, url_encode(url_encode(value)) can be used to encode "US:CA/CA#Sunnyvale so that the request URL ends with "/partitions/US%253ACA/CA%2523Sunnyvale". The name field in the response retains the encoded format.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Partition values used in the HTTP URL must be double encoded. For example, url_encode(url_encode(value)) can be used to encode "US:CA/CA#Sunnyvale so that the request URL ends with "/partitions/US%253ACA/CA%2523Sunnyvale". The name field in the response retains the encoded format.
id String
The provider-assigned unique ID for this managed resource.
name String
Partition values used in the HTTP URL must be double encoded. For example, url_encode(url_encode(value)) can be used to encode "US:CA/CA#Sunnyvale so that the request URL ends with "/partitions/US%253ACA/CA%2523Sunnyvale". The name field in the response retains the encoded format.
id string
The provider-assigned unique ID for this managed resource.
name string
Partition values used in the HTTP URL must be double encoded. For example, url_encode(url_encode(value)) can be used to encode "US:CA/CA#Sunnyvale so that the request URL ends with "/partitions/US%253ACA/CA%2523Sunnyvale". The name field in the response retains the encoded format.
id str
The provider-assigned unique ID for this managed resource.
name str
Partition values used in the HTTP URL must be double encoded. For example, url_encode(url_encode(value)) can be used to encode "US:CA/CA#Sunnyvale so that the request URL ends with "/partitions/US%253ACA/CA%2523Sunnyvale". The name field in the response retains the encoded format.
id String
The provider-assigned unique ID for this managed resource.
name String
Partition values used in the HTTP URL must be double encoded. For example, url_encode(url_encode(value)) can be used to encode "US:CA/CA#Sunnyvale so that the request URL ends with "/partitions/US%253ACA/CA%2523Sunnyvale". The name field in the response retains the encoded format.

Package Details

Repository
Google Cloud Native pulumi/pulumi-google-native
License
Apache-2.0

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi