Google Cloud (GCP) Classic
getBackendBucket
Get information about a BackendBucket.
Example Usage
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var my_backend_bucket = Output.Create(Gcp.Compute.GetBackendBucket.InvokeAsync(new Gcp.Compute.GetBackendBucketArgs
{
Name = "my-backend",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/compute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.LookupBackendBucket(ctx, &compute.LookupBackendBucketArgs{
Name: "my-backend",
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var my-backend-bucket = Output.of(ComputeFunctions.getBackendBucket(GetBackendBucketArgs.builder()
.name("my-backend")
.build()));
}
}
import pulumi
import pulumi_gcp as gcp
my_backend_bucket = gcp.compute.get_backend_bucket(name="my-backend")
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const my_backend_bucket = pulumi.output(gcp.compute.getBackendBucket({
name: "my-backend",
}));
variables:
my-backend-bucket:
Fn::Invoke:
Function: gcp:compute:getBackendBucket
Arguments:
name: my-backend
Using getBackendBucket
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getBackendBucket(args: GetBackendBucketArgs, opts?: InvokeOptions): Promise<GetBackendBucketResult>
function getBackendBucketOutput(args: GetBackendBucketOutputArgs, opts?: InvokeOptions): Output<GetBackendBucketResult>
def get_backend_bucket(name: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBackendBucketResult
def get_backend_bucket_output(name: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBackendBucketResult]
func LookupBackendBucket(ctx *Context, args *LookupBackendBucketArgs, opts ...InvokeOption) (*LookupBackendBucketResult, error)
func LookupBackendBucketOutput(ctx *Context, args *LookupBackendBucketOutputArgs, opts ...InvokeOption) LookupBackendBucketResultOutput
> Note: This function is named LookupBackendBucket
in the Go SDK.
public static class GetBackendBucket
{
public static Task<GetBackendBucketResult> InvokeAsync(GetBackendBucketArgs args, InvokeOptions? opts = null)
public static Output<GetBackendBucketResult> Invoke(GetBackendBucketInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetBackendBucketResult> getBackendBucket(GetBackendBucketArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: gcp:compute/getBackendBucket:getBackendBucket
Arguments:
# Arguments dictionary
The following arguments are supported:
getBackendBucket Result
The following output properties are available:
- Bucket
Name string - Cdn
Policies List<GetBackend Bucket Cdn Policy> - Creation
Timestamp string - Custom
Response List<string>Headers - Description string
- Edge
Security stringPolicy - Enable
Cdn bool - Id string
The provider-assigned unique ID for this managed resource.
- Name string
- Self
Link string - Project string
- Bucket
Name string - Cdn
Policies []GetBackend Bucket Cdn Policy - Creation
Timestamp string - Custom
Response []stringHeaders - Description string
- Edge
Security stringPolicy - Enable
Cdn bool - Id string
The provider-assigned unique ID for this managed resource.
- Name string
- Self
Link string - Project string
- bucket
Name String - cdn
Policies List<GetBackend Bucket Cdn Policy> - creation
Timestamp String - custom
Response List<String>Headers - description String
- edge
Security StringPolicy - enable
Cdn Boolean - id String
The provider-assigned unique ID for this managed resource.
- name String
- self
Link String - project String
- bucket
Name string - cdn
Policies GetBackend Bucket Cdn Policy[] - creation
Timestamp string - custom
Response string[]Headers - description string
- edge
Security stringPolicy - enable
Cdn boolean - id string
The provider-assigned unique ID for this managed resource.
- name string
- self
Link string - project string
- bucket_
name str - cdn_
policies Sequence[GetBackend Bucket Cdn Policy] - creation_
timestamp str - custom_
response_ Sequence[str]headers - description str
- edge_
security_ strpolicy - enable_
cdn bool - id str
The provider-assigned unique ID for this managed resource.
- name str
- self_
link str - project str
- bucket
Name String - cdn
Policies List<Property Map> - creation
Timestamp String - custom
Response List<String>Headers - description String
- edge
Security StringPolicy - enable
Cdn Boolean - id String
The provider-assigned unique ID for this managed resource.
- name String
- self
Link String - project String
Supporting Types
GetBackendBucketCdnPolicy
- cache
Key List<GetPolicies Backend Bucket Cdn Policy Cache Key Policy> - cache
Mode String - client
Ttl Integer - default
Ttl Integer - max
Ttl Integer - negative
Caching Boolean - negative
Caching List<GetPolicies Backend Bucket Cdn Policy Negative Caching Policy> - serve
While IntegerStale - signed
Url IntegerCache Max Age Sec
- cache
Key List<Property Map>Policies - cache
Mode String - client
Ttl Number - default
Ttl Number - max
Ttl Number - negative
Caching Boolean - negative
Caching List<Property Map>Policies - serve
While NumberStale - signed
Url NumberCache Max Age Sec
GetBackendBucketCdnPolicyCacheKeyPolicy
- Include
Http List<string>Headers - Query
String List<string>Whitelists
- Include
Http []stringHeaders - Query
String []stringWhitelists
- include
Http List<String>Headers - query
String List<String>Whitelists
- include
Http string[]Headers - query
String string[]Whitelists
- include_
http_ Sequence[str]headers - query_
string_ Sequence[str]whitelists
- include
Http List<String>Headers - query
String List<String>Whitelists
GetBackendBucketCdnPolicyNegativeCachingPolicy
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
google-beta
Terraform Provider.