1. Packages
  2. Gcorelabs Provider
  3. API Docs
  4. StorageS3Bucket
gcorelabs 0.3.63 published on Monday, Apr 14, 2025 by g-core

gcorelabs.StorageS3Bucket

Explore with Pulumi AI

gcorelabs logo
gcorelabs 0.3.63 published on Monday, Apr 14, 2025 by g-core

    Represent s3 storage bucket resource. https://storage.gcorelabs.com/storage/list

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcore from "@pulumi/gcore";
    
    const exampleS3Bucket = new gcore.index.Gcore_storage_s3_bucket("exampleS3Bucket", {
        name: "example1bucket2name",
        storageId: 1,
    });
    
    import pulumi
    import pulumi_gcore as gcore
    
    example_s3_bucket = gcore.index.Gcore_storage_s3_bucket("exampleS3Bucket",
        name=example1bucket2name,
        storage_id=1)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcore/sdk/go/gcore"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := gcore.NewGcore_storage_s3_bucket(ctx, "exampleS3Bucket", &gcore.Gcore_storage_s3_bucketArgs{
    			Name:      "example1bucket2name",
    			StorageId: 1,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcore = Pulumi.Gcore;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleS3Bucket = new Gcore.Index.Gcore_storage_s3_bucket("exampleS3Bucket", new()
        {
            Name = "example1bucket2name",
            StorageId = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcore.gcore_storage_s3_bucket;
    import com.pulumi.gcore.Gcore_storage_s3_bucketArgs;
    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 exampleS3Bucket = new Gcore_storage_s3_bucket("exampleS3Bucket", Gcore_storage_s3_bucketArgs.builder()
                .name("example1bucket2name")
                .storageId(1)
                .build());
    
        }
    }
    
    resources:
      exampleS3Bucket:
        type: gcore:gcore_storage_s3_bucket
        properties:
          name: example1bucket2name
          storageId: 1
    

    Create StorageS3Bucket Resource

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

    Constructor syntax

    new StorageS3Bucket(name: string, args: StorageS3BucketArgs, opts?: CustomResourceOptions);
    @overload
    def StorageS3Bucket(resource_name: str,
                        args: StorageS3BucketArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def StorageS3Bucket(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        storage_id: Optional[float] = None,
                        name: Optional[str] = None,
                        storage_s3_bucket_id: Optional[str] = None)
    func NewStorageS3Bucket(ctx *Context, name string, args StorageS3BucketArgs, opts ...ResourceOption) (*StorageS3Bucket, error)
    public StorageS3Bucket(string name, StorageS3BucketArgs args, CustomResourceOptions? opts = null)
    public StorageS3Bucket(String name, StorageS3BucketArgs args)
    public StorageS3Bucket(String name, StorageS3BucketArgs args, CustomResourceOptions options)
    
    type: gcorelabs:StorageS3Bucket
    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 StorageS3BucketArgs
    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 StorageS3BucketArgs
    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 StorageS3BucketArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StorageS3BucketArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args StorageS3BucketArgs
    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 storageS3BucketResource = new Gcorelabs.StorageS3Bucket("storageS3BucketResource", new()
    {
        StorageId = 0,
        Name = "string",
        StorageS3BucketId = "string",
    });
    
    example, err := gcorelabs.NewStorageS3Bucket(ctx, "storageS3BucketResource", &gcorelabs.StorageS3BucketArgs{
    	StorageId:         pulumi.Float64(0),
    	Name:              pulumi.String("string"),
    	StorageS3BucketId: pulumi.String("string"),
    })
    
    var storageS3BucketResource = new StorageS3Bucket("storageS3BucketResource", StorageS3BucketArgs.builder()
        .storageId(0)
        .name("string")
        .storageS3BucketId("string")
        .build());
    
    storage_s3_bucket_resource = gcorelabs.StorageS3Bucket("storageS3BucketResource",
        storage_id=0,
        name="string",
        storage_s3_bucket_id="string")
    
    const storageS3BucketResource = new gcorelabs.StorageS3Bucket("storageS3BucketResource", {
        storageId: 0,
        name: "string",
        storageS3BucketId: "string",
    });
    
    type: gcorelabs:StorageS3Bucket
    properties:
        name: string
        storageId: 0
        storageS3BucketId: string
    

    StorageS3Bucket 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 StorageS3Bucket resource accepts the following input properties:

    StorageId double
    An id of existing storage resource.
    Name string
    A name of new storage bucket resource.
    StorageS3BucketId string
    The ID of this resource.
    StorageId float64
    An id of existing storage resource.
    Name string
    A name of new storage bucket resource.
    StorageS3BucketId string
    The ID of this resource.
    storageId Double
    An id of existing storage resource.
    name String
    A name of new storage bucket resource.
    storageS3BucketId String
    The ID of this resource.
    storageId number
    An id of existing storage resource.
    name string
    A name of new storage bucket resource.
    storageS3BucketId string
    The ID of this resource.
    storage_id float
    An id of existing storage resource.
    name str
    A name of new storage bucket resource.
    storage_s3_bucket_id str
    The ID of this resource.
    storageId Number
    An id of existing storage resource.
    name String
    A name of new storage bucket resource.
    storageS3BucketId String
    The ID of this resource.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing StorageS3Bucket Resource

    Get an existing StorageS3Bucket 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?: StorageS3BucketState, opts?: CustomResourceOptions): StorageS3Bucket
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            name: Optional[str] = None,
            storage_id: Optional[float] = None,
            storage_s3_bucket_id: Optional[str] = None) -> StorageS3Bucket
    func GetStorageS3Bucket(ctx *Context, name string, id IDInput, state *StorageS3BucketState, opts ...ResourceOption) (*StorageS3Bucket, error)
    public static StorageS3Bucket Get(string name, Input<string> id, StorageS3BucketState? state, CustomResourceOptions? opts = null)
    public static StorageS3Bucket get(String name, Output<String> id, StorageS3BucketState state, CustomResourceOptions options)
    resources:  _:    type: gcorelabs:StorageS3Bucket    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:
    Name string
    A name of new storage bucket resource.
    StorageId double
    An id of existing storage resource.
    StorageS3BucketId string
    The ID of this resource.
    Name string
    A name of new storage bucket resource.
    StorageId float64
    An id of existing storage resource.
    StorageS3BucketId string
    The ID of this resource.
    name String
    A name of new storage bucket resource.
    storageId Double
    An id of existing storage resource.
    storageS3BucketId String
    The ID of this resource.
    name string
    A name of new storage bucket resource.
    storageId number
    An id of existing storage resource.
    storageS3BucketId string
    The ID of this resource.
    name str
    A name of new storage bucket resource.
    storage_id float
    An id of existing storage resource.
    storage_s3_bucket_id str
    The ID of this resource.
    name String
    A name of new storage bucket resource.
    storageId Number
    An id of existing storage resource.
    storageS3BucketId String
    The ID of this resource.

    Package Details

    Repository
    gcorelabs g-core/terraform-provider-gcorelabs
    License
    Notes
    This Pulumi package is based on the gcorelabs Terraform Provider.
    gcorelabs logo
    gcorelabs 0.3.63 published on Monday, Apr 14, 2025 by g-core