1. Packages
  2. Gcore Provider
  3. API Docs
  4. StorageS3Bucket
gcore 0.19.0 published on Monday, Apr 14, 2025 by g-core

gcore.StorageS3Bucket

Explore with Pulumi AI

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

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";

const exampleS3Bucket = new gcore.StorageS3Bucket("exampleS3Bucket", {storageId: 1});
Copy
import pulumi
import pulumi_gcore as gcore

example_s3_bucket = gcore.StorageS3Bucket("exampleS3Bucket", storage_id=1)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/gcore"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := gcore.NewStorageS3Bucket(ctx, "exampleS3Bucket", &gcore.StorageS3BucketArgs{
			StorageId: pulumi.Float64(1),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;

return await Deployment.RunAsync(() => 
{
    var exampleS3Bucket = new Gcore.StorageS3Bucket("exampleS3Bucket", new()
    {
        StorageId = 1,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.StorageS3Bucket;
import com.pulumi.gcore.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());

    }
}
Copy
resources:
  exampleS3Bucket:
    type: gcore:StorageS3Bucket
    properties:
      storageId: 1
Copy

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: gcore:StorageS3Bucket
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. StorageS3BucketArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. StorageS3BucketArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. StorageS3BucketArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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 Gcore.StorageS3Bucket("storageS3BucketResource", new()
{
    StorageId = 0,
    Name = "string",
    StorageS3BucketId = "string",
});
Copy
example, err := gcore.NewStorageS3Bucket(ctx, "storageS3BucketResource", &gcore.StorageS3BucketArgs{
StorageId: pulumi.Float64(0),
Name: pulumi.String("string"),
StorageS3BucketId: pulumi.String("string"),
})
Copy
var storageS3BucketResource = new StorageS3Bucket("storageS3BucketResource", StorageS3BucketArgs.builder()
    .storageId(0)
    .name("string")
    .storageS3BucketId("string")
    .build());
Copy
storage_s3_bucket_resource = gcore.StorageS3Bucket("storageS3BucketResource",
    storage_id=0,
    name="string",
    storage_s3_bucket_id="string")
Copy
const storageS3BucketResource = new gcore.StorageS3Bucket("storageS3BucketResource", {
    storageId: 0,
    name: "string",
    storageS3BucketId: "string",
});
Copy
type: gcore:StorageS3Bucket
properties:
    name: string
    storageId: 0
    storageS3BucketId: string
Copy

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 This property is required. double
An id of existing storage resource.
Name string
A name of new storage bucket resource.
StorageS3BucketId string
The ID of this resource.
StorageId This property is required. float64
An id of existing storage resource.
Name string
A name of new storage bucket resource.
StorageS3BucketId string
The ID of this resource.
storageId This property is required. Double
An id of existing storage resource.
name String
A name of new storage bucket resource.
storageS3BucketId String
The ID of this resource.
storageId This property is required. 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 This property is required. 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 This property is required. 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: gcore:StorageS3Bucket    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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
gcore g-core/terraform-provider-gcore
License
Notes
This Pulumi package is based on the gcore Terraform Provider.