BillingAccountBucketConfig
Manages a billing account level logging bucket config. For more information see the official logging documentation and Storing Logs.
Note: Logging buckets are automatically created for a given folder, project, organization, billingAccount and cannot be deleted. Creating a resource of this type will acquire and update the resource that already exists at the desired location. These buckets cannot be removed so deleting this resource will remove the bucket config from your state but will leave the logging bucket unchanged. The buckets that are currently automatically created are “_Default” and “_Required”.
Create a BillingAccountBucketConfig Resource
new BillingAccountBucketConfig(name: string, args: BillingAccountBucketConfigArgs, opts?: CustomResourceOptions);def BillingAccountBucketConfig(resource_name, opts=None, billing_account=None, bucket_id=None, description=None, location=None, retention_days=None, __props__=None);func NewBillingAccountBucketConfig(ctx *Context, name string, args BillingAccountBucketConfigArgs, opts ...ResourceOption) (*BillingAccountBucketConfig, error)public BillingAccountBucketConfig(string name, BillingAccountBucketConfigArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args BillingAccountBucketConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args BillingAccountBucketConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BillingAccountBucketConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
BillingAccountBucketConfig Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The BillingAccountBucketConfig resource accepts the following input properties:
- Billing
Account string The parent resource that contains the logging bucket.
- Bucket
Id string The name of the logging bucket. Logging automatically creates two log buckets:
_Requiredand_Default.- Location string
The location of the bucket. The supported locations are: “global” “us-central1”
- Description string
Describes this bucket.
- Retention
Days int Logs will be retained by default for this amount of time, after which they will automatically be deleted. The minimum retention period is 1 day. If this value is set to zero at bucket creation time, the default time of 30 days will be used.
- Billing
Account string The parent resource that contains the logging bucket.
- Bucket
Id string The name of the logging bucket. Logging automatically creates two log buckets:
_Requiredand_Default.- Location string
The location of the bucket. The supported locations are: “global” “us-central1”
- Description string
Describes this bucket.
- Retention
Days int Logs will be retained by default for this amount of time, after which they will automatically be deleted. The minimum retention period is 1 day. If this value is set to zero at bucket creation time, the default time of 30 days will be used.
- billing
Account string The parent resource that contains the logging bucket.
- bucket
Id string The name of the logging bucket. Logging automatically creates two log buckets:
_Requiredand_Default.- location string
The location of the bucket. The supported locations are: “global” “us-central1”
- description string
Describes this bucket.
- retention
Days number Logs will be retained by default for this amount of time, after which they will automatically be deleted. The minimum retention period is 1 day. If this value is set to zero at bucket creation time, the default time of 30 days will be used.
- billing_
account str The parent resource that contains the logging bucket.
- bucket_
id str The name of the logging bucket. Logging automatically creates two log buckets:
_Requiredand_Default.- location str
The location of the bucket. The supported locations are: “global” “us-central1”
- description str
Describes this bucket.
- retention_
days float Logs will be retained by default for this amount of time, after which they will automatically be deleted. The minimum retention period is 1 day. If this value is set to zero at bucket creation time, the default time of 30 days will be used.
Outputs
All input properties are implicitly available as output properties. Additionally, the BillingAccountBucketConfig resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
State string The bucket’s lifecycle such as active or deleted. See LifecycleState.
- Name string
The resource name of the bucket. For example: “projects/my-project-id/locations/my-location/buckets/my-bucket-id”
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
State string The bucket’s lifecycle such as active or deleted. See LifecycleState.
- Name string
The resource name of the bucket. For example: “projects/my-project-id/locations/my-location/buckets/my-bucket-id”
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
State string The bucket’s lifecycle such as active or deleted. See LifecycleState.
- name string
The resource name of the bucket. For example: “projects/my-project-id/locations/my-location/buckets/my-bucket-id”
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_
state str The bucket’s lifecycle such as active or deleted. See LifecycleState.
- name str
The resource name of the bucket. For example: “projects/my-project-id/locations/my-location/buckets/my-bucket-id”
Look up an Existing BillingAccountBucketConfig Resource
Get an existing BillingAccountBucketConfig 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>, state?: BillingAccountBucketConfigState, opts?: CustomResourceOptions): BillingAccountBucketConfigstatic get(resource_name, id, opts=None, billing_account=None, bucket_id=None, description=None, lifecycle_state=None, location=None, name=None, retention_days=None, __props__=None);func GetBillingAccountBucketConfig(ctx *Context, name string, id IDInput, state *BillingAccountBucketConfigState, opts ...ResourceOption) (*BillingAccountBucketConfig, error)public static BillingAccountBucketConfig Get(string name, Input<string> id, BillingAccountBucketConfigState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Billing
Account string The parent resource that contains the logging bucket.
- Bucket
Id string The name of the logging bucket. Logging automatically creates two log buckets:
_Requiredand_Default.- Description string
Describes this bucket.
- Lifecycle
State string The bucket’s lifecycle such as active or deleted. See LifecycleState.
- Location string
The location of the bucket. The supported locations are: “global” “us-central1”
- Name string
The resource name of the bucket. For example: “projects/my-project-id/locations/my-location/buckets/my-bucket-id”
- Retention
Days int Logs will be retained by default for this amount of time, after which they will automatically be deleted. The minimum retention period is 1 day. If this value is set to zero at bucket creation time, the default time of 30 days will be used.
- Billing
Account string The parent resource that contains the logging bucket.
- Bucket
Id string The name of the logging bucket. Logging automatically creates two log buckets:
_Requiredand_Default.- Description string
Describes this bucket.
- Lifecycle
State string The bucket’s lifecycle such as active or deleted. See LifecycleState.
- Location string
The location of the bucket. The supported locations are: “global” “us-central1”
- Name string
The resource name of the bucket. For example: “projects/my-project-id/locations/my-location/buckets/my-bucket-id”
- Retention
Days int Logs will be retained by default for this amount of time, after which they will automatically be deleted. The minimum retention period is 1 day. If this value is set to zero at bucket creation time, the default time of 30 days will be used.
- billing
Account string The parent resource that contains the logging bucket.
- bucket
Id string The name of the logging bucket. Logging automatically creates two log buckets:
_Requiredand_Default.- description string
Describes this bucket.
- lifecycle
State string The bucket’s lifecycle such as active or deleted. See LifecycleState.
- location string
The location of the bucket. The supported locations are: “global” “us-central1”
- name string
The resource name of the bucket. For example: “projects/my-project-id/locations/my-location/buckets/my-bucket-id”
- retention
Days number Logs will be retained by default for this amount of time, after which they will automatically be deleted. The minimum retention period is 1 day. If this value is set to zero at bucket creation time, the default time of 30 days will be used.
- billing_
account str The parent resource that contains the logging bucket.
- bucket_
id str The name of the logging bucket. Logging automatically creates two log buckets:
_Requiredand_Default.- description str
Describes this bucket.
- lifecycle_
state str The bucket’s lifecycle such as active or deleted. See LifecycleState.
- location str
The location of the bucket. The supported locations are: “global” “us-central1”
- name str
The resource name of the bucket. For example: “projects/my-project-id/locations/my-location/buckets/my-bucket-id”
- retention_
days float Logs will be retained by default for this amount of time, after which they will automatically be deleted. The minimum retention period is 1 day. If this value is set to zero at bucket creation time, the default time of 30 days will be used.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.