ucloud.Us3Bucket
Explore with Pulumi AI
Provides a US3 bucket resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ucloud from "@pulumi/ucloud";
const foo = new ucloud.Us3Bucket("foo", {type: "private"});
import pulumi
import pulumi_ucloud as ucloud
foo = ucloud.Us3Bucket("foo", type="private")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ucloud/ucloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ucloud.NewUs3Bucket(ctx, "foo", &ucloud.Us3BucketArgs{
Type: pulumi.String("private"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ucloud = Pulumi.Ucloud;
return await Deployment.RunAsync(() =>
{
var foo = new Ucloud.Us3Bucket("foo", new()
{
Type = "private",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ucloud.Us3Bucket;
import com.pulumi.ucloud.Us3BucketArgs;
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 foo = new Us3Bucket("foo", Us3BucketArgs.builder()
.type("private")
.build());
}
}
resources:
foo:
type: ucloud:Us3Bucket
properties:
type: private
Create Us3Bucket Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Us3Bucket(name: string, args: Us3BucketArgs, opts?: CustomResourceOptions);
@overload
def Us3Bucket(resource_name: str,
args: Us3BucketArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Us3Bucket(resource_name: str,
opts: Optional[ResourceOptions] = None,
type: Optional[str] = None,
name: Optional[str] = None,
tag: Optional[str] = None,
us3_bucket_id: Optional[str] = None)
func NewUs3Bucket(ctx *Context, name string, args Us3BucketArgs, opts ...ResourceOption) (*Us3Bucket, error)
public Us3Bucket(string name, Us3BucketArgs args, CustomResourceOptions? opts = null)
public Us3Bucket(String name, Us3BucketArgs args)
public Us3Bucket(String name, Us3BucketArgs args, CustomResourceOptions options)
type: ucloud:Us3Bucket
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 Us3BucketArgs
- 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 Us3BucketArgs
- 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 Us3BucketArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args Us3BucketArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args Us3BucketArgs
- 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 us3BucketResource = new Ucloud.Us3Bucket("us3BucketResource", new()
{
Type = "string",
Name = "string",
Tag = "string",
Us3BucketId = "string",
});
example, err := ucloud.NewUs3Bucket(ctx, "us3BucketResource", &ucloud.Us3BucketArgs{
Type: pulumi.String("string"),
Name: pulumi.String("string"),
Tag: pulumi.String("string"),
Us3BucketId: pulumi.String("string"),
})
var us3BucketResource = new Us3Bucket("us3BucketResource", Us3BucketArgs.builder()
.type("string")
.name("string")
.tag("string")
.us3BucketId("string")
.build());
us3_bucket_resource = ucloud.Us3Bucket("us3BucketResource",
type="string",
name="string",
tag="string",
us3_bucket_id="string")
const us3BucketResource = new ucloud.Us3Bucket("us3BucketResource", {
type: "string",
name: "string",
tag: "string",
us3BucketId: "string",
});
type: ucloud:Us3Bucket
properties:
name: string
tag: string
type: string
us3BucketId: string
Us3Bucket 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 Us3Bucket resource accepts the following input properties:
- Type string
- The type of the US3 bucket. Possible values are:
public
,private
. - Name string
- The name of the US3 bucket, expected value to be:
- 3 - 63 characters.
- only support lowercase-letters, numbers, '-'.
- not prefix with '-', 'www', 'cn-bj', 'hk'.
- not suffix with '-'.
- Tag string
- A tag assigned to UFS, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - Us3Bucket
Id string - The ID of the resource US3 bucket.
- Type string
- The type of the US3 bucket. Possible values are:
public
,private
. - Name string
- The name of the US3 bucket, expected value to be:
- 3 - 63 characters.
- only support lowercase-letters, numbers, '-'.
- not prefix with '-', 'www', 'cn-bj', 'hk'.
- not suffix with '-'.
- Tag string
- A tag assigned to UFS, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - Us3Bucket
Id string - The ID of the resource US3 bucket.
- type String
- The type of the US3 bucket. Possible values are:
public
,private
. - name String
- The name of the US3 bucket, expected value to be:
- 3 - 63 characters.
- only support lowercase-letters, numbers, '-'.
- not prefix with '-', 'www', 'cn-bj', 'hk'.
- not suffix with '-'.
- tag String
- A tag assigned to UFS, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - us3Bucket
Id String - The ID of the resource US3 bucket.
- type string
- The type of the US3 bucket. Possible values are:
public
,private
. - name string
- The name of the US3 bucket, expected value to be:
- 3 - 63 characters.
- only support lowercase-letters, numbers, '-'.
- not prefix with '-', 'www', 'cn-bj', 'hk'.
- not suffix with '-'.
- tag string
- A tag assigned to UFS, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - us3Bucket
Id string - The ID of the resource US3 bucket.
- type str
- The type of the US3 bucket. Possible values are:
public
,private
. - name str
- The name of the US3 bucket, expected value to be:
- 3 - 63 characters.
- only support lowercase-letters, numbers, '-'.
- not prefix with '-', 'www', 'cn-bj', 'hk'.
- not suffix with '-'.
- tag str
- A tag assigned to UFS, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - us3_
bucket_ strid - The ID of the resource US3 bucket.
- type String
- The type of the US3 bucket. Possible values are:
public
,private
. - name String
- The name of the US3 bucket, expected value to be:
- 3 - 63 characters.
- only support lowercase-letters, numbers, '-'.
- not prefix with '-', 'www', 'cn-bj', 'hk'.
- not suffix with '-'.
- tag String
- A tag assigned to UFS, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - us3Bucket
Id String - The ID of the resource US3 bucket.
Outputs
All input properties are implicitly available as output properties. Additionally, the Us3Bucket resource produces the following output properties:
- Create
Time string - The time of creation of US3 bucket, formatted in RFC3339 time string.
- Id string
- The provider-assigned unique ID for this managed resource.
- Source
Domain List<string>Names - The list of source domain name.
- Create
Time string - The time of creation of US3 bucket, formatted in RFC3339 time string.
- Id string
- The provider-assigned unique ID for this managed resource.
- Source
Domain []stringNames - The list of source domain name.
- create
Time String - The time of creation of US3 bucket, formatted in RFC3339 time string.
- id String
- The provider-assigned unique ID for this managed resource.
- source
Domain List<String>Names - The list of source domain name.
- create
Time string - The time of creation of US3 bucket, formatted in RFC3339 time string.
- id string
- The provider-assigned unique ID for this managed resource.
- source
Domain string[]Names - The list of source domain name.
- create_
time str - The time of creation of US3 bucket, formatted in RFC3339 time string.
- id str
- The provider-assigned unique ID for this managed resource.
- source_
domain_ Sequence[str]names - The list of source domain name.
- create
Time String - The time of creation of US3 bucket, formatted in RFC3339 time string.
- id String
- The provider-assigned unique ID for this managed resource.
- source
Domain List<String>Names - The list of source domain name.
Look up Existing Us3Bucket Resource
Get an existing Us3Bucket 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?: Us3BucketState, opts?: CustomResourceOptions): Us3Bucket
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
name: Optional[str] = None,
source_domain_names: Optional[Sequence[str]] = None,
tag: Optional[str] = None,
type: Optional[str] = None,
us3_bucket_id: Optional[str] = None) -> Us3Bucket
func GetUs3Bucket(ctx *Context, name string, id IDInput, state *Us3BucketState, opts ...ResourceOption) (*Us3Bucket, error)
public static Us3Bucket Get(string name, Input<string> id, Us3BucketState? state, CustomResourceOptions? opts = null)
public static Us3Bucket get(String name, Output<String> id, Us3BucketState state, CustomResourceOptions options)
resources: _: type: ucloud:Us3Bucket 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.
- Create
Time string - The time of creation of US3 bucket, formatted in RFC3339 time string.
- Name string
- The name of the US3 bucket, expected value to be:
- 3 - 63 characters.
- only support lowercase-letters, numbers, '-'.
- not prefix with '-', 'www', 'cn-bj', 'hk'.
- not suffix with '-'.
- Source
Domain List<string>Names - The list of source domain name.
- Tag string
- A tag assigned to UFS, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - Type string
- The type of the US3 bucket. Possible values are:
public
,private
. - Us3Bucket
Id string - The ID of the resource US3 bucket.
- Create
Time string - The time of creation of US3 bucket, formatted in RFC3339 time string.
- Name string
- The name of the US3 bucket, expected value to be:
- 3 - 63 characters.
- only support lowercase-letters, numbers, '-'.
- not prefix with '-', 'www', 'cn-bj', 'hk'.
- not suffix with '-'.
- Source
Domain []stringNames - The list of source domain name.
- Tag string
- A tag assigned to UFS, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - Type string
- The type of the US3 bucket. Possible values are:
public
,private
. - Us3Bucket
Id string - The ID of the resource US3 bucket.
- create
Time String - The time of creation of US3 bucket, formatted in RFC3339 time string.
- name String
- The name of the US3 bucket, expected value to be:
- 3 - 63 characters.
- only support lowercase-letters, numbers, '-'.
- not prefix with '-', 'www', 'cn-bj', 'hk'.
- not suffix with '-'.
- source
Domain List<String>Names - The list of source domain name.
- tag String
- A tag assigned to UFS, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - type String
- The type of the US3 bucket. Possible values are:
public
,private
. - us3Bucket
Id String - The ID of the resource US3 bucket.
- create
Time string - The time of creation of US3 bucket, formatted in RFC3339 time string.
- name string
- The name of the US3 bucket, expected value to be:
- 3 - 63 characters.
- only support lowercase-letters, numbers, '-'.
- not prefix with '-', 'www', 'cn-bj', 'hk'.
- not suffix with '-'.
- source
Domain string[]Names - The list of source domain name.
- tag string
- A tag assigned to UFS, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - type string
- The type of the US3 bucket. Possible values are:
public
,private
. - us3Bucket
Id string - The ID of the resource US3 bucket.
- create_
time str - The time of creation of US3 bucket, formatted in RFC3339 time string.
- name str
- The name of the US3 bucket, expected value to be:
- 3 - 63 characters.
- only support lowercase-letters, numbers, '-'.
- not prefix with '-', 'www', 'cn-bj', 'hk'.
- not suffix with '-'.
- source_
domain_ Sequence[str]names - The list of source domain name.
- tag str
- A tag assigned to UFS, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - type str
- The type of the US3 bucket. Possible values are:
public
,private
. - us3_
bucket_ strid - The ID of the resource US3 bucket.
- create
Time String - The time of creation of US3 bucket, formatted in RFC3339 time string.
- name String
- The name of the US3 bucket, expected value to be:
- 3 - 63 characters.
- only support lowercase-letters, numbers, '-'.
- not prefix with '-', 'www', 'cn-bj', 'hk'.
- not suffix with '-'.
- source
Domain List<String>Names - The list of source domain name.
- tag String
- A tag assigned to UFS, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - type String
- The type of the US3 bucket. Possible values are:
public
,private
. - us3Bucket
Id String - The ID of the resource US3 bucket.
Package Details
- Repository
- ucloud ucloud/terraform-provider-ucloud
- License
- Notes
- This Pulumi package is based on the
ucloud
Terraform Provider.