Documentation ¶
Index ¶
- type Container
- func (*Container) ElementType() reflect.Type
- func (i *Container) ToContainerOutput() ContainerOutput
- func (i *Container) ToContainerOutputWithContext(ctx context.Context) ContainerOutput
- func (i *Container) ToContainerPtrOutput() ContainerPtrOutput
- func (i *Container) ToContainerPtrOutputWithContext(ctx context.Context) ContainerPtrOutput
- type ContainerArgs
- type ContainerArray
- type ContainerArrayInput
- type ContainerArrayOutput
- func (ContainerArrayOutput) ElementType() reflect.Type
- func (o ContainerArrayOutput) Index(i pulumi.IntInput) ContainerOutput
- func (o ContainerArrayOutput) ToContainerArrayOutput() ContainerArrayOutput
- func (o ContainerArrayOutput) ToContainerArrayOutputWithContext(ctx context.Context) ContainerArrayOutput
- type ContainerInput
- type ContainerMap
- type ContainerMapInput
- type ContainerMapOutput
- type ContainerObject
- func (*ContainerObject) ElementType() reflect.Type
- func (i *ContainerObject) ToContainerObjectOutput() ContainerObjectOutput
- func (i *ContainerObject) ToContainerObjectOutputWithContext(ctx context.Context) ContainerObjectOutput
- func (i *ContainerObject) ToContainerObjectPtrOutput() ContainerObjectPtrOutput
- func (i *ContainerObject) ToContainerObjectPtrOutputWithContext(ctx context.Context) ContainerObjectPtrOutput
- type ContainerObjectArgs
- type ContainerObjectArray
- type ContainerObjectArrayInput
- type ContainerObjectArrayOutput
- func (ContainerObjectArrayOutput) ElementType() reflect.Type
- func (o ContainerObjectArrayOutput) Index(i pulumi.IntInput) ContainerObjectOutput
- func (o ContainerObjectArrayOutput) ToContainerObjectArrayOutput() ContainerObjectArrayOutput
- func (o ContainerObjectArrayOutput) ToContainerObjectArrayOutputWithContext(ctx context.Context) ContainerObjectArrayOutput
- type ContainerObjectInput
- type ContainerObjectMap
- type ContainerObjectMapInput
- type ContainerObjectMapOutput
- func (ContainerObjectMapOutput) ElementType() reflect.Type
- func (o ContainerObjectMapOutput) MapIndex(k pulumi.StringInput) ContainerObjectOutput
- func (o ContainerObjectMapOutput) ToContainerObjectMapOutput() ContainerObjectMapOutput
- func (o ContainerObjectMapOutput) ToContainerObjectMapOutputWithContext(ctx context.Context) ContainerObjectMapOutput
- type ContainerObjectOutput
- func (ContainerObjectOutput) ElementType() reflect.Type
- func (o ContainerObjectOutput) ToContainerObjectOutput() ContainerObjectOutput
- func (o ContainerObjectOutput) ToContainerObjectOutputWithContext(ctx context.Context) ContainerObjectOutput
- func (o ContainerObjectOutput) ToContainerObjectPtrOutput() ContainerObjectPtrOutput
- func (o ContainerObjectOutput) ToContainerObjectPtrOutputWithContext(ctx context.Context) ContainerObjectPtrOutput
- type ContainerObjectPtrInput
- type ContainerObjectPtrOutput
- type ContainerObjectState
- type ContainerOutput
- func (ContainerOutput) ElementType() reflect.Type
- func (o ContainerOutput) ToContainerOutput() ContainerOutput
- func (o ContainerOutput) ToContainerOutputWithContext(ctx context.Context) ContainerOutput
- func (o ContainerOutput) ToContainerPtrOutput() ContainerPtrOutput
- func (o ContainerOutput) ToContainerPtrOutputWithContext(ctx context.Context) ContainerPtrOutput
- type ContainerPtrInput
- type ContainerPtrOutput
- type ContainerState
- type ContainerVersioning
- type ContainerVersioningArgs
- func (ContainerVersioningArgs) ElementType() reflect.Type
- func (i ContainerVersioningArgs) ToContainerVersioningOutput() ContainerVersioningOutput
- func (i ContainerVersioningArgs) ToContainerVersioningOutputWithContext(ctx context.Context) ContainerVersioningOutput
- func (i ContainerVersioningArgs) ToContainerVersioningPtrOutput() ContainerVersioningPtrOutput
- func (i ContainerVersioningArgs) ToContainerVersioningPtrOutputWithContext(ctx context.Context) ContainerVersioningPtrOutput
- type ContainerVersioningInput
- type ContainerVersioningOutput
- func (ContainerVersioningOutput) ElementType() reflect.Type
- func (o ContainerVersioningOutput) Location() pulumi.StringOutput
- func (o ContainerVersioningOutput) ToContainerVersioningOutput() ContainerVersioningOutput
- func (o ContainerVersioningOutput) ToContainerVersioningOutputWithContext(ctx context.Context) ContainerVersioningOutput
- func (o ContainerVersioningOutput) ToContainerVersioningPtrOutput() ContainerVersioningPtrOutput
- func (o ContainerVersioningOutput) ToContainerVersioningPtrOutputWithContext(ctx context.Context) ContainerVersioningPtrOutput
- func (o ContainerVersioningOutput) Type() pulumi.StringOutput
- type ContainerVersioningPtrInput
- type ContainerVersioningPtrOutput
- func (o ContainerVersioningPtrOutput) Elem() ContainerVersioningOutput
- func (ContainerVersioningPtrOutput) ElementType() reflect.Type
- func (o ContainerVersioningPtrOutput) Location() pulumi.StringPtrOutput
- func (o ContainerVersioningPtrOutput) ToContainerVersioningPtrOutput() ContainerVersioningPtrOutput
- func (o ContainerVersioningPtrOutput) ToContainerVersioningPtrOutputWithContext(ctx context.Context) ContainerVersioningPtrOutput
- func (o ContainerVersioningPtrOutput) Type() pulumi.StringPtrOutput
- type TempUrl
- func (*TempUrl) ElementType() reflect.Type
- func (i *TempUrl) ToTempUrlOutput() TempUrlOutput
- func (i *TempUrl) ToTempUrlOutputWithContext(ctx context.Context) TempUrlOutput
- func (i *TempUrl) ToTempUrlPtrOutput() TempUrlPtrOutput
- func (i *TempUrl) ToTempUrlPtrOutputWithContext(ctx context.Context) TempUrlPtrOutput
- type TempUrlArgs
- type TempUrlArray
- type TempUrlArrayInput
- type TempUrlArrayOutput
- type TempUrlInput
- type TempUrlMap
- type TempUrlMapInput
- type TempUrlMapOutput
- type TempUrlOutput
- func (TempUrlOutput) ElementType() reflect.Type
- func (o TempUrlOutput) ToTempUrlOutput() TempUrlOutput
- func (o TempUrlOutput) ToTempUrlOutputWithContext(ctx context.Context) TempUrlOutput
- func (o TempUrlOutput) ToTempUrlPtrOutput() TempUrlPtrOutput
- func (o TempUrlOutput) ToTempUrlPtrOutputWithContext(ctx context.Context) TempUrlPtrOutput
- type TempUrlPtrInput
- type TempUrlPtrOutput
- type TempUrlState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct { pulumi.CustomResourceState // Sets an access control list (ACL) that grants // read access. This header can contain a comma-delimited list of users that // can read the container (allows the GET method for all objects in the // container). Changing this updates the access control list read access. ContainerRead pulumi.StringPtrOutput `pulumi:"containerRead"` // The secret key for container synchronization. // Changing this updates container synchronization. ContainerSyncKey pulumi.StringPtrOutput `pulumi:"containerSyncKey"` // The destination for container synchronization. // Changing this updates container synchronization. ContainerSyncTo pulumi.StringPtrOutput `pulumi:"containerSyncTo"` // Sets an ACL that grants write access. // Changing this updates the access control list write access. ContainerWrite pulumi.StringPtrOutput `pulumi:"containerWrite"` // The MIME type for the container. Changing this // updates the MIME type. ContentType pulumi.StringPtrOutput `pulumi:"contentType"` // A boolean that indicates all objects should be deleted from the container so that the container can be destroyed without error. These objects are not recoverable. ForceDestroy pulumi.BoolPtrOutput `pulumi:"forceDestroy"` // Custom key/value pairs to associate with the container. // Changing this updates the existing container metadata. Metadata pulumi.MapOutput `pulumi:"metadata"` // A unique name for the container. Changing this creates a // new container. Name pulumi.StringOutput `pulumi:"name"` // The region in which to create the container. If // omitted, the `region` argument of the provider is used. Changing this // creates a new container. Region pulumi.StringOutput `pulumi:"region"` // Enable object versioning. The structure is described below. Versioning ContainerVersioningPtrOutput `pulumi:"versioning"` }
Manages a V1 container resource within OpenStack.
## Example Usage ### Basic Container
```go package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v2/go/openstack/objectstorage" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := objectstorage.NewContainer(ctx, "container1", &objectstorage.ContainerArgs{ ContentType: pulumi.String("application/json"), Metadata: pulumi.StringMap{ "test": pulumi.String("true"), }, Region: pulumi.String("RegionOne"), Versioning: &objectstorage.ContainerVersioningArgs{ Location: pulumi.String("tf-test-container-versions"), Type: pulumi.String("versions"), }, }) if err != nil { return err } return nil }) }
``` ### Global Read Access
```go package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v2/go/openstack/objectstorage" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := objectstorage.NewContainer(ctx, "container1", &objectstorage.ContainerArgs{ ContainerRead: pulumi.String(".r:*"), Region: pulumi.String("RegionOne"), }) if err != nil { return err } return nil }) }
``` ### Global Read and List Access
```go package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v2/go/openstack/objectstorage" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := objectstorage.NewContainer(ctx, "container1", &objectstorage.ContainerArgs{ ContainerRead: pulumi.String(".r:*,.rlistings"), Region: pulumi.String("RegionOne"), }) if err != nil { return err } return nil }) }
``` ### Write-Only Access for a User
```go package main
import (
"fmt" "github.com/pulumi/pulumi-openstack/sdk/v2/go/openstack/identity" "github.com/pulumi/pulumi-openstack/sdk/v2/go/openstack/objectstorage" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { current, err := identity.GetAuthScope(ctx, &identity.GetAuthScopeArgs{ Name: "current", }, nil) if err != nil { return err } _, err = objectstorage.NewContainer(ctx, "container1", &objectstorage.ContainerArgs{ ContainerRead: pulumi.String(fmt.Sprintf("%v%v", ".r:-", _var.Username)), ContainerWrite: pulumi.String(fmt.Sprintf("%v%v%v", current.ProjectId, ":", _var.Username)), Region: pulumi.String("RegionOne"), }) if err != nil { return err } return nil }) }
```
## Import
This resource can be imported by specifying the name of the containerSome attributes can't be imported * `force_destroy` * `content_type` * `metadata` * `container_sync_to` * `container_sync_key` So you'll have to `terraform plan` and `terraform apply` after the import to fix those missing attributes.
```sh
$ pulumi import openstack:objectstorage/container:Container container_1 <name>
```
func GetContainer ¶
func GetContainer(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ContainerState, opts ...pulumi.ResourceOption) (*Container, error)
GetContainer gets an existing Container resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewContainer ¶
func NewContainer(ctx *pulumi.Context, name string, args *ContainerArgs, opts ...pulumi.ResourceOption) (*Container, error)
NewContainer registers a new resource with the given unique name, arguments, and options.
func (*Container) ElementType ¶ added in v2.10.0
func (*Container) ToContainerOutput ¶ added in v2.10.0
func (i *Container) ToContainerOutput() ContainerOutput
func (*Container) ToContainerOutputWithContext ¶ added in v2.10.0
func (i *Container) ToContainerOutputWithContext(ctx context.Context) ContainerOutput
func (*Container) ToContainerPtrOutput ¶ added in v2.14.1
func (i *Container) ToContainerPtrOutput() ContainerPtrOutput
func (*Container) ToContainerPtrOutputWithContext ¶ added in v2.14.1
func (i *Container) ToContainerPtrOutputWithContext(ctx context.Context) ContainerPtrOutput
type ContainerArgs ¶
type ContainerArgs struct { // Sets an access control list (ACL) that grants // read access. This header can contain a comma-delimited list of users that // can read the container (allows the GET method for all objects in the // container). Changing this updates the access control list read access. ContainerRead pulumi.StringPtrInput // The secret key for container synchronization. // Changing this updates container synchronization. ContainerSyncKey pulumi.StringPtrInput // The destination for container synchronization. // Changing this updates container synchronization. ContainerSyncTo pulumi.StringPtrInput // Sets an ACL that grants write access. // Changing this updates the access control list write access. ContainerWrite pulumi.StringPtrInput // The MIME type for the container. Changing this // updates the MIME type. ContentType pulumi.StringPtrInput // A boolean that indicates all objects should be deleted from the container so that the container can be destroyed without error. These objects are not recoverable. ForceDestroy pulumi.BoolPtrInput // Custom key/value pairs to associate with the container. // Changing this updates the existing container metadata. Metadata pulumi.MapInput // A unique name for the container. Changing this creates a // new container. Name pulumi.StringPtrInput // The region in which to create the container. If // omitted, the `region` argument of the provider is used. Changing this // creates a new container. Region pulumi.StringPtrInput // Enable object versioning. The structure is described below. Versioning ContainerVersioningPtrInput }
The set of arguments for constructing a Container resource.
func (ContainerArgs) ElementType ¶
func (ContainerArgs) ElementType() reflect.Type
type ContainerArray ¶ added in v2.14.1
type ContainerArray []ContainerInput
func (ContainerArray) ElementType ¶ added in v2.14.1
func (ContainerArray) ElementType() reflect.Type
func (ContainerArray) ToContainerArrayOutput ¶ added in v2.14.1
func (i ContainerArray) ToContainerArrayOutput() ContainerArrayOutput
func (ContainerArray) ToContainerArrayOutputWithContext ¶ added in v2.14.1
func (i ContainerArray) ToContainerArrayOutputWithContext(ctx context.Context) ContainerArrayOutput
type ContainerArrayInput ¶ added in v2.14.1
type ContainerArrayInput interface { pulumi.Input ToContainerArrayOutput() ContainerArrayOutput ToContainerArrayOutputWithContext(context.Context) ContainerArrayOutput }
ContainerArrayInput is an input type that accepts ContainerArray and ContainerArrayOutput values. You can construct a concrete instance of `ContainerArrayInput` via:
ContainerArray{ ContainerArgs{...} }
type ContainerArrayOutput ¶ added in v2.14.1
type ContainerArrayOutput struct{ *pulumi.OutputState }
func (ContainerArrayOutput) ElementType ¶ added in v2.14.1
func (ContainerArrayOutput) ElementType() reflect.Type
func (ContainerArrayOutput) Index ¶ added in v2.14.1
func (o ContainerArrayOutput) Index(i pulumi.IntInput) ContainerOutput
func (ContainerArrayOutput) ToContainerArrayOutput ¶ added in v2.14.1
func (o ContainerArrayOutput) ToContainerArrayOutput() ContainerArrayOutput
func (ContainerArrayOutput) ToContainerArrayOutputWithContext ¶ added in v2.14.1
func (o ContainerArrayOutput) ToContainerArrayOutputWithContext(ctx context.Context) ContainerArrayOutput
type ContainerInput ¶ added in v2.10.0
type ContainerInput interface { pulumi.Input ToContainerOutput() ContainerOutput ToContainerOutputWithContext(ctx context.Context) ContainerOutput }
type ContainerMap ¶ added in v2.14.1
type ContainerMap map[string]ContainerInput
func (ContainerMap) ElementType ¶ added in v2.14.1
func (ContainerMap) ElementType() reflect.Type
func (ContainerMap) ToContainerMapOutput ¶ added in v2.14.1
func (i ContainerMap) ToContainerMapOutput() ContainerMapOutput
func (ContainerMap) ToContainerMapOutputWithContext ¶ added in v2.14.1
func (i ContainerMap) ToContainerMapOutputWithContext(ctx context.Context) ContainerMapOutput
type ContainerMapInput ¶ added in v2.14.1
type ContainerMapInput interface { pulumi.Input ToContainerMapOutput() ContainerMapOutput ToContainerMapOutputWithContext(context.Context) ContainerMapOutput }
ContainerMapInput is an input type that accepts ContainerMap and ContainerMapOutput values. You can construct a concrete instance of `ContainerMapInput` via:
ContainerMap{ "key": ContainerArgs{...} }
type ContainerMapOutput ¶ added in v2.14.1
type ContainerMapOutput struct{ *pulumi.OutputState }
func (ContainerMapOutput) ElementType ¶ added in v2.14.1
func (ContainerMapOutput) ElementType() reflect.Type
func (ContainerMapOutput) MapIndex ¶ added in v2.14.1
func (o ContainerMapOutput) MapIndex(k pulumi.StringInput) ContainerOutput
func (ContainerMapOutput) ToContainerMapOutput ¶ added in v2.14.1
func (o ContainerMapOutput) ToContainerMapOutput() ContainerMapOutput
func (ContainerMapOutput) ToContainerMapOutputWithContext ¶ added in v2.14.1
func (o ContainerMapOutput) ToContainerMapOutputWithContext(ctx context.Context) ContainerMapOutput
type ContainerObject ¶
type ContainerObject struct { pulumi.CustomResourceState // A unique (within an account) name for the container. // The container name must be from 1 to 256 characters long and can start // with any character and contain any pattern. Character set must be UTF-8. // The container name cannot contain a slash (/) character because this // character delimits the container and object name. For example, the path // /v1/account/www/pages specifies the www container, not the www/pages container. ContainerName pulumi.StringOutput `pulumi:"containerName"` // A string representing the content of the object. Conflicts with // `source` and `copyFrom`. Content pulumi.StringPtrOutput `pulumi:"content"` // A string which specifies the override behavior for // the browser. For example, this header might specify that the browser use a download // program to save this file rather than show the file, which is the default. ContentDisposition pulumi.StringOutput `pulumi:"contentDisposition"` // A string representing the value of the Content-Encoding // metadata. ContentEncoding pulumi.StringOutput `pulumi:"contentEncoding"` // If the operation succeeds, this value is zero (0) or the // length of informational or error text in the response body. ContentLength pulumi.IntOutput `pulumi:"contentLength"` // A string which sets the MIME type for the object. ContentType pulumi.StringOutput `pulumi:"contentType"` // A string representing the name of an object // used to create the new object by copying the `copyFrom` object. The value is in form // {container}/{object}. You must UTF-8-encode and then URL-encode the names of the // container and object before you include them in the header. Conflicts with `source` and // `content`. CopyFrom pulumi.StringPtrOutput `pulumi:"copyFrom"` // The date and time the system responded to the request, using the preferred // format of RFC 7231 as shown in this example Thu, 16 Jun 2016 15:10:38 GMT. The // time is always in UTC. Date pulumi.StringOutput `pulumi:"date"` // An integer representing the number of seconds after which the // system removes the object. Internally, the Object Storage system stores this value in // the X-Delete-At metadata item. DeleteAfter pulumi.IntPtrOutput `pulumi:"deleteAfter"` // An string representing the date when the system removes the object. // For example, "2015-08-26" is equivalent to Mon, Wed, 26 Aug 2015 00:00:00 GMT. DeleteAt pulumi.StringOutput `pulumi:"deleteAt"` // If set to true, Object Storage guesses the content // type based on the file extension and ignores the value sent in the Content-Type // header, if present. DetectContentType pulumi.BoolPtrOutput `pulumi:"detectContentType"` // Used to trigger updates. The only meaningful value is ${md5(file("path/to/file"))}. Etag pulumi.StringOutput `pulumi:"etag"` // The date and time when the object was last modified. The date and time // stamp format is ISO 8601: // CCYY-MM-DDThh:mm:ss±hh:mm // For example, 2015-08-27T09:49:58-05:00. // The ±hh:mm value, if included, is the time zone as an offset from UTC. In the previous // example, the offset value is -05:00. LastModified pulumi.StringOutput `pulumi:"lastModified"` Metadata pulumi.MapOutput `pulumi:"metadata"` // A unique name for the object. Name pulumi.StringOutput `pulumi:"name"` // A string set to specify that this is a dynamic large // object manifest object. The value is the container and object name prefix of the // segment objects in the form container/prefix. You must UTF-8-encode and then // URL-encode the names of the container and prefix before you include them in this // header. ObjectManifest pulumi.StringOutput `pulumi:"objectManifest"` // The region in which to create the container. If // omitted, the `region` argument of the provider is used. Changing this // creates a new container. Region pulumi.StringOutput `pulumi:"region"` // A string representing the local path of a file which will be used // as the object's content. Conflicts with `source` and `copyFrom`. Source pulumi.StringPtrOutput `pulumi:"source"` // A unique transaction ID for this request. Your service provider might // need this value if you report a problem. TransId pulumi.StringOutput `pulumi:"transId"` }
Manages a V1 container object resource within OpenStack.
## Example Usage ### Example with simple content
```go package main
import (
"fmt" "github.com/pulumi/pulumi-openstack/sdk/v2/go/openstack/objectstorage" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { container1, err := objectstorage.NewContainer(ctx, "container1", &objectstorage.ContainerArgs{ ContentType: pulumi.String("application/json"), Metadata: pulumi.StringMap{ "test": pulumi.String("true"), }, Region: pulumi.String("RegionOne"), }) if err != nil { return err } _, err = objectstorage.NewContainerObject(ctx, "doc1", &objectstorage.ContainerObjectArgs{ ContainerName: container1.Name, Content: pulumi.String(fmt.Sprintf("%v%v%v%v", " {\n", " \"foo\" : \"bar\"\n", " }\n", "\n")), ContentType: pulumi.String("application/json"), Metadata: pulumi.StringMap{ "test": pulumi.String("true"), }, Region: pulumi.String("RegionOne"), }) if err != nil { return err } return nil }) }
``` ### Example with content from file
```go package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v2/go/openstack/objectstorage" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { container1, err := objectstorage.NewContainer(ctx, "container1", &objectstorage.ContainerArgs{ ContentType: pulumi.String("application/json"), Metadata: pulumi.StringMap{ "test": pulumi.String("true"), }, Region: pulumi.String("RegionOne"), }) if err != nil { return err } _, err = objectstorage.NewContainerObject(ctx, "doc1", &objectstorage.ContainerObjectArgs{ ContainerName: container1.Name, ContentType: pulumi.String("application/json"), Metadata: pulumi.StringMap{ "test": pulumi.String("true"), }, Region: pulumi.String("RegionOne"), Source: pulumi.String("./default.json"), }) if err != nil { return err } return nil }) }
```
func GetContainerObject ¶
func GetContainerObject(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ContainerObjectState, opts ...pulumi.ResourceOption) (*ContainerObject, error)
GetContainerObject gets an existing ContainerObject resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewContainerObject ¶
func NewContainerObject(ctx *pulumi.Context, name string, args *ContainerObjectArgs, opts ...pulumi.ResourceOption) (*ContainerObject, error)
NewContainerObject registers a new resource with the given unique name, arguments, and options.
func (*ContainerObject) ElementType ¶ added in v2.10.0
func (*ContainerObject) ElementType() reflect.Type
func (*ContainerObject) ToContainerObjectOutput ¶ added in v2.10.0
func (i *ContainerObject) ToContainerObjectOutput() ContainerObjectOutput
func (*ContainerObject) ToContainerObjectOutputWithContext ¶ added in v2.10.0
func (i *ContainerObject) ToContainerObjectOutputWithContext(ctx context.Context) ContainerObjectOutput
func (*ContainerObject) ToContainerObjectPtrOutput ¶ added in v2.14.1
func (i *ContainerObject) ToContainerObjectPtrOutput() ContainerObjectPtrOutput
func (*ContainerObject) ToContainerObjectPtrOutputWithContext ¶ added in v2.14.1
func (i *ContainerObject) ToContainerObjectPtrOutputWithContext(ctx context.Context) ContainerObjectPtrOutput
type ContainerObjectArgs ¶
type ContainerObjectArgs struct { // A unique (within an account) name for the container. // The container name must be from 1 to 256 characters long and can start // with any character and contain any pattern. Character set must be UTF-8. // The container name cannot contain a slash (/) character because this // character delimits the container and object name. For example, the path // /v1/account/www/pages specifies the www container, not the www/pages container. ContainerName pulumi.StringInput // A string representing the content of the object. Conflicts with // `source` and `copyFrom`. Content pulumi.StringPtrInput // A string which specifies the override behavior for // the browser. For example, this header might specify that the browser use a download // program to save this file rather than show the file, which is the default. ContentDisposition pulumi.StringPtrInput // A string representing the value of the Content-Encoding // metadata. ContentEncoding pulumi.StringPtrInput // A string which sets the MIME type for the object. ContentType pulumi.StringPtrInput // A string representing the name of an object // used to create the new object by copying the `copyFrom` object. The value is in form // {container}/{object}. You must UTF-8-encode and then URL-encode the names of the // container and object before you include them in the header. Conflicts with `source` and // `content`. CopyFrom pulumi.StringPtrInput // An integer representing the number of seconds after which the // system removes the object. Internally, the Object Storage system stores this value in // the X-Delete-At metadata item. DeleteAfter pulumi.IntPtrInput // An string representing the date when the system removes the object. // For example, "2015-08-26" is equivalent to Mon, Wed, 26 Aug 2015 00:00:00 GMT. DeleteAt pulumi.StringPtrInput // If set to true, Object Storage guesses the content // type based on the file extension and ignores the value sent in the Content-Type // header, if present. DetectContentType pulumi.BoolPtrInput // Used to trigger updates. The only meaningful value is ${md5(file("path/to/file"))}. Etag pulumi.StringPtrInput Metadata pulumi.MapInput // A unique name for the object. Name pulumi.StringPtrInput // A string set to specify that this is a dynamic large // object manifest object. The value is the container and object name prefix of the // segment objects in the form container/prefix. You must UTF-8-encode and then // URL-encode the names of the container and prefix before you include them in this // header. ObjectManifest pulumi.StringPtrInput // The region in which to create the container. If // omitted, the `region` argument of the provider is used. Changing this // creates a new container. Region pulumi.StringPtrInput // A string representing the local path of a file which will be used // as the object's content. Conflicts with `source` and `copyFrom`. Source pulumi.StringPtrInput }
The set of arguments for constructing a ContainerObject resource.
func (ContainerObjectArgs) ElementType ¶
func (ContainerObjectArgs) ElementType() reflect.Type
type ContainerObjectArray ¶ added in v2.14.1
type ContainerObjectArray []ContainerObjectInput
func (ContainerObjectArray) ElementType ¶ added in v2.14.1
func (ContainerObjectArray) ElementType() reflect.Type
func (ContainerObjectArray) ToContainerObjectArrayOutput ¶ added in v2.14.1
func (i ContainerObjectArray) ToContainerObjectArrayOutput() ContainerObjectArrayOutput
func (ContainerObjectArray) ToContainerObjectArrayOutputWithContext ¶ added in v2.14.1
func (i ContainerObjectArray) ToContainerObjectArrayOutputWithContext(ctx context.Context) ContainerObjectArrayOutput
type ContainerObjectArrayInput ¶ added in v2.14.1
type ContainerObjectArrayInput interface { pulumi.Input ToContainerObjectArrayOutput() ContainerObjectArrayOutput ToContainerObjectArrayOutputWithContext(context.Context) ContainerObjectArrayOutput }
ContainerObjectArrayInput is an input type that accepts ContainerObjectArray and ContainerObjectArrayOutput values. You can construct a concrete instance of `ContainerObjectArrayInput` via:
ContainerObjectArray{ ContainerObjectArgs{...} }
type ContainerObjectArrayOutput ¶ added in v2.14.1
type ContainerObjectArrayOutput struct{ *pulumi.OutputState }
func (ContainerObjectArrayOutput) ElementType ¶ added in v2.14.1
func (ContainerObjectArrayOutput) ElementType() reflect.Type
func (ContainerObjectArrayOutput) Index ¶ added in v2.14.1
func (o ContainerObjectArrayOutput) Index(i pulumi.IntInput) ContainerObjectOutput
func (ContainerObjectArrayOutput) ToContainerObjectArrayOutput ¶ added in v2.14.1
func (o ContainerObjectArrayOutput) ToContainerObjectArrayOutput() ContainerObjectArrayOutput
func (ContainerObjectArrayOutput) ToContainerObjectArrayOutputWithContext ¶ added in v2.14.1
func (o ContainerObjectArrayOutput) ToContainerObjectArrayOutputWithContext(ctx context.Context) ContainerObjectArrayOutput
type ContainerObjectInput ¶ added in v2.10.0
type ContainerObjectInput interface { pulumi.Input ToContainerObjectOutput() ContainerObjectOutput ToContainerObjectOutputWithContext(ctx context.Context) ContainerObjectOutput }
type ContainerObjectMap ¶ added in v2.14.1
type ContainerObjectMap map[string]ContainerObjectInput
func (ContainerObjectMap) ElementType ¶ added in v2.14.1
func (ContainerObjectMap) ElementType() reflect.Type
func (ContainerObjectMap) ToContainerObjectMapOutput ¶ added in v2.14.1
func (i ContainerObjectMap) ToContainerObjectMapOutput() ContainerObjectMapOutput
func (ContainerObjectMap) ToContainerObjectMapOutputWithContext ¶ added in v2.14.1
func (i ContainerObjectMap) ToContainerObjectMapOutputWithContext(ctx context.Context) ContainerObjectMapOutput
type ContainerObjectMapInput ¶ added in v2.14.1
type ContainerObjectMapInput interface { pulumi.Input ToContainerObjectMapOutput() ContainerObjectMapOutput ToContainerObjectMapOutputWithContext(context.Context) ContainerObjectMapOutput }
ContainerObjectMapInput is an input type that accepts ContainerObjectMap and ContainerObjectMapOutput values. You can construct a concrete instance of `ContainerObjectMapInput` via:
ContainerObjectMap{ "key": ContainerObjectArgs{...} }
type ContainerObjectMapOutput ¶ added in v2.14.1
type ContainerObjectMapOutput struct{ *pulumi.OutputState }
func (ContainerObjectMapOutput) ElementType ¶ added in v2.14.1
func (ContainerObjectMapOutput) ElementType() reflect.Type
func (ContainerObjectMapOutput) MapIndex ¶ added in v2.14.1
func (o ContainerObjectMapOutput) MapIndex(k pulumi.StringInput) ContainerObjectOutput
func (ContainerObjectMapOutput) ToContainerObjectMapOutput ¶ added in v2.14.1
func (o ContainerObjectMapOutput) ToContainerObjectMapOutput() ContainerObjectMapOutput
func (ContainerObjectMapOutput) ToContainerObjectMapOutputWithContext ¶ added in v2.14.1
func (o ContainerObjectMapOutput) ToContainerObjectMapOutputWithContext(ctx context.Context) ContainerObjectMapOutput
type ContainerObjectOutput ¶ added in v2.10.0
type ContainerObjectOutput struct {
*pulumi.OutputState
}
func (ContainerObjectOutput) ElementType ¶ added in v2.10.0
func (ContainerObjectOutput) ElementType() reflect.Type
func (ContainerObjectOutput) ToContainerObjectOutput ¶ added in v2.10.0
func (o ContainerObjectOutput) ToContainerObjectOutput() ContainerObjectOutput
func (ContainerObjectOutput) ToContainerObjectOutputWithContext ¶ added in v2.10.0
func (o ContainerObjectOutput) ToContainerObjectOutputWithContext(ctx context.Context) ContainerObjectOutput
func (ContainerObjectOutput) ToContainerObjectPtrOutput ¶ added in v2.14.1
func (o ContainerObjectOutput) ToContainerObjectPtrOutput() ContainerObjectPtrOutput
func (ContainerObjectOutput) ToContainerObjectPtrOutputWithContext ¶ added in v2.14.1
func (o ContainerObjectOutput) ToContainerObjectPtrOutputWithContext(ctx context.Context) ContainerObjectPtrOutput
type ContainerObjectPtrInput ¶ added in v2.14.1
type ContainerObjectPtrInput interface { pulumi.Input ToContainerObjectPtrOutput() ContainerObjectPtrOutput ToContainerObjectPtrOutputWithContext(ctx context.Context) ContainerObjectPtrOutput }
type ContainerObjectPtrOutput ¶ added in v2.14.1
type ContainerObjectPtrOutput struct {
*pulumi.OutputState
}
func (ContainerObjectPtrOutput) ElementType ¶ added in v2.14.1
func (ContainerObjectPtrOutput) ElementType() reflect.Type
func (ContainerObjectPtrOutput) ToContainerObjectPtrOutput ¶ added in v2.14.1
func (o ContainerObjectPtrOutput) ToContainerObjectPtrOutput() ContainerObjectPtrOutput
func (ContainerObjectPtrOutput) ToContainerObjectPtrOutputWithContext ¶ added in v2.14.1
func (o ContainerObjectPtrOutput) ToContainerObjectPtrOutputWithContext(ctx context.Context) ContainerObjectPtrOutput
type ContainerObjectState ¶
type ContainerObjectState struct { // A unique (within an account) name for the container. // The container name must be from 1 to 256 characters long and can start // with any character and contain any pattern. Character set must be UTF-8. // The container name cannot contain a slash (/) character because this // character delimits the container and object name. For example, the path // /v1/account/www/pages specifies the www container, not the www/pages container. ContainerName pulumi.StringPtrInput // A string representing the content of the object. Conflicts with // `source` and `copyFrom`. Content pulumi.StringPtrInput // A string which specifies the override behavior for // the browser. For example, this header might specify that the browser use a download // program to save this file rather than show the file, which is the default. ContentDisposition pulumi.StringPtrInput // A string representing the value of the Content-Encoding // metadata. ContentEncoding pulumi.StringPtrInput // If the operation succeeds, this value is zero (0) or the // length of informational or error text in the response body. ContentLength pulumi.IntPtrInput // A string which sets the MIME type for the object. ContentType pulumi.StringPtrInput // A string representing the name of an object // used to create the new object by copying the `copyFrom` object. The value is in form // {container}/{object}. You must UTF-8-encode and then URL-encode the names of the // container and object before you include them in the header. Conflicts with `source` and // `content`. CopyFrom pulumi.StringPtrInput // The date and time the system responded to the request, using the preferred // format of RFC 7231 as shown in this example Thu, 16 Jun 2016 15:10:38 GMT. The // time is always in UTC. Date pulumi.StringPtrInput // An integer representing the number of seconds after which the // system removes the object. Internally, the Object Storage system stores this value in // the X-Delete-At metadata item. DeleteAfter pulumi.IntPtrInput // An string representing the date when the system removes the object. // For example, "2015-08-26" is equivalent to Mon, Wed, 26 Aug 2015 00:00:00 GMT. DeleteAt pulumi.StringPtrInput // If set to true, Object Storage guesses the content // type based on the file extension and ignores the value sent in the Content-Type // header, if present. DetectContentType pulumi.BoolPtrInput // Used to trigger updates. The only meaningful value is ${md5(file("path/to/file"))}. Etag pulumi.StringPtrInput // The date and time when the object was last modified. The date and time // stamp format is ISO 8601: // CCYY-MM-DDThh:mm:ss±hh:mm // For example, 2015-08-27T09:49:58-05:00. // The ±hh:mm value, if included, is the time zone as an offset from UTC. In the previous // example, the offset value is -05:00. LastModified pulumi.StringPtrInput Metadata pulumi.MapInput // A unique name for the object. Name pulumi.StringPtrInput // A string set to specify that this is a dynamic large // object manifest object. The value is the container and object name prefix of the // segment objects in the form container/prefix. You must UTF-8-encode and then // URL-encode the names of the container and prefix before you include them in this // header. ObjectManifest pulumi.StringPtrInput // The region in which to create the container. If // omitted, the `region` argument of the provider is used. Changing this // creates a new container. Region pulumi.StringPtrInput // A string representing the local path of a file which will be used // as the object's content. Conflicts with `source` and `copyFrom`. Source pulumi.StringPtrInput // A unique transaction ID for this request. Your service provider might // need this value if you report a problem. TransId pulumi.StringPtrInput }
func (ContainerObjectState) ElementType ¶
func (ContainerObjectState) ElementType() reflect.Type
type ContainerOutput ¶ added in v2.10.0
type ContainerOutput struct {
*pulumi.OutputState
}
func (ContainerOutput) ElementType ¶ added in v2.10.0
func (ContainerOutput) ElementType() reflect.Type
func (ContainerOutput) ToContainerOutput ¶ added in v2.10.0
func (o ContainerOutput) ToContainerOutput() ContainerOutput
func (ContainerOutput) ToContainerOutputWithContext ¶ added in v2.10.0
func (o ContainerOutput) ToContainerOutputWithContext(ctx context.Context) ContainerOutput
func (ContainerOutput) ToContainerPtrOutput ¶ added in v2.14.1
func (o ContainerOutput) ToContainerPtrOutput() ContainerPtrOutput
func (ContainerOutput) ToContainerPtrOutputWithContext ¶ added in v2.14.1
func (o ContainerOutput) ToContainerPtrOutputWithContext(ctx context.Context) ContainerPtrOutput
type ContainerPtrInput ¶ added in v2.14.1
type ContainerPtrInput interface { pulumi.Input ToContainerPtrOutput() ContainerPtrOutput ToContainerPtrOutputWithContext(ctx context.Context) ContainerPtrOutput }
type ContainerPtrOutput ¶ added in v2.14.1
type ContainerPtrOutput struct {
*pulumi.OutputState
}
func (ContainerPtrOutput) ElementType ¶ added in v2.14.1
func (ContainerPtrOutput) ElementType() reflect.Type
func (ContainerPtrOutput) ToContainerPtrOutput ¶ added in v2.14.1
func (o ContainerPtrOutput) ToContainerPtrOutput() ContainerPtrOutput
func (ContainerPtrOutput) ToContainerPtrOutputWithContext ¶ added in v2.14.1
func (o ContainerPtrOutput) ToContainerPtrOutputWithContext(ctx context.Context) ContainerPtrOutput
type ContainerState ¶
type ContainerState struct { // Sets an access control list (ACL) that grants // read access. This header can contain a comma-delimited list of users that // can read the container (allows the GET method for all objects in the // container). Changing this updates the access control list read access. ContainerRead pulumi.StringPtrInput // The secret key for container synchronization. // Changing this updates container synchronization. ContainerSyncKey pulumi.StringPtrInput // The destination for container synchronization. // Changing this updates container synchronization. ContainerSyncTo pulumi.StringPtrInput // Sets an ACL that grants write access. // Changing this updates the access control list write access. ContainerWrite pulumi.StringPtrInput // The MIME type for the container. Changing this // updates the MIME type. ContentType pulumi.StringPtrInput // A boolean that indicates all objects should be deleted from the container so that the container can be destroyed without error. These objects are not recoverable. ForceDestroy pulumi.BoolPtrInput // Custom key/value pairs to associate with the container. // Changing this updates the existing container metadata. Metadata pulumi.MapInput // A unique name for the container. Changing this creates a // new container. Name pulumi.StringPtrInput // The region in which to create the container. If // omitted, the `region` argument of the provider is used. Changing this // creates a new container. Region pulumi.StringPtrInput // Enable object versioning. The structure is described below. Versioning ContainerVersioningPtrInput }
func (ContainerState) ElementType ¶
func (ContainerState) ElementType() reflect.Type
type ContainerVersioning ¶
type ContainerVersioning struct { // Container in which versions will be stored. Location string `pulumi:"location"` // Versioning type which can be `versions` or `history` according to [Openstack documentation](https://docs.openstack.org/swift/latest/api/object_versioning.html). Type string `pulumi:"type"` }
type ContainerVersioningArgs ¶
type ContainerVersioningArgs struct { // Container in which versions will be stored. Location pulumi.StringInput `pulumi:"location"` // Versioning type which can be `versions` or `history` according to [Openstack documentation](https://docs.openstack.org/swift/latest/api/object_versioning.html). Type pulumi.StringInput `pulumi:"type"` }
func (ContainerVersioningArgs) ElementType ¶
func (ContainerVersioningArgs) ElementType() reflect.Type
func (ContainerVersioningArgs) ToContainerVersioningOutput ¶
func (i ContainerVersioningArgs) ToContainerVersioningOutput() ContainerVersioningOutput
func (ContainerVersioningArgs) ToContainerVersioningOutputWithContext ¶
func (i ContainerVersioningArgs) ToContainerVersioningOutputWithContext(ctx context.Context) ContainerVersioningOutput
func (ContainerVersioningArgs) ToContainerVersioningPtrOutput ¶
func (i ContainerVersioningArgs) ToContainerVersioningPtrOutput() ContainerVersioningPtrOutput
func (ContainerVersioningArgs) ToContainerVersioningPtrOutputWithContext ¶
func (i ContainerVersioningArgs) ToContainerVersioningPtrOutputWithContext(ctx context.Context) ContainerVersioningPtrOutput
type ContainerVersioningInput ¶
type ContainerVersioningInput interface { pulumi.Input ToContainerVersioningOutput() ContainerVersioningOutput ToContainerVersioningOutputWithContext(context.Context) ContainerVersioningOutput }
ContainerVersioningInput is an input type that accepts ContainerVersioningArgs and ContainerVersioningOutput values. You can construct a concrete instance of `ContainerVersioningInput` via:
ContainerVersioningArgs{...}
type ContainerVersioningOutput ¶
type ContainerVersioningOutput struct{ *pulumi.OutputState }
func (ContainerVersioningOutput) ElementType ¶
func (ContainerVersioningOutput) ElementType() reflect.Type
func (ContainerVersioningOutput) Location ¶
func (o ContainerVersioningOutput) Location() pulumi.StringOutput
Container in which versions will be stored.
func (ContainerVersioningOutput) ToContainerVersioningOutput ¶
func (o ContainerVersioningOutput) ToContainerVersioningOutput() ContainerVersioningOutput
func (ContainerVersioningOutput) ToContainerVersioningOutputWithContext ¶
func (o ContainerVersioningOutput) ToContainerVersioningOutputWithContext(ctx context.Context) ContainerVersioningOutput
func (ContainerVersioningOutput) ToContainerVersioningPtrOutput ¶
func (o ContainerVersioningOutput) ToContainerVersioningPtrOutput() ContainerVersioningPtrOutput
func (ContainerVersioningOutput) ToContainerVersioningPtrOutputWithContext ¶
func (o ContainerVersioningOutput) ToContainerVersioningPtrOutputWithContext(ctx context.Context) ContainerVersioningPtrOutput
func (ContainerVersioningOutput) Type ¶
func (o ContainerVersioningOutput) Type() pulumi.StringOutput
Versioning type which can be `versions` or `history` according to [Openstack documentation](https://docs.openstack.org/swift/latest/api/object_versioning.html).
type ContainerVersioningPtrInput ¶
type ContainerVersioningPtrInput interface { pulumi.Input ToContainerVersioningPtrOutput() ContainerVersioningPtrOutput ToContainerVersioningPtrOutputWithContext(context.Context) ContainerVersioningPtrOutput }
ContainerVersioningPtrInput is an input type that accepts ContainerVersioningArgs, ContainerVersioningPtr and ContainerVersioningPtrOutput values. You can construct a concrete instance of `ContainerVersioningPtrInput` via:
ContainerVersioningArgs{...} or: nil
func ContainerVersioningPtr ¶
func ContainerVersioningPtr(v *ContainerVersioningArgs) ContainerVersioningPtrInput
type ContainerVersioningPtrOutput ¶
type ContainerVersioningPtrOutput struct{ *pulumi.OutputState }
func (ContainerVersioningPtrOutput) Elem ¶
func (o ContainerVersioningPtrOutput) Elem() ContainerVersioningOutput
func (ContainerVersioningPtrOutput) ElementType ¶
func (ContainerVersioningPtrOutput) ElementType() reflect.Type
func (ContainerVersioningPtrOutput) Location ¶
func (o ContainerVersioningPtrOutput) Location() pulumi.StringPtrOutput
Container in which versions will be stored.
func (ContainerVersioningPtrOutput) ToContainerVersioningPtrOutput ¶
func (o ContainerVersioningPtrOutput) ToContainerVersioningPtrOutput() ContainerVersioningPtrOutput
func (ContainerVersioningPtrOutput) ToContainerVersioningPtrOutputWithContext ¶
func (o ContainerVersioningPtrOutput) ToContainerVersioningPtrOutputWithContext(ctx context.Context) ContainerVersioningPtrOutput
func (ContainerVersioningPtrOutput) Type ¶
func (o ContainerVersioningPtrOutput) Type() pulumi.StringPtrOutput
Versioning type which can be `versions` or `history` according to [Openstack documentation](https://docs.openstack.org/swift/latest/api/object_versioning.html).
type TempUrl ¶
type TempUrl struct { pulumi.CustomResourceState // The container name the object belongs to. Container pulumi.StringOutput `pulumi:"container"` // The method allowed when accessing this URL. // Valid values are `GET`, and `POST`. Default is `GET`. Method pulumi.StringPtrOutput `pulumi:"method"` // The object name the tempurl is for. Object pulumi.StringOutput `pulumi:"object"` // Whether to automatically regenerate the URL when // it has expired. If set to true, this will create a new resource with a new // ID and new URL. Defaults to false. Regenerate pulumi.BoolPtrOutput `pulumi:"regenerate"` // The region the tempurl is located in. Region pulumi.StringOutput `pulumi:"region"` Split pulumi.StringPtrOutput `pulumi:"split"` // The TTL, in seconds, for the URL. For how long it should // be valid. Ttl pulumi.IntOutput `pulumi:"ttl"` // The URL Url pulumi.StringOutput `pulumi:"url"` }
Use this resource to generate an OpenStack Object Storage temporary URL.
The temporary URL will be valid for as long as TTL is set to (in seconds). Once the URL has expired, it will no longer be valid, but the resource will remain in place. If you wish to automatically regenerate a URL, set the `regenerate` argument to `true`. This will create a new resource with a new ID and URL.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v2/go/openstack/objectstorage" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { container1, err := objectstorage.NewContainer(ctx, "container1", &objectstorage.ContainerArgs{ Metadata: pulumi.StringMap{ "Temp-URL-Key": pulumi.String("testkey"), }, }) if err != nil { return err } object1, err := objectstorage.NewContainerObject(ctx, "object1", &objectstorage.ContainerObjectArgs{ ContainerName: container1.Name, Content: pulumi.String("Hello, world!"), }) if err != nil { return err } _, err = objectstorage.NewTempUrl(ctx, "objTempurl", &objectstorage.TempUrlArgs{ Container: container1.Name, Method: pulumi.String("post"), Object: object1.Name, Ttl: pulumi.Int(20), }) if err != nil { return err } return nil }) }
```
func GetTempUrl ¶
func GetTempUrl(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TempUrlState, opts ...pulumi.ResourceOption) (*TempUrl, error)
GetTempUrl gets an existing TempUrl resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewTempUrl ¶
func NewTempUrl(ctx *pulumi.Context, name string, args *TempUrlArgs, opts ...pulumi.ResourceOption) (*TempUrl, error)
NewTempUrl registers a new resource with the given unique name, arguments, and options.
func (*TempUrl) ElementType ¶ added in v2.10.0
func (*TempUrl) ToTempUrlOutput ¶ added in v2.10.0
func (i *TempUrl) ToTempUrlOutput() TempUrlOutput
func (*TempUrl) ToTempUrlOutputWithContext ¶ added in v2.10.0
func (i *TempUrl) ToTempUrlOutputWithContext(ctx context.Context) TempUrlOutput
func (*TempUrl) ToTempUrlPtrOutput ¶ added in v2.14.1
func (i *TempUrl) ToTempUrlPtrOutput() TempUrlPtrOutput
func (*TempUrl) ToTempUrlPtrOutputWithContext ¶ added in v2.14.1
func (i *TempUrl) ToTempUrlPtrOutputWithContext(ctx context.Context) TempUrlPtrOutput
type TempUrlArgs ¶
type TempUrlArgs struct { // The container name the object belongs to. Container pulumi.StringInput // The method allowed when accessing this URL. // Valid values are `GET`, and `POST`. Default is `GET`. Method pulumi.StringPtrInput // The object name the tempurl is for. Object pulumi.StringInput // Whether to automatically regenerate the URL when // it has expired. If set to true, this will create a new resource with a new // ID and new URL. Defaults to false. Regenerate pulumi.BoolPtrInput // The region the tempurl is located in. Region pulumi.StringPtrInput Split pulumi.StringPtrInput // The TTL, in seconds, for the URL. For how long it should // be valid. Ttl pulumi.IntInput }
The set of arguments for constructing a TempUrl resource.
func (TempUrlArgs) ElementType ¶
func (TempUrlArgs) ElementType() reflect.Type
type TempUrlArray ¶ added in v2.14.1
type TempUrlArray []TempUrlInput
func (TempUrlArray) ElementType ¶ added in v2.14.1
func (TempUrlArray) ElementType() reflect.Type
func (TempUrlArray) ToTempUrlArrayOutput ¶ added in v2.14.1
func (i TempUrlArray) ToTempUrlArrayOutput() TempUrlArrayOutput
func (TempUrlArray) ToTempUrlArrayOutputWithContext ¶ added in v2.14.1
func (i TempUrlArray) ToTempUrlArrayOutputWithContext(ctx context.Context) TempUrlArrayOutput
type TempUrlArrayInput ¶ added in v2.14.1
type TempUrlArrayInput interface { pulumi.Input ToTempUrlArrayOutput() TempUrlArrayOutput ToTempUrlArrayOutputWithContext(context.Context) TempUrlArrayOutput }
TempUrlArrayInput is an input type that accepts TempUrlArray and TempUrlArrayOutput values. You can construct a concrete instance of `TempUrlArrayInput` via:
TempUrlArray{ TempUrlArgs{...} }
type TempUrlArrayOutput ¶ added in v2.14.1
type TempUrlArrayOutput struct{ *pulumi.OutputState }
func (TempUrlArrayOutput) ElementType ¶ added in v2.14.1
func (TempUrlArrayOutput) ElementType() reflect.Type
func (TempUrlArrayOutput) Index ¶ added in v2.14.1
func (o TempUrlArrayOutput) Index(i pulumi.IntInput) TempUrlOutput
func (TempUrlArrayOutput) ToTempUrlArrayOutput ¶ added in v2.14.1
func (o TempUrlArrayOutput) ToTempUrlArrayOutput() TempUrlArrayOutput
func (TempUrlArrayOutput) ToTempUrlArrayOutputWithContext ¶ added in v2.14.1
func (o TempUrlArrayOutput) ToTempUrlArrayOutputWithContext(ctx context.Context) TempUrlArrayOutput
type TempUrlInput ¶ added in v2.10.0
type TempUrlInput interface { pulumi.Input ToTempUrlOutput() TempUrlOutput ToTempUrlOutputWithContext(ctx context.Context) TempUrlOutput }
type TempUrlMap ¶ added in v2.14.1
type TempUrlMap map[string]TempUrlInput
func (TempUrlMap) ElementType ¶ added in v2.14.1
func (TempUrlMap) ElementType() reflect.Type
func (TempUrlMap) ToTempUrlMapOutput ¶ added in v2.14.1
func (i TempUrlMap) ToTempUrlMapOutput() TempUrlMapOutput
func (TempUrlMap) ToTempUrlMapOutputWithContext ¶ added in v2.14.1
func (i TempUrlMap) ToTempUrlMapOutputWithContext(ctx context.Context) TempUrlMapOutput
type TempUrlMapInput ¶ added in v2.14.1
type TempUrlMapInput interface { pulumi.Input ToTempUrlMapOutput() TempUrlMapOutput ToTempUrlMapOutputWithContext(context.Context) TempUrlMapOutput }
TempUrlMapInput is an input type that accepts TempUrlMap and TempUrlMapOutput values. You can construct a concrete instance of `TempUrlMapInput` via:
TempUrlMap{ "key": TempUrlArgs{...} }
type TempUrlMapOutput ¶ added in v2.14.1
type TempUrlMapOutput struct{ *pulumi.OutputState }
func (TempUrlMapOutput) ElementType ¶ added in v2.14.1
func (TempUrlMapOutput) ElementType() reflect.Type
func (TempUrlMapOutput) MapIndex ¶ added in v2.14.1
func (o TempUrlMapOutput) MapIndex(k pulumi.StringInput) TempUrlOutput
func (TempUrlMapOutput) ToTempUrlMapOutput ¶ added in v2.14.1
func (o TempUrlMapOutput) ToTempUrlMapOutput() TempUrlMapOutput
func (TempUrlMapOutput) ToTempUrlMapOutputWithContext ¶ added in v2.14.1
func (o TempUrlMapOutput) ToTempUrlMapOutputWithContext(ctx context.Context) TempUrlMapOutput
type TempUrlOutput ¶ added in v2.10.0
type TempUrlOutput struct {
*pulumi.OutputState
}
func (TempUrlOutput) ElementType ¶ added in v2.10.0
func (TempUrlOutput) ElementType() reflect.Type
func (TempUrlOutput) ToTempUrlOutput ¶ added in v2.10.0
func (o TempUrlOutput) ToTempUrlOutput() TempUrlOutput
func (TempUrlOutput) ToTempUrlOutputWithContext ¶ added in v2.10.0
func (o TempUrlOutput) ToTempUrlOutputWithContext(ctx context.Context) TempUrlOutput
func (TempUrlOutput) ToTempUrlPtrOutput ¶ added in v2.14.1
func (o TempUrlOutput) ToTempUrlPtrOutput() TempUrlPtrOutput
func (TempUrlOutput) ToTempUrlPtrOutputWithContext ¶ added in v2.14.1
func (o TempUrlOutput) ToTempUrlPtrOutputWithContext(ctx context.Context) TempUrlPtrOutput
type TempUrlPtrInput ¶ added in v2.14.1
type TempUrlPtrInput interface { pulumi.Input ToTempUrlPtrOutput() TempUrlPtrOutput ToTempUrlPtrOutputWithContext(ctx context.Context) TempUrlPtrOutput }
type TempUrlPtrOutput ¶ added in v2.14.1
type TempUrlPtrOutput struct {
*pulumi.OutputState
}
func (TempUrlPtrOutput) ElementType ¶ added in v2.14.1
func (TempUrlPtrOutput) ElementType() reflect.Type
func (TempUrlPtrOutput) ToTempUrlPtrOutput ¶ added in v2.14.1
func (o TempUrlPtrOutput) ToTempUrlPtrOutput() TempUrlPtrOutput
func (TempUrlPtrOutput) ToTempUrlPtrOutputWithContext ¶ added in v2.14.1
func (o TempUrlPtrOutput) ToTempUrlPtrOutputWithContext(ctx context.Context) TempUrlPtrOutput
type TempUrlState ¶
type TempUrlState struct { // The container name the object belongs to. Container pulumi.StringPtrInput // The method allowed when accessing this URL. // Valid values are `GET`, and `POST`. Default is `GET`. Method pulumi.StringPtrInput // The object name the tempurl is for. Object pulumi.StringPtrInput // Whether to automatically regenerate the URL when // it has expired. If set to true, this will create a new resource with a new // ID and new URL. Defaults to false. Regenerate pulumi.BoolPtrInput // The region the tempurl is located in. Region pulumi.StringPtrInput Split pulumi.StringPtrInput // The TTL, in seconds, for the URL. For how long it should // be valid. Ttl pulumi.IntPtrInput // The URL Url pulumi.StringPtrInput }
func (TempUrlState) ElementType ¶
func (TempUrlState) ElementType() reflect.Type