1. Packages
  2. Edgecenter Provider
  3. API Docs
  4. StorageS3Bucket
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

edgecenter.StorageS3Bucket

Explore with Pulumi AI

edgecenter logo
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

    Represent s3 storage bucket resource. https://storage.edgecenter.ru/storage/list

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as edgecenter from "@pulumi/edgecenter";
    
    const exampleS3Bucket = new edgecenter.StorageS3Bucket("exampleS3Bucket", {storageId: 1});
    
    import pulumi
    import pulumi_edgecenter as edgecenter
    
    example_s3_bucket = edgecenter.StorageS3Bucket("exampleS3Bucket", storage_id=1)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/edgecenter/edgecenter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := edgecenter.NewStorageS3Bucket(ctx, "exampleS3Bucket", &edgecenter.StorageS3BucketArgs{
    			StorageId: pulumi.Float64(1),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Edgecenter = Pulumi.Edgecenter;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleS3Bucket = new Edgecenter.StorageS3Bucket("exampleS3Bucket", new()
        {
            StorageId = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.edgecenter.StorageS3Bucket;
    import com.pulumi.edgecenter.StorageS3BucketArgs;
    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 StorageS3Bucket("exampleS3Bucket", StorageS3BucketArgs.builder()
                .storageId(1)
                .build());
    
        }
    }
    
    resources:
      exampleS3Bucket:
        type: edgecenter:StorageS3Bucket
        properties:
          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: edgecenter: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 Edgecenter.StorageS3Bucket("storageS3BucketResource", new()
    {
        StorageId = 0,
        Name = "string",
        StorageS3BucketId = "string",
    });
    
    example, err := edgecenter.NewStorageS3Bucket(ctx, "storageS3BucketResource", &edgecenter.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 = edgecenter.StorageS3Bucket("storageS3BucketResource",
        storage_id=0,
        name="string",
        storage_s3_bucket_id="string")
    
    const storageS3BucketResource = new edgecenter.StorageS3Bucket("storageS3BucketResource", {
        storageId: 0,
        name: "string",
        storageS3BucketId: "string",
    });
    
    type: edgecenter: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: edgecenter: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.

    Import

    import using <storage_id>:<bucket_name> format

    $ pulumi import edgecenter:index/storageS3Bucket:StorageS3Bucket example_s3_bucket 123:bucket_name
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    edgecenter edge-center/terraform-provider-edgecenter
    License
    Notes
    This Pulumi package is based on the edgecenter Terraform Provider.
    edgecenter logo
    edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center