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 view over log entries in a log bucket. A bucket may contain a maximum of 30 views.
Create BucketView Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BucketView(name: string, args: BucketViewArgs, opts?: CustomResourceOptions);@overload
def BucketView(resource_name: str,
args: BucketViewArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BucketView(resource_name: str,
opts: Optional[ResourceOptions] = None,
bucket_id: Optional[str] = None,
view_id: Optional[str] = None,
description: Optional[str] = None,
filter: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None)func NewBucketView(ctx *Context, name string, args BucketViewArgs, opts ...ResourceOption) (*BucketView, error)public BucketView(string name, BucketViewArgs args, CustomResourceOptions? opts = null)
public BucketView(String name, BucketViewArgs args)
public BucketView(String name, BucketViewArgs args, CustomResourceOptions options)
type: google-native:logging/v2:BucketView
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "google-native_logging_v2_bucket_view" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args BucketViewArgs
- 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 BucketViewArgs
- 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 BucketViewArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BucketViewArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BucketViewArgs
- 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 bucketViewResource = new GoogleNative.Logging.V2.BucketView("bucketViewResource", new()
{
BucketId = "string",
ViewId = "string",
Description = "string",
Filter = "string",
Location = "string",
Name = "string",
Project = "string",
});
example, err := logging.NewBucketView(ctx, "bucketViewResource", &logging.BucketViewArgs{
BucketId: pulumi.String("string"),
ViewId: pulumi.String("string"),
Description: pulumi.String("string"),
Filter: pulumi.String("string"),
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
})
resource "google-native_logging_v2_bucket_view" "bucketViewResource" {
lifecycle {
create_before_destroy = true
}
bucket_id = "string"
view_id = "string"
description = "string"
filter = "string"
location = "string"
name = "string"
project = "string"
}
var bucketViewResource = new BucketView("bucketViewResource", BucketViewArgs.builder()
.bucketId("string")
.viewId("string")
.description("string")
.filter("string")
.location("string")
.name("string")
.project("string")
.build());
bucket_view_resource = google_native.logging.v2.BucketView("bucketViewResource",
bucket_id="string",
view_id="string",
description="string",
filter="string",
location="string",
name="string",
project="string")
const bucketViewResource = new google_native.logging.v2.BucketView("bucketViewResource", {
bucketId: "string",
viewId: "string",
description: "string",
filter: "string",
location: "string",
name: "string",
project: "string",
});
type: google-native:logging/v2:BucketView
properties:
bucketId: string
description: string
filter: string
location: string
name: string
project: string
viewId: string
BucketView 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 BucketView resource accepts the following input properties:
- Bucket
Id string - View
Id string - Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.
- Description string
- Describes this view.
- Filter string
- Filter that restricts which log entries in a bucket are visible in this view.Filters are restricted to be a logical AND of ==/!= of any of the following: originating project/folder/organization/billing account. resource type log idFor example:SOURCE("projects/myproject") AND resource.type = "gce_instance" AND LOG_ID("stdout")
- Location string
- Name string
- The resource name of the view.For example:projects/my-project/locations/global/buckets/my-bucket/views/my-view
- Project string
- Bucket
Id string - View
Id string - Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.
- Description string
- Describes this view.
- Filter string
- Filter that restricts which log entries in a bucket are visible in this view.Filters are restricted to be a logical AND of ==/!= of any of the following: originating project/folder/organization/billing account. resource type log idFor example:SOURCE("projects/myproject") AND resource.type = "gce_instance" AND LOG_ID("stdout")
- Location string
- Name string
- The resource name of the view.For example:projects/my-project/locations/global/buckets/my-bucket/views/my-view
- Project string
- bucket_
id string - view_
id string - Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.
- description string
- Describes this view.
- filter string
- Filter that restricts which log entries in a bucket are visible in this view.Filters are restricted to be a logical AND of ==/!= of any of the following: originating project/folder/organization/billing account. resource type log idFor example:SOURCE("projects/myproject") AND resource.type = "gce_instance" AND LOG_ID("stdout")
- location string
- name string
- The resource name of the view.For example:projects/my-project/locations/global/buckets/my-bucket/views/my-view
- project string
- bucket
Id String - view
Id String - Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.
- description String
- Describes this view.
- filter String
- Filter that restricts which log entries in a bucket are visible in this view.Filters are restricted to be a logical AND of ==/!= of any of the following: originating project/folder/organization/billing account. resource type log idFor example:SOURCE("projects/myproject") AND resource.type = "gce_instance" AND LOG_ID("stdout")
- location String
- name String
- The resource name of the view.For example:projects/my-project/locations/global/buckets/my-bucket/views/my-view
- project String
- bucket
Id string - view
Id string - Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.
- description string
- Describes this view.
- filter string
- Filter that restricts which log entries in a bucket are visible in this view.Filters are restricted to be a logical AND of ==/!= of any of the following: originating project/folder/organization/billing account. resource type log idFor example:SOURCE("projects/myproject") AND resource.type = "gce_instance" AND LOG_ID("stdout")
- location string
- name string
- The resource name of the view.For example:projects/my-project/locations/global/buckets/my-bucket/views/my-view
- project string
- bucket_
id str - view_
id str - Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.
- description str
- Describes this view.
- filter str
- Filter that restricts which log entries in a bucket are visible in this view.Filters are restricted to be a logical AND of ==/!= of any of the following: originating project/folder/organization/billing account. resource type log idFor example:SOURCE("projects/myproject") AND resource.type = "gce_instance" AND LOG_ID("stdout")
- location str
- name str
- The resource name of the view.For example:projects/my-project/locations/global/buckets/my-bucket/views/my-view
- project str
- bucket
Id String - view
Id String - Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.
- description String
- Describes this view.
- filter String
- Filter that restricts which log entries in a bucket are visible in this view.Filters are restricted to be a logical AND of ==/!= of any of the following: originating project/folder/organization/billing account. resource type log idFor example:SOURCE("projects/myproject") AND resource.type = "gce_instance" AND LOG_ID("stdout")
- location String
- name String
- The resource name of the view.For example:projects/my-project/locations/global/buckets/my-bucket/views/my-view
- project String
Outputs
All input properties are implicitly available as output properties. Additionally, the BucketView resource produces the following output properties:
- Create
Time string - The creation timestamp of the view.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - The last update timestamp of the view.
- Create
Time string - The creation timestamp of the view.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - The last update timestamp of the view.
- create_
time string - The creation timestamp of the view.
- id string
- The provider-assigned unique ID for this managed resource.
- update_
time string - The last update timestamp of the view.
- create
Time String - The creation timestamp of the view.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - The last update timestamp of the view.
- create
Time string - The creation timestamp of the view.
- id string
- The provider-assigned unique ID for this managed resource.
- update
Time string - The last update timestamp of the view.
- create_
time str - The creation timestamp of the view.
- id str
- The provider-assigned unique ID for this managed resource.
- update_
time str - The last update timestamp of the view.
- create
Time String - The creation timestamp of the view.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - The last update timestamp of the view.
Look up Existing BucketView Resource
Get an existing BucketView 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): BucketView@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> BucketViewfunc GetBucketView(ctx *Context, name string, id IDInput, state *BucketViewState, opts ...ResourceOption) (*BucketView, error)public static BucketView Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static BucketView get(String name, Output<String> id, CustomResourceOptions options)resources: existingBucketView: type: google-native:logging/v2:BucketView get: id: ${id}import {
to = google-native_logging_v2_bucket_view.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 BucketViewState
- 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