Show / Hide Table of Contents

Class BucketArgs

Inheritance
System.Object
InputArgs
ResourceArgs
BucketArgs
Inherited Members
ResourceArgs.Empty
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.Storage
Assembly: Pulumi.Gcp.dll
Syntax
public sealed class BucketArgs : ResourceArgs

Constructors

View Source

BucketArgs()

Declaration
public BucketArgs()

Properties

View Source

BucketPolicyOnly

Enables Bucket Policy Only access to a bucket.

Declaration
public Input<bool> BucketPolicyOnly { get; set; }
Property Value
Type Description
Input<System.Boolean>
View Source

Cors

The bucket's Cross-Origin Resource Sharing (CORS) configuration. Multiple blocks of this type are permitted. Structure is documented below.

Declaration
public InputList<BucketCorArgs> Cors { get; set; }
Property Value
Type Description
InputList<BucketCorArgs>
View Source

DefaultEventBasedHold

Declaration
public Input<bool> DefaultEventBasedHold { get; set; }
Property Value
Type Description
Input<System.Boolean>
View Source

Encryption

The bucket's encryption configuration.

Declaration
public Input<BucketEncryptionArgs> Encryption { get; set; }
Property Value
Type Description
Input<BucketEncryptionArgs>
View Source

ForceDestroy

When deleting a bucket, this boolean option will delete all contained objects. If you try to delete a bucket that contains objects, the provider will fail that run.

Declaration
public Input<bool> ForceDestroy { get; set; }
Property Value
Type Description
Input<System.Boolean>
View Source

Labels

A set of key/value label pairs to assign to the bucket.

Declaration
public InputMap<string> Labels { get; set; }
Property Value
Type Description
InputMap<System.String>
View Source

LifecycleRules

The bucket's Lifecycle Rules configuration. Multiple blocks of this type are permitted. Structure is documented below.

Declaration
public InputList<BucketLifecycleRuleArgs> LifecycleRules { get; set; }
Property Value
Type Description
InputList<BucketLifecycleRuleArgs>
View Source

Location

The GCS location

Declaration
public Input<string> Location { get; set; }
Property Value
Type Description
Input<System.String>
View Source

Logging

The bucket's Access & Storage Logs configuration.

Declaration
public Input<BucketLoggingArgs> Logging { get; set; }
Property Value
Type Description
Input<BucketLoggingArgs>
View Source

Name

The name of the bucket.

Declaration
public Input<string> Name { get; set; }
Property Value
Type Description
Input<System.String>
View Source

Project

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Declaration
public Input<string> Project { get; set; }
Property Value
Type Description
Input<System.String>
View Source

RequesterPays

Enables Requester Pays on a storage bucket.

Declaration
public Input<bool> RequesterPays { get; set; }
Property Value
Type Description
Input<System.Boolean>
View Source

RetentionPolicy

Configuration of the bucket's data retention policy for how long objects in the bucket should be retained. Structure is documented below.

Declaration
public Input<BucketRetentionPolicyArgs> RetentionPolicy { get; set; }
Property Value
Type Description
Input<BucketRetentionPolicyArgs>
View Source

StorageClass

The target Storage Class of objects affected by this Lifecycle Rule. Supported values include: MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE.

Declaration
public Input<string> StorageClass { get; set; }
Property Value
Type Description
Input<System.String>
View Source

Versioning

The bucket's Versioning configuration.

Declaration
public Input<BucketVersioningArgs> Versioning { get; set; }
Property Value
Type Description
Input<BucketVersioningArgs>
View Source

Website

Configuration if the bucket acts as a website. Structure is documented below.

Declaration
public Input<BucketWebsiteArgs> Website { get; set; }
Property Value
Type Description
Input<BucketWebsiteArgs>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.