1. Packages
  2. Google Cloud Native
  3. API Docs
  4. logging
  5. logging/v2
  6. BillingAccountBucketLink

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.logging/v2.BillingAccountBucketLink

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

Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to read the logs stored in the log bucket. A log bucket may currently only contain one link. Auto-naming is currently not supported for this resource.

Create BillingAccountBucketLink Resource

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

Constructor syntax

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

@overload
def BillingAccountBucketLink(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             billing_account_id: Optional[str] = None,
                             bucket_id: Optional[str] = None,
                             link_id: Optional[str] = None,
                             bigquery_dataset: Optional[BigQueryDatasetArgs] = None,
                             description: Optional[str] = None,
                             location: Optional[str] = None,
                             name: Optional[str] = None)
func NewBillingAccountBucketLink(ctx *Context, name string, args BillingAccountBucketLinkArgs, opts ...ResourceOption) (*BillingAccountBucketLink, error)
public BillingAccountBucketLink(string name, BillingAccountBucketLinkArgs args, CustomResourceOptions? opts = null)
public BillingAccountBucketLink(String name, BillingAccountBucketLinkArgs args)
public BillingAccountBucketLink(String name, BillingAccountBucketLinkArgs args, CustomResourceOptions options)
type: google-native:logging/v2:BillingAccountBucketLink
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. BillingAccountBucketLinkArgs
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. BillingAccountBucketLinkArgs
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. BillingAccountBucketLinkArgs
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. BillingAccountBucketLinkArgs
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. BillingAccountBucketLinkArgs
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 billingAccountBucketLinkResource = new GoogleNative.Logging.V2.BillingAccountBucketLink("billingAccountBucketLinkResource", new()
{
    BillingAccountId = "string",
    BucketId = "string",
    LinkId = "string",
    BigqueryDataset = null,
    Description = "string",
    Location = "string",
    Name = "string",
});
Copy
example, err := logging.NewBillingAccountBucketLink(ctx, "billingAccountBucketLinkResource", &logging.BillingAccountBucketLinkArgs{
	BillingAccountId: pulumi.String("string"),
	BucketId:         pulumi.String("string"),
	LinkId:           pulumi.String("string"),
	BigqueryDataset:  &logging.BigQueryDatasetArgs{},
	Description:      pulumi.String("string"),
	Location:         pulumi.String("string"),
	Name:             pulumi.String("string"),
})
Copy
var billingAccountBucketLinkResource = new BillingAccountBucketLink("billingAccountBucketLinkResource", BillingAccountBucketLinkArgs.builder()
    .billingAccountId("string")
    .bucketId("string")
    .linkId("string")
    .bigqueryDataset()
    .description("string")
    .location("string")
    .name("string")
    .build());
Copy
billing_account_bucket_link_resource = google_native.logging.v2.BillingAccountBucketLink("billingAccountBucketLinkResource",
    billing_account_id="string",
    bucket_id="string",
    link_id="string",
    bigquery_dataset={},
    description="string",
    location="string",
    name="string")
Copy
const billingAccountBucketLinkResource = new google_native.logging.v2.BillingAccountBucketLink("billingAccountBucketLinkResource", {
    billingAccountId: "string",
    bucketId: "string",
    linkId: "string",
    bigqueryDataset: {},
    description: "string",
    location: "string",
    name: "string",
});
Copy
type: google-native:logging/v2:BillingAccountBucketLink
properties:
    bigqueryDataset: {}
    billingAccountId: string
    bucketId: string
    description: string
    linkId: string
    location: string
    name: string
Copy

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

BillingAccountId
This property is required.
Changes to this property will trigger replacement.
string
BucketId
This property is required.
Changes to this property will trigger replacement.
string
LinkId
This property is required.
Changes to this property will trigger replacement.
string
Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it.
BigqueryDataset Pulumi.GoogleNative.Logging.V2.Inputs.BigQueryDataset
The information of a BigQuery Dataset. When a link is created, a BigQuery dataset is created along with it, in the same project as the LogBucket it's linked to. This dataset will also have BigQuery Views corresponding to the LogViews in the bucket.
Description string
Describes this link.The maximum length of the description is 8000 characters.
Location Changes to this property will trigger replacement. string
Name string
The resource name of the link. The name can have up to 100 characters. A valid link id (at the end of the link name) must only have alphanumeric characters and underscores within it. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" For example:`projects/my-project/locations/global/buckets/my-bucket/links/my_link
BillingAccountId
This property is required.
Changes to this property will trigger replacement.
string
BucketId
This property is required.
Changes to this property will trigger replacement.
string
LinkId
This property is required.
Changes to this property will trigger replacement.
string
Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it.
BigqueryDataset BigQueryDatasetArgs
The information of a BigQuery Dataset. When a link is created, a BigQuery dataset is created along with it, in the same project as the LogBucket it's linked to. This dataset will also have BigQuery Views corresponding to the LogViews in the bucket.
Description string
Describes this link.The maximum length of the description is 8000 characters.
Location Changes to this property will trigger replacement. string
Name string
The resource name of the link. The name can have up to 100 characters. A valid link id (at the end of the link name) must only have alphanumeric characters and underscores within it. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" For example:`projects/my-project/locations/global/buckets/my-bucket/links/my_link
billingAccountId
This property is required.
Changes to this property will trigger replacement.
String
bucketId
This property is required.
Changes to this property will trigger replacement.
String
linkId
This property is required.
Changes to this property will trigger replacement.
String
Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it.
bigqueryDataset BigQueryDataset
The information of a BigQuery Dataset. When a link is created, a BigQuery dataset is created along with it, in the same project as the LogBucket it's linked to. This dataset will also have BigQuery Views corresponding to the LogViews in the bucket.
description String
Describes this link.The maximum length of the description is 8000 characters.
location Changes to this property will trigger replacement. String
name String
The resource name of the link. The name can have up to 100 characters. A valid link id (at the end of the link name) must only have alphanumeric characters and underscores within it. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" For example:`projects/my-project/locations/global/buckets/my-bucket/links/my_link
billingAccountId
This property is required.
Changes to this property will trigger replacement.
string
bucketId
This property is required.
Changes to this property will trigger replacement.
string
linkId
This property is required.
Changes to this property will trigger replacement.
string
Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it.
bigqueryDataset BigQueryDataset
The information of a BigQuery Dataset. When a link is created, a BigQuery dataset is created along with it, in the same project as the LogBucket it's linked to. This dataset will also have BigQuery Views corresponding to the LogViews in the bucket.
description string
Describes this link.The maximum length of the description is 8000 characters.
location Changes to this property will trigger replacement. string
name string
The resource name of the link. The name can have up to 100 characters. A valid link id (at the end of the link name) must only have alphanumeric characters and underscores within it. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" For example:`projects/my-project/locations/global/buckets/my-bucket/links/my_link
billing_account_id
This property is required.
Changes to this property will trigger replacement.
str
bucket_id
This property is required.
Changes to this property will trigger replacement.
str
link_id
This property is required.
Changes to this property will trigger replacement.
str
Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it.
bigquery_dataset BigQueryDatasetArgs
The information of a BigQuery Dataset. When a link is created, a BigQuery dataset is created along with it, in the same project as the LogBucket it's linked to. This dataset will also have BigQuery Views corresponding to the LogViews in the bucket.
description str
Describes this link.The maximum length of the description is 8000 characters.
location Changes to this property will trigger replacement. str
name str
The resource name of the link. The name can have up to 100 characters. A valid link id (at the end of the link name) must only have alphanumeric characters and underscores within it. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" For example:`projects/my-project/locations/global/buckets/my-bucket/links/my_link
billingAccountId
This property is required.
Changes to this property will trigger replacement.
String
bucketId
This property is required.
Changes to this property will trigger replacement.
String
linkId
This property is required.
Changes to this property will trigger replacement.
String
Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it.
bigqueryDataset Property Map
The information of a BigQuery Dataset. When a link is created, a BigQuery dataset is created along with it, in the same project as the LogBucket it's linked to. This dataset will also have BigQuery Views corresponding to the LogViews in the bucket.
description String
Describes this link.The maximum length of the description is 8000 characters.
location Changes to this property will trigger replacement. String
name String
The resource name of the link. The name can have up to 100 characters. A valid link id (at the end of the link name) must only have alphanumeric characters and underscores within it. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" For example:`projects/my-project/locations/global/buckets/my-bucket/links/my_link

Outputs

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

CreateTime string
The creation timestamp of the link.
Id string
The provider-assigned unique ID for this managed resource.
LifecycleState string
The resource lifecycle state.
CreateTime string
The creation timestamp of the link.
Id string
The provider-assigned unique ID for this managed resource.
LifecycleState string
The resource lifecycle state.
createTime String
The creation timestamp of the link.
id String
The provider-assigned unique ID for this managed resource.
lifecycleState String
The resource lifecycle state.
createTime string
The creation timestamp of the link.
id string
The provider-assigned unique ID for this managed resource.
lifecycleState string
The resource lifecycle state.
create_time str
The creation timestamp of the link.
id str
The provider-assigned unique ID for this managed resource.
lifecycle_state str
The resource lifecycle state.
createTime String
The creation timestamp of the link.
id String
The provider-assigned unique ID for this managed resource.
lifecycleState String
The resource lifecycle state.

Supporting Types

BigQueryDatasetResponse
, BigQueryDatasetResponseArgs

DatasetId This property is required. string
The full resource name of the BigQuery dataset. The DATASET_ID will match the ID of the link, so the link must match the naming restrictions of BigQuery datasets (alphanumeric characters and underscores only).The dataset will have a resource path of "bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID"
DatasetId This property is required. string
The full resource name of the BigQuery dataset. The DATASET_ID will match the ID of the link, so the link must match the naming restrictions of BigQuery datasets (alphanumeric characters and underscores only).The dataset will have a resource path of "bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID"
datasetId This property is required. String
The full resource name of the BigQuery dataset. The DATASET_ID will match the ID of the link, so the link must match the naming restrictions of BigQuery datasets (alphanumeric characters and underscores only).The dataset will have a resource path of "bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID"
datasetId This property is required. string
The full resource name of the BigQuery dataset. The DATASET_ID will match the ID of the link, so the link must match the naming restrictions of BigQuery datasets (alphanumeric characters and underscores only).The dataset will have a resource path of "bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID"
dataset_id This property is required. str
The full resource name of the BigQuery dataset. The DATASET_ID will match the ID of the link, so the link must match the naming restrictions of BigQuery datasets (alphanumeric characters and underscores only).The dataset will have a resource path of "bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID"
datasetId This property is required. String
The full resource name of the BigQuery dataset. The DATASET_ID will match the ID of the link, so the link must match the naming restrictions of BigQuery datasets (alphanumeric characters and underscores only).The dataset will have a resource path of "bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID"

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