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

gcore.StorageS3

Explore with Pulumi AI

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

Example Usage

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

const exampleS3 = new gcore.StorageS3("exampleS3", {location: "s-ed1"});
Copy
import pulumi
import pulumi_gcore as gcore

example_s3 = gcore.StorageS3("exampleS3", location="s-ed1")
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.NewStorageS3(ctx, "exampleS3", &gcore.StorageS3Args{
			Location: pulumi.String("s-ed1"),
		})
		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 exampleS3 = new Gcore.StorageS3("exampleS3", new()
    {
        Location = "s-ed1",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.StorageS3;
import com.pulumi.gcore.StorageS3Args;
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 exampleS3 = new StorageS3("exampleS3", StorageS3Args.builder()
            .location("s-ed1")
            .build());

    }
}
Copy
resources:
  exampleS3:
    type: gcore:StorageS3
    properties:
      location: s-ed1
Copy

Create StorageS3 Resource

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

Constructor syntax

new StorageS3(name: string, args: StorageS3Args, opts?: CustomResourceOptions);
@overload
def StorageS3(resource_name: str,
              args: StorageS3Args,
              opts: Optional[ResourceOptions] = None)

@overload
def StorageS3(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              location: Optional[str] = None,
              client_id: Optional[float] = None,
              generated_access_key: Optional[str] = None,
              generated_endpoint: Optional[str] = None,
              generated_http_endpoint: Optional[str] = None,
              generated_s3_endpoint: Optional[str] = None,
              generated_secret_key: Optional[str] = None,
              name: Optional[str] = None,
              storage_id: Optional[float] = None,
              storage_s3_id: Optional[str] = None)
func NewStorageS3(ctx *Context, name string, args StorageS3Args, opts ...ResourceOption) (*StorageS3, error)
public StorageS3(string name, StorageS3Args args, CustomResourceOptions? opts = null)
public StorageS3(String name, StorageS3Args args)
public StorageS3(String name, StorageS3Args args, CustomResourceOptions options)
type: gcore:StorageS3
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. StorageS3Args
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. StorageS3Args
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. StorageS3Args
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. StorageS3Args
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. StorageS3Args
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 storageS3Resource = new Gcore.StorageS3("storageS3Resource", new()
{
    Location = "string",
    ClientId = 0,
    GeneratedAccessKey = "string",
    GeneratedEndpoint = "string",
    GeneratedHttpEndpoint = "string",
    GeneratedS3Endpoint = "string",
    GeneratedSecretKey = "string",
    Name = "string",
    StorageId = 0,
    StorageS3Id = "string",
});
Copy
example, err := gcore.NewStorageS3(ctx, "storageS3Resource", &gcore.StorageS3Args{
Location: pulumi.String("string"),
ClientId: pulumi.Float64(0),
GeneratedAccessKey: pulumi.String("string"),
GeneratedEndpoint: pulumi.String("string"),
GeneratedHttpEndpoint: pulumi.String("string"),
GeneratedS3Endpoint: pulumi.String("string"),
GeneratedSecretKey: pulumi.String("string"),
Name: pulumi.String("string"),
StorageId: pulumi.Float64(0),
StorageS3Id: pulumi.String("string"),
})
Copy
var storageS3Resource = new StorageS3("storageS3Resource", StorageS3Args.builder()
    .location("string")
    .clientId(0)
    .generatedAccessKey("string")
    .generatedEndpoint("string")
    .generatedHttpEndpoint("string")
    .generatedS3Endpoint("string")
    .generatedSecretKey("string")
    .name("string")
    .storageId(0)
    .storageS3Id("string")
    .build());
Copy
storage_s3_resource = gcore.StorageS3("storageS3Resource",
    location="string",
    client_id=0,
    generated_access_key="string",
    generated_endpoint="string",
    generated_http_endpoint="string",
    generated_s3_endpoint="string",
    generated_secret_key="string",
    name="string",
    storage_id=0,
    storage_s3_id="string")
Copy
const storageS3Resource = new gcore.StorageS3("storageS3Resource", {
    location: "string",
    clientId: 0,
    generatedAccessKey: "string",
    generatedEndpoint: "string",
    generatedHttpEndpoint: "string",
    generatedS3Endpoint: "string",
    generatedSecretKey: "string",
    name: "string",
    storageId: 0,
    storageS3Id: "string",
});
Copy
type: gcore:StorageS3
properties:
    clientId: 0
    generatedAccessKey: string
    generatedEndpoint: string
    generatedHttpEndpoint: string
    generatedS3Endpoint: string
    generatedSecretKey: string
    location: string
    name: string
    storageId: 0
    storageS3Id: string
Copy

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

Location This property is required. string
A location of new storage resource. One of (s-ed1, s-darz, s-darz1, s-ws1, s-dt2, s-drc2)
ClientId double
An client id of new storage resource.
GeneratedAccessKey string
A s3 access key for new storage resource.
GeneratedEndpoint string
A s3 entry point for new storage resource.
GeneratedHttpEndpoint string
A http s3 entry point for new storage resource.
GeneratedS3Endpoint string
A s3 endpoint for new storage resource.
GeneratedSecretKey string
A s3 secret key for new storage resource.
Name string
A name of new storage resource.
StorageId double
An id of new storage resource.
StorageS3Id string
The ID of this resource.
Location This property is required. string
A location of new storage resource. One of (s-ed1, s-darz, s-darz1, s-ws1, s-dt2, s-drc2)
ClientId float64
An client id of new storage resource.
GeneratedAccessKey string
A s3 access key for new storage resource.
GeneratedEndpoint string
A s3 entry point for new storage resource.
GeneratedHttpEndpoint string
A http s3 entry point for new storage resource.
GeneratedS3Endpoint string
A s3 endpoint for new storage resource.
GeneratedSecretKey string
A s3 secret key for new storage resource.
Name string
A name of new storage resource.
StorageId float64
An id of new storage resource.
StorageS3Id string
The ID of this resource.
location This property is required. String
A location of new storage resource. One of (s-ed1, s-darz, s-darz1, s-ws1, s-dt2, s-drc2)
clientId Double
An client id of new storage resource.
generatedAccessKey String
A s3 access key for new storage resource.
generatedEndpoint String
A s3 entry point for new storage resource.
generatedHttpEndpoint String
A http s3 entry point for new storage resource.
generatedS3Endpoint String
A s3 endpoint for new storage resource.
generatedSecretKey String
A s3 secret key for new storage resource.
name String
A name of new storage resource.
storageId Double
An id of new storage resource.
storageS3Id String
The ID of this resource.
location This property is required. string
A location of new storage resource. One of (s-ed1, s-darz, s-darz1, s-ws1, s-dt2, s-drc2)
clientId number
An client id of new storage resource.
generatedAccessKey string
A s3 access key for new storage resource.
generatedEndpoint string
A s3 entry point for new storage resource.
generatedHttpEndpoint string
A http s3 entry point for new storage resource.
generatedS3Endpoint string
A s3 endpoint for new storage resource.
generatedSecretKey string
A s3 secret key for new storage resource.
name string
A name of new storage resource.
storageId number
An id of new storage resource.
storageS3Id string
The ID of this resource.
location This property is required. str
A location of new storage resource. One of (s-ed1, s-darz, s-darz1, s-ws1, s-dt2, s-drc2)
client_id float
An client id of new storage resource.
generated_access_key str
A s3 access key for new storage resource.
generated_endpoint str
A s3 entry point for new storage resource.
generated_http_endpoint str
A http s3 entry point for new storage resource.
generated_s3_endpoint str
A s3 endpoint for new storage resource.
generated_secret_key str
A s3 secret key for new storage resource.
name str
A name of new storage resource.
storage_id float
An id of new storage resource.
storage_s3_id str
The ID of this resource.
location This property is required. String
A location of new storage resource. One of (s-ed1, s-darz, s-darz1, s-ws1, s-dt2, s-drc2)
clientId Number
An client id of new storage resource.
generatedAccessKey String
A s3 access key for new storage resource.
generatedEndpoint String
A s3 entry point for new storage resource.
generatedHttpEndpoint String
A http s3 entry point for new storage resource.
generatedS3Endpoint String
A s3 endpoint for new storage resource.
generatedSecretKey String
A s3 secret key for new storage resource.
name String
A name of new storage resource.
storageId Number
An id of new storage resource.
storageS3Id String
The ID of this resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the StorageS3 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 StorageS3 Resource

Get an existing StorageS3 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?: StorageS3State, opts?: CustomResourceOptions): StorageS3
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        client_id: Optional[float] = None,
        generated_access_key: Optional[str] = None,
        generated_endpoint: Optional[str] = None,
        generated_http_endpoint: Optional[str] = None,
        generated_s3_endpoint: Optional[str] = None,
        generated_secret_key: Optional[str] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        storage_id: Optional[float] = None,
        storage_s3_id: Optional[str] = None) -> StorageS3
func GetStorageS3(ctx *Context, name string, id IDInput, state *StorageS3State, opts ...ResourceOption) (*StorageS3, error)
public static StorageS3 Get(string name, Input<string> id, StorageS3State? state, CustomResourceOptions? opts = null)
public static StorageS3 get(String name, Output<String> id, StorageS3State state, CustomResourceOptions options)
resources:  _:    type: gcore:StorageS3    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:
ClientId double
An client id of new storage resource.
GeneratedAccessKey string
A s3 access key for new storage resource.
GeneratedEndpoint string
A s3 entry point for new storage resource.
GeneratedHttpEndpoint string
A http s3 entry point for new storage resource.
GeneratedS3Endpoint string
A s3 endpoint for new storage resource.
GeneratedSecretKey string
A s3 secret key for new storage resource.
Location string
A location of new storage resource. One of (s-ed1, s-darz, s-darz1, s-ws1, s-dt2, s-drc2)
Name string
A name of new storage resource.
StorageId double
An id of new storage resource.
StorageS3Id string
The ID of this resource.
ClientId float64
An client id of new storage resource.
GeneratedAccessKey string
A s3 access key for new storage resource.
GeneratedEndpoint string
A s3 entry point for new storage resource.
GeneratedHttpEndpoint string
A http s3 entry point for new storage resource.
GeneratedS3Endpoint string
A s3 endpoint for new storage resource.
GeneratedSecretKey string
A s3 secret key for new storage resource.
Location string
A location of new storage resource. One of (s-ed1, s-darz, s-darz1, s-ws1, s-dt2, s-drc2)
Name string
A name of new storage resource.
StorageId float64
An id of new storage resource.
StorageS3Id string
The ID of this resource.
clientId Double
An client id of new storage resource.
generatedAccessKey String
A s3 access key for new storage resource.
generatedEndpoint String
A s3 entry point for new storage resource.
generatedHttpEndpoint String
A http s3 entry point for new storage resource.
generatedS3Endpoint String
A s3 endpoint for new storage resource.
generatedSecretKey String
A s3 secret key for new storage resource.
location String
A location of new storage resource. One of (s-ed1, s-darz, s-darz1, s-ws1, s-dt2, s-drc2)
name String
A name of new storage resource.
storageId Double
An id of new storage resource.
storageS3Id String
The ID of this resource.
clientId number
An client id of new storage resource.
generatedAccessKey string
A s3 access key for new storage resource.
generatedEndpoint string
A s3 entry point for new storage resource.
generatedHttpEndpoint string
A http s3 entry point for new storage resource.
generatedS3Endpoint string
A s3 endpoint for new storage resource.
generatedSecretKey string
A s3 secret key for new storage resource.
location string
A location of new storage resource. One of (s-ed1, s-darz, s-darz1, s-ws1, s-dt2, s-drc2)
name string
A name of new storage resource.
storageId number
An id of new storage resource.
storageS3Id string
The ID of this resource.
client_id float
An client id of new storage resource.
generated_access_key str
A s3 access key for new storage resource.
generated_endpoint str
A s3 entry point for new storage resource.
generated_http_endpoint str
A http s3 entry point for new storage resource.
generated_s3_endpoint str
A s3 endpoint for new storage resource.
generated_secret_key str
A s3 secret key for new storage resource.
location str
A location of new storage resource. One of (s-ed1, s-darz, s-darz1, s-ws1, s-dt2, s-drc2)
name str
A name of new storage resource.
storage_id float
An id of new storage resource.
storage_s3_id str
The ID of this resource.
clientId Number
An client id of new storage resource.
generatedAccessKey String
A s3 access key for new storage resource.
generatedEndpoint String
A s3 entry point for new storage resource.
generatedHttpEndpoint String
A http s3 entry point for new storage resource.
generatedS3Endpoint String
A s3 endpoint for new storage resource.
generatedSecretKey String
A s3 secret key for new storage resource.
location String
A location of new storage resource. One of (s-ed1, s-darz, s-darz1, s-ws1, s-dt2, s-drc2)
name String
A name of new storage resource.
storageId Number
An id of new storage resource.
storageS3Id 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.