BackendBucket
Backend buckets allow you to use Google Cloud Storage buckets with HTTP(S) load balancing.
An HTTP(S) load balancer can direct traffic to specified URLs to a backend bucket rather than a backend service. It can send requests for static content to a Cloud Storage bucket and requests for dynamic content to a virtual machine instance.
To get more information about BackendBucket, see:
Create a BackendBucket Resource
new BackendBucket(name: string, args: BackendBucketArgs, opts?: CustomResourceOptions);def BackendBucket(resource_name, opts=None, bucket_name=None, cdn_policy=None, description=None, enable_cdn=None, name=None, project=None, __props__=None);func NewBackendBucket(ctx *Context, name string, args BackendBucketArgs, opts ...ResourceOption) (*BackendBucket, error)public BackendBucket(string name, BackendBucketArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args BackendBucketArgs
- 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 BackendBucketArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BackendBucketArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
BackendBucket Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The BackendBucket resource accepts the following input properties:
- Bucket
Name string Cloud Storage bucket name.
- Cdn
Policy BackendBucket Cdn Policy Args Cloud CDN configuration for this Backend Bucket. Structure is documented below.
- Description string
An optional textual description of the resource; provided by the client when the resource is created.
- Enable
Cdn bool If true, enable Cloud CDN for this BackendBucket.
- Name string
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Bucket
Name string Cloud Storage bucket name.
- Cdn
Policy BackendBucket Cdn Policy Cloud CDN configuration for this Backend Bucket. Structure is documented below.
- Description string
An optional textual description of the resource; provided by the client when the resource is created.
- Enable
Cdn bool If true, enable Cloud CDN for this BackendBucket.
- Name string
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- bucket
Name string Cloud Storage bucket name.
- cdn
Policy BackendBucket Cdn Policy Cloud CDN configuration for this Backend Bucket. Structure is documented below.
- description string
An optional textual description of the resource; provided by the client when the resource is created.
- enable
Cdn boolean If true, enable Cloud CDN for this BackendBucket.
- name string
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- bucket_
name str Cloud Storage bucket name.
- cdn_
policy Dict[BackendBucket Cdn Policy] Cloud CDN configuration for this Backend Bucket. Structure is documented below.
- description str
An optional textual description of the resource; provided by the client when the resource is created.
- enable_
cdn bool If true, enable Cloud CDN for this BackendBucket.
- name str
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the BackendBucket resource produces the following output properties:
Look up an Existing BackendBucket Resource
Get an existing BackendBucket 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?: BackendBucketState, opts?: CustomResourceOptions): BackendBucketstatic get(resource_name, id, opts=None, bucket_name=None, cdn_policy=None, creation_timestamp=None, description=None, enable_cdn=None, name=None, project=None, self_link=None, __props__=None);func GetBackendBucket(ctx *Context, name string, id IDInput, state *BackendBucketState, opts ...ResourceOption) (*BackendBucket, error)public static BackendBucket Get(string name, Input<string> id, BackendBucketState? 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:
- Bucket
Name string Cloud Storage bucket name.
- Cdn
Policy BackendBucket Cdn Policy Args Cloud CDN configuration for this Backend Bucket. Structure is documented below.
- Creation
Timestamp string Creation timestamp in RFC3339 text format.
- Description string
An optional textual description of the resource; provided by the client when the resource is created.
- Enable
Cdn bool If true, enable Cloud CDN for this BackendBucket.
- Name string
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Self
Link string The URI of the created resource.
- Bucket
Name string Cloud Storage bucket name.
- Cdn
Policy BackendBucket Cdn Policy Cloud CDN configuration for this Backend Bucket. Structure is documented below.
- Creation
Timestamp string Creation timestamp in RFC3339 text format.
- Description string
An optional textual description of the resource; provided by the client when the resource is created.
- Enable
Cdn bool If true, enable Cloud CDN for this BackendBucket.
- Name string
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Self
Link string The URI of the created resource.
- bucket
Name string Cloud Storage bucket name.
- cdn
Policy BackendBucket Cdn Policy Cloud CDN configuration for this Backend Bucket. Structure is documented below.
- creation
Timestamp string Creation timestamp in RFC3339 text format.
- description string
An optional textual description of the resource; provided by the client when the resource is created.
- enable
Cdn boolean If true, enable Cloud CDN for this BackendBucket.
- name string
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- self
Link string The URI of the created resource.
- bucket_
name str Cloud Storage bucket name.
- cdn_
policy Dict[BackendBucket Cdn Policy] Cloud CDN configuration for this Backend Bucket. Structure is documented below.
- creation_
timestamp str Creation timestamp in RFC3339 text format.
- description str
An optional textual description of the resource; provided by the client when the resource is created.
- enable_
cdn bool If true, enable Cloud CDN for this BackendBucket.
- name str
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- self_
link str The URI of the created resource.
Supporting Types
BackendBucketCdnPolicy
- Signed
Url intCache Max Age Sec Maximum number of seconds the response to a signed URL request will be considered fresh. After this time period, the response will be revalidated before being served. When serving responses to signed URL requests, Cloud CDN will internally behave as though all responses from this backend had a “Cache-Control: public, max-age=[TTL]” header, regardless of any existing Cache-Control header. The actual headers served in responses will not be altered.
- Signed
Url intCache Max Age Sec Maximum number of seconds the response to a signed URL request will be considered fresh. After this time period, the response will be revalidated before being served. When serving responses to signed URL requests, Cloud CDN will internally behave as though all responses from this backend had a “Cache-Control: public, max-age=[TTL]” header, regardless of any existing Cache-Control header. The actual headers served in responses will not be altered.
- signed
Url numberCache Max Age Sec Maximum number of seconds the response to a signed URL request will be considered fresh. After this time period, the response will be revalidated before being served. When serving responses to signed URL requests, Cloud CDN will internally behave as though all responses from this backend had a “Cache-Control: public, max-age=[TTL]” header, regardless of any existing Cache-Control header. The actual headers served in responses will not be altered.
- signed
Url floatCache Max Age Sec Maximum number of seconds the response to a signed URL request will be considered fresh. After this time period, the response will be revalidated before being served. When serving responses to signed URL requests, Cloud CDN will internally behave as though all responses from this backend had a “Cache-Control: public, max-age=[TTL]” header, regardless of any existing Cache-Control header. The actual headers served in responses will not be altered.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.