Class BackendBucketSignedUrlKey
A key for signing Cloud CDN signed URLs for BackendBuckets.
To get more information about BackendBucketSignedUrlKey, see:
- API documentation
- How-to Guides
- Using Signed URLs
Warning: All arguments including
key_valuewill be stored in the raw state as plain-text.
Example Usage - Backend Bucket Signed Url Key
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var bucket = new Gcp.Storage.Bucket("bucket", new Gcp.Storage.BucketArgs
{
Location = "EU",
});
var testBackend = new Gcp.Compute.BackendBucket("testBackend", new Gcp.Compute.BackendBucketArgs
{
Description = "Contains beautiful images",
BucketName = bucket.Name,
EnableCdn = true,
});
var backendKey = new Gcp.Compute.BackendBucketSignedUrlKey("backendKey", new Gcp.Compute.BackendBucketSignedUrlKeyArgs
{
KeyValue = "pPsVemX8GM46QVeezid6Rw==",
BackendBucket = testBackend.Name,
});
}
}
Inherited Members
Namespace: Pulumi.Gcp.Compute
Assembly: Pulumi.Gcp.dll
Syntax
public class BackendBucketSignedUrlKey : CustomResource
Constructors
View SourceBackendBucketSignedUrlKey(String, BackendBucketSignedUrlKeyArgs, CustomResourceOptions)
Create a BackendBucketSignedUrlKey resource with the given unique name, arguments, and options.
Declaration
public BackendBucketSignedUrlKey(string name, BackendBucketSignedUrlKeyArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| BackendBucketSignedUrlKeyArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceBackendBucket
The backend bucket this signed URL key belongs.
Declaration
public Output<string> BackendBucket { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
KeyValue
128-bit key value used for signing the URL. The key value must be a valid RFC 4648 Section 5 base64url encoded string. Note: This property is sensitive and will not be displayed in the plan.
Declaration
public Output<string> KeyValue { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
Name of the signed URL key.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Project
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Declaration
public Output<string> Project { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, BackendBucketSignedUrlKeyState, CustomResourceOptions)
Get an existing BackendBucketSignedUrlKey resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static BackendBucketSignedUrlKey Get(string name, Input<string> id, BackendBucketSignedUrlKeyState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| BackendBucketSignedUrlKeyState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| BackendBucketSignedUrlKey |