1. Packages
  2. Fastly Provider
  3. API Docs
  4. ObjectStorageAccessKeys
Fastly v9.1.0 published on Friday, Apr 18, 2025 by Pulumi

fastly.ObjectStorageAccessKeys

Explore with Pulumi AI

fastly logo
Fastly v9.1.0 published on Friday, Apr 18, 2025 by Pulumi

    Provides an Object Storage Access Key, which can be used to manage resources in various clouds.

    Implements the Object Storage Access Key API functions

    Note: Access Keys cannot be updated, so when you change a value in any of the editable fields the key is destroyed and remade

    Basic usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fastly from "@pulumi/fastly";
    
    const demo = new fastly.ObjectStorageAccessKeys("demo", {
        buckets: [
            "bucket1",
            "bucket2",
        ],
        description: "this is a bucket",
        permission: "",
    });
    
    import pulumi
    import pulumi_fastly as fastly
    
    demo = fastly.ObjectStorageAccessKeys("demo",
        buckets=[
            "bucket1",
            "bucket2",
        ],
        description="this is a bucket",
        permission="")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-fastly/sdk/v9/go/fastly"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := fastly.NewObjectStorageAccessKeys(ctx, "demo", &fastly.ObjectStorageAccessKeysArgs{
    			Buckets: pulumi.StringArray{
    				pulumi.String("bucket1"),
    				pulumi.String("bucket2"),
    			},
    			Description: pulumi.String("this is a bucket"),
    			Permission:  pulumi.String(""),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Fastly = Pulumi.Fastly;
    
    return await Deployment.RunAsync(() => 
    {
        var demo = new Fastly.ObjectStorageAccessKeys("demo", new()
        {
            Buckets = new[]
            {
                "bucket1",
                "bucket2",
            },
            Description = "this is a bucket",
            Permission = "",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fastly.ObjectStorageAccessKeys;
    import com.pulumi.fastly.ObjectStorageAccessKeysArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var demo = new ObjectStorageAccessKeys("demo", ObjectStorageAccessKeysArgs.builder()
                .buckets(            
                    "bucket1",
                    "bucket2")
                .description("this is a bucket")
                .permission("")
                .build());
    
        }
    }
    
    resources:
      demo:
        type: fastly:ObjectStorageAccessKeys
        properties:
          buckets:
            - bucket1
            - bucket2
          description: this is a bucket
          permission: ""
    

    Note: Permissions can only be one of these values listed here, any other values will return an error

    Create ObjectStorageAccessKeys Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ObjectStorageAccessKeys(name: string, args: ObjectStorageAccessKeysArgs, opts?: CustomResourceOptions);
    @overload
    def ObjectStorageAccessKeys(resource_name: str,
                                args: ObjectStorageAccessKeysArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def ObjectStorageAccessKeys(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                description: Optional[str] = None,
                                permission: Optional[str] = None,
                                buckets: Optional[Sequence[str]] = None)
    func NewObjectStorageAccessKeys(ctx *Context, name string, args ObjectStorageAccessKeysArgs, opts ...ResourceOption) (*ObjectStorageAccessKeys, error)
    public ObjectStorageAccessKeys(string name, ObjectStorageAccessKeysArgs args, CustomResourceOptions? opts = null)
    public ObjectStorageAccessKeys(String name, ObjectStorageAccessKeysArgs args)
    public ObjectStorageAccessKeys(String name, ObjectStorageAccessKeysArgs args, CustomResourceOptions options)
    
    type: fastly:ObjectStorageAccessKeys
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ObjectStorageAccessKeysArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ObjectStorageAccessKeysArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ObjectStorageAccessKeysArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ObjectStorageAccessKeysArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ObjectStorageAccessKeysArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var objectStorageAccessKeysResource = new Fastly.ObjectStorageAccessKeys("objectStorageAccessKeysResource", new()
    {
        Description = "string",
        Permission = "string",
        Buckets = new[]
        {
            "string",
        },
    });
    
    example, err := fastly.NewObjectStorageAccessKeys(ctx, "objectStorageAccessKeysResource", &fastly.ObjectStorageAccessKeysArgs{
    	Description: pulumi.String("string"),
    	Permission:  pulumi.String("string"),
    	Buckets: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var objectStorageAccessKeysResource = new ObjectStorageAccessKeys("objectStorageAccessKeysResource", ObjectStorageAccessKeysArgs.builder()
        .description("string")
        .permission("string")
        .buckets("string")
        .build());
    
    object_storage_access_keys_resource = fastly.ObjectStorageAccessKeys("objectStorageAccessKeysResource",
        description="string",
        permission="string",
        buckets=["string"])
    
    const objectStorageAccessKeysResource = new fastly.ObjectStorageAccessKeys("objectStorageAccessKeysResource", {
        description: "string",
        permission: "string",
        buckets: ["string"],
    });
    
    type: fastly:ObjectStorageAccessKeys
    properties:
        buckets:
            - string
        description: string
        permission: string
    

    ObjectStorageAccessKeys Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ObjectStorageAccessKeys resource accepts the following input properties:

    Description string
    The description of the access key
    Permission string
    The permissions of the access key
    Buckets List<string>
    Optional list of buckets the access key will be associated with. Example: ["bucket1", "bucket2"]
    Description string
    The description of the access key
    Permission string
    The permissions of the access key
    Buckets []string
    Optional list of buckets the access key will be associated with. Example: ["bucket1", "bucket2"]
    description String
    The description of the access key
    permission String
    The permissions of the access key
    buckets List<String>
    Optional list of buckets the access key will be associated with. Example: ["bucket1", "bucket2"]
    description string
    The description of the access key
    permission string
    The permissions of the access key
    buckets string[]
    Optional list of buckets the access key will be associated with. Example: ["bucket1", "bucket2"]
    description str
    The description of the access key
    permission str
    The permissions of the access key
    buckets Sequence[str]
    Optional list of buckets the access key will be associated with. Example: ["bucket1", "bucket2"]
    description String
    The description of the access key
    permission String
    The permissions of the access key
    buckets List<String>
    Optional list of buckets the access key will be associated with. Example: ["bucket1", "bucket2"]

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ObjectStorageAccessKeys resource produces the following output properties:

    AccessKeyId string
    ID for the object storage access token
    Id string
    The provider-assigned unique ID for this managed resource.
    SecretKey string
    Secret key for the object storage access token
    AccessKeyId string
    ID for the object storage access token
    Id string
    The provider-assigned unique ID for this managed resource.
    SecretKey string
    Secret key for the object storage access token
    accessKeyId String
    ID for the object storage access token
    id String
    The provider-assigned unique ID for this managed resource.
    secretKey String
    Secret key for the object storage access token
    accessKeyId string
    ID for the object storage access token
    id string
    The provider-assigned unique ID for this managed resource.
    secretKey string
    Secret key for the object storage access token
    access_key_id str
    ID for the object storage access token
    id str
    The provider-assigned unique ID for this managed resource.
    secret_key str
    Secret key for the object storage access token
    accessKeyId String
    ID for the object storage access token
    id String
    The provider-assigned unique ID for this managed resource.
    secretKey String
    Secret key for the object storage access token

    Look up Existing ObjectStorageAccessKeys Resource

    Get an existing ObjectStorageAccessKeys 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?: ObjectStorageAccessKeysState, opts?: CustomResourceOptions): ObjectStorageAccessKeys
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_key_id: Optional[str] = None,
            buckets: Optional[Sequence[str]] = None,
            description: Optional[str] = None,
            permission: Optional[str] = None,
            secret_key: Optional[str] = None) -> ObjectStorageAccessKeys
    func GetObjectStorageAccessKeys(ctx *Context, name string, id IDInput, state *ObjectStorageAccessKeysState, opts ...ResourceOption) (*ObjectStorageAccessKeys, error)
    public static ObjectStorageAccessKeys Get(string name, Input<string> id, ObjectStorageAccessKeysState? state, CustomResourceOptions? opts = null)
    public static ObjectStorageAccessKeys get(String name, Output<String> id, ObjectStorageAccessKeysState state, CustomResourceOptions options)
    resources:  _:    type: fastly:ObjectStorageAccessKeys    get:      id: ${id}
    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.
    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:
    AccessKeyId string
    ID for the object storage access token
    Buckets List<string>
    Optional list of buckets the access key will be associated with. Example: ["bucket1", "bucket2"]
    Description string
    The description of the access key
    Permission string
    The permissions of the access key
    SecretKey string
    Secret key for the object storage access token
    AccessKeyId string
    ID for the object storage access token
    Buckets []string
    Optional list of buckets the access key will be associated with. Example: ["bucket1", "bucket2"]
    Description string
    The description of the access key
    Permission string
    The permissions of the access key
    SecretKey string
    Secret key for the object storage access token
    accessKeyId String
    ID for the object storage access token
    buckets List<String>
    Optional list of buckets the access key will be associated with. Example: ["bucket1", "bucket2"]
    description String
    The description of the access key
    permission String
    The permissions of the access key
    secretKey String
    Secret key for the object storage access token
    accessKeyId string
    ID for the object storage access token
    buckets string[]
    Optional list of buckets the access key will be associated with. Example: ["bucket1", "bucket2"]
    description string
    The description of the access key
    permission string
    The permissions of the access key
    secretKey string
    Secret key for the object storage access token
    access_key_id str
    ID for the object storage access token
    buckets Sequence[str]
    Optional list of buckets the access key will be associated with. Example: ["bucket1", "bucket2"]
    description str
    The description of the access key
    permission str
    The permissions of the access key
    secret_key str
    Secret key for the object storage access token
    accessKeyId String
    ID for the object storage access token
    buckets List<String>
    Optional list of buckets the access key will be associated with. Example: ["bucket1", "bucket2"]
    description String
    The description of the access key
    permission String
    The permissions of the access key
    secretKey String
    Secret key for the object storage access token

    Package Details

    Repository
    Fastly pulumi/pulumi-fastly
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the fastly Terraform Provider.
    fastly logo
    Fastly v9.1.0 published on Friday, Apr 18, 2025 by Pulumi