objectstorage

package
v4.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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"`
	// The storage policy to be used for the container.
	// Changing this creates a new container.
	StoragePolicy pulumi.StringOutput `pulumi:"storagePolicy"`
	// A boolean that can enable or disable object
	// versioning. The default value is `false`. To use this feature, your Swift
	// version must be 2.24 or higher (as described in the [OpenStack Swift Ussuri release notes](https://docs.openstack.org/releasenotes/swift/ussuri.html#relnotes-2-24-0-stable-ussuri)),
	// and a cloud administrator must have set the `allowObjectVersioning = true`
	// configuration option in Swift. If you cannot set this versioning type, you may
	// want to consider using `versioningLegacy` instead.
	Versioning pulumi.BoolPtrOutput `pulumi:"versioning"`
	// Enable legacy object versioning. The structure is described below.
	//
	// Deprecated: Use newer "versioning" implementation
	VersioningLegacy ContainerVersioningLegacyPtrOutput `pulumi:"versioningLegacy"`
}

Manages a V1 container resource within OpenStack.

## Example Usage

### Basic Container

```go package main

import (

"github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack/objectstorage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := objectstorage.NewContainer(ctx, "container_1", &objectstorage.ContainerArgs{
			Region: pulumi.String("RegionOne"),
			Name:   pulumi.String("tf-test-container-1"),
			Metadata: pulumi.Map{
				"test": pulumi.Any("true"),
			},
			ContentType: pulumi.String("application/json"),
			Versioning:  pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

### Basic Container with legacy versioning

```go package main

import (

"github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack/objectstorage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := objectstorage.NewContainer(ctx, "container_1", &objectstorage.ContainerArgs{
			Region: pulumi.String("RegionOne"),
			Name:   pulumi.String("tf-test-container-1"),
			Metadata: pulumi.Map{
				"test": pulumi.Any("true"),
			},
			ContentType: pulumi.String("application/json"),
			VersioningLegacy: &objectstorage.ContainerVersioningLegacyArgs{
				Type:     pulumi.String("versions"),
				Location: pulumi.String("tf-test-container-versions"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

### Global Read Access

```go package main

import (

"github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack/objectstorage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Requires that a user know the object name they are attempting to download
		_, err := objectstorage.NewContainer(ctx, "container_1", &objectstorage.ContainerArgs{
			Region:        pulumi.String("RegionOne"),
			Name:          pulumi.String("tf-test-container-1"),
			ContainerRead: pulumi.String(".r:*"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

### Global Read and List Access

```go package main

import (

"github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack/objectstorage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Any user can read any object, and list all objects in the container
		_, err := objectstorage.NewContainer(ctx, "container_1", &objectstorage.ContainerArgs{
			Region:        pulumi.String("RegionOne"),
			Name:          pulumi.String("tf-test-container-1"),
			ContainerRead: pulumi.String(".r:*,.rlistings"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

### Write-Only Access for a User

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack/identity"
"github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack/objectstorage"
"github.com/pulumi/pulumi/sdk/v3/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
		}
		// The named user can only upload objects, not read objects or list the container
		_, err = objectstorage.NewContainer(ctx, "container_1", &objectstorage.ContainerArgs{
			Region:         pulumi.String("RegionOne"),
			Name:           pulumi.String("tf-test-container-1"),
			ContainerRead:  pulumi.String(fmt.Sprintf(".r:-%v", username)),
			ContainerWrite: pulumi.String(fmt.Sprintf("%v:%v", current.ProjectId, username)),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

This resource can be imported by specifying the name of the container:

Some attributes can't be imported : * `force_destroy` * `content_type` * `metadata` * `container_sync_to` * `container_sync_key`

So you'll have to `pulumi preview` and `pulumi up` after the import to fix those missing attributes.

```sh $ pulumi import openstack:objectstorage/container:Container container_1 container_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

func (*Container) ElementType() reflect.Type

func (*Container) ToContainerOutput

func (i *Container) ToContainerOutput() ContainerOutput

func (*Container) ToContainerOutputWithContext

func (i *Container) ToContainerOutputWithContext(ctx context.Context) ContainerOutput

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
	// The storage policy to be used for the container.
	// Changing this creates a new container.
	StoragePolicy pulumi.StringPtrInput
	// A boolean that can enable or disable object
	// versioning. The default value is `false`. To use this feature, your Swift
	// version must be 2.24 or higher (as described in the [OpenStack Swift Ussuri release notes](https://docs.openstack.org/releasenotes/swift/ussuri.html#relnotes-2-24-0-stable-ussuri)),
	// and a cloud administrator must have set the `allowObjectVersioning = true`
	// configuration option in Swift. If you cannot set this versioning type, you may
	// want to consider using `versioningLegacy` instead.
	Versioning pulumi.BoolPtrInput
	// Enable legacy object versioning. The structure is described below.
	//
	// Deprecated: Use newer "versioning" implementation
	VersioningLegacy ContainerVersioningLegacyPtrInput
}

The set of arguments for constructing a Container resource.

func (ContainerArgs) ElementType

func (ContainerArgs) ElementType() reflect.Type

type ContainerArray

type ContainerArray []ContainerInput

func (ContainerArray) ElementType

func (ContainerArray) ElementType() reflect.Type

func (ContainerArray) ToContainerArrayOutput

func (i ContainerArray) ToContainerArrayOutput() ContainerArrayOutput

func (ContainerArray) ToContainerArrayOutputWithContext

func (i ContainerArray) ToContainerArrayOutputWithContext(ctx context.Context) ContainerArrayOutput

type ContainerArrayInput

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

type ContainerArrayOutput struct{ *pulumi.OutputState }

func (ContainerArrayOutput) ElementType

func (ContainerArrayOutput) ElementType() reflect.Type

func (ContainerArrayOutput) Index

func (ContainerArrayOutput) ToContainerArrayOutput

func (o ContainerArrayOutput) ToContainerArrayOutput() ContainerArrayOutput

func (ContainerArrayOutput) ToContainerArrayOutputWithContext

func (o ContainerArrayOutput) ToContainerArrayOutputWithContext(ctx context.Context) ContainerArrayOutput

type ContainerInput

type ContainerInput interface {
	pulumi.Input

	ToContainerOutput() ContainerOutput
	ToContainerOutputWithContext(ctx context.Context) ContainerOutput
}

type ContainerMap

type ContainerMap map[string]ContainerInput

func (ContainerMap) ElementType

func (ContainerMap) ElementType() reflect.Type

func (ContainerMap) ToContainerMapOutput

func (i ContainerMap) ToContainerMapOutput() ContainerMapOutput

func (ContainerMap) ToContainerMapOutputWithContext

func (i ContainerMap) ToContainerMapOutputWithContext(ctx context.Context) ContainerMapOutput

type ContainerMapInput

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

type ContainerMapOutput struct{ *pulumi.OutputState }

func (ContainerMapOutput) ElementType

func (ContainerMapOutput) ElementType() reflect.Type

func (ContainerMapOutput) MapIndex

func (ContainerMapOutput) ToContainerMapOutput

func (o ContainerMapOutput) ToContainerMapOutput() ContainerMapOutput

func (ContainerMapOutput) ToContainerMapOutputWithContext

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 (

"github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack/objectstorage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		container1, err := objectstorage.NewContainer(ctx, "container_1", &objectstorage.ContainerArgs{
			Region: pulumi.String("RegionOne"),
			Name:   pulumi.String("tf-test-container-1"),
			Metadata: pulumi.Map{
				pulumi.Any(map[string]interface{}{
					"test": "true",
				}),
			},
			ContentType: pulumi.String("application/json"),
		})
		if err != nil {
			return err
		}
		_, err = objectstorage.NewContainerObject(ctx, "doc_1", &objectstorage.ContainerObjectArgs{
			Region:        pulumi.String("RegionOne"),
			ContainerName: container1.Name,
			Name:          pulumi.String("test/default.json"),
			Metadata: pulumi.Map{
				pulumi.Any(map[string]interface{}{
					"test": "true",
				}),
			},
			ContentType: pulumi.String("application/json"),
			Content:     pulumi.String("               {\n                 \"foo\" : \"bar\"\n               }\n"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

### Example with content from file

```go package main

import (

"github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack/objectstorage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		container1, err := objectstorage.NewContainer(ctx, "container_1", &objectstorage.ContainerArgs{
			Region: pulumi.String("RegionOne"),
			Name:   pulumi.String("tf-test-container-1"),
			Metadata: pulumi.Map{
				pulumi.Any(map[string]interface{}{
					"test": "true",
				}),
			},
			ContentType: pulumi.String("application/json"),
		})
		if err != nil {
			return err
		}
		_, err = objectstorage.NewContainerObject(ctx, "doc_1", &objectstorage.ContainerObjectArgs{
			Region:        pulumi.String("RegionOne"),
			ContainerName: container1.Name,
			Name:          pulumi.String("test/default.json"),
			Metadata: pulumi.Map{
				pulumi.Any(map[string]interface{}{
					"test": "true",
				}),
			},
			ContentType: pulumi.String("application/json"),
			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

func (*ContainerObject) ElementType() reflect.Type

func (*ContainerObject) ToContainerObjectOutput

func (i *ContainerObject) ToContainerObjectOutput() ContainerObjectOutput

func (*ContainerObject) ToContainerObjectOutputWithContext

func (i *ContainerObject) ToContainerObjectOutputWithContext(ctx context.Context) ContainerObjectOutput

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

type ContainerObjectArray []ContainerObjectInput

func (ContainerObjectArray) ElementType

func (ContainerObjectArray) ElementType() reflect.Type

func (ContainerObjectArray) ToContainerObjectArrayOutput

func (i ContainerObjectArray) ToContainerObjectArrayOutput() ContainerObjectArrayOutput

func (ContainerObjectArray) ToContainerObjectArrayOutputWithContext

func (i ContainerObjectArray) ToContainerObjectArrayOutputWithContext(ctx context.Context) ContainerObjectArrayOutput

type ContainerObjectArrayInput

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

type ContainerObjectArrayOutput struct{ *pulumi.OutputState }

func (ContainerObjectArrayOutput) ElementType

func (ContainerObjectArrayOutput) ElementType() reflect.Type

func (ContainerObjectArrayOutput) Index

func (ContainerObjectArrayOutput) ToContainerObjectArrayOutput

func (o ContainerObjectArrayOutput) ToContainerObjectArrayOutput() ContainerObjectArrayOutput

func (ContainerObjectArrayOutput) ToContainerObjectArrayOutputWithContext

func (o ContainerObjectArrayOutput) ToContainerObjectArrayOutputWithContext(ctx context.Context) ContainerObjectArrayOutput

type ContainerObjectInput

type ContainerObjectInput interface {
	pulumi.Input

	ToContainerObjectOutput() ContainerObjectOutput
	ToContainerObjectOutputWithContext(ctx context.Context) ContainerObjectOutput
}

type ContainerObjectMap

type ContainerObjectMap map[string]ContainerObjectInput

func (ContainerObjectMap) ElementType

func (ContainerObjectMap) ElementType() reflect.Type

func (ContainerObjectMap) ToContainerObjectMapOutput

func (i ContainerObjectMap) ToContainerObjectMapOutput() ContainerObjectMapOutput

func (ContainerObjectMap) ToContainerObjectMapOutputWithContext

func (i ContainerObjectMap) ToContainerObjectMapOutputWithContext(ctx context.Context) ContainerObjectMapOutput

type ContainerObjectMapInput

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

type ContainerObjectMapOutput struct{ *pulumi.OutputState }

func (ContainerObjectMapOutput) ElementType

func (ContainerObjectMapOutput) ElementType() reflect.Type

func (ContainerObjectMapOutput) MapIndex

func (ContainerObjectMapOutput) ToContainerObjectMapOutput

func (o ContainerObjectMapOutput) ToContainerObjectMapOutput() ContainerObjectMapOutput

func (ContainerObjectMapOutput) ToContainerObjectMapOutputWithContext

func (o ContainerObjectMapOutput) ToContainerObjectMapOutputWithContext(ctx context.Context) ContainerObjectMapOutput

type ContainerObjectOutput

type ContainerObjectOutput struct{ *pulumi.OutputState }

func (ContainerObjectOutput) ContainerName

func (o ContainerObjectOutput) ContainerName() pulumi.StringOutput

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.

func (ContainerObjectOutput) Content

A string representing the content of the object. Conflicts with `source` and `copyFrom`.

func (ContainerObjectOutput) ContentDisposition

func (o ContainerObjectOutput) ContentDisposition() pulumi.StringOutput

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.

func (ContainerObjectOutput) ContentEncoding

func (o ContainerObjectOutput) ContentEncoding() pulumi.StringOutput

A string representing the value of the Content-Encoding metadata.

func (ContainerObjectOutput) ContentLength

func (o ContainerObjectOutput) ContentLength() pulumi.IntOutput

If the operation succeeds, this value is zero (0) or the length of informational or error text in the response body.

func (ContainerObjectOutput) ContentType

func (o ContainerObjectOutput) ContentType() pulumi.StringOutput

A string which sets the MIME type for the object.

func (ContainerObjectOutput) CopyFrom

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`.

func (ContainerObjectOutput) Date

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.

func (ContainerObjectOutput) DeleteAfter

func (o ContainerObjectOutput) DeleteAfter() pulumi.IntPtrOutput

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.

func (ContainerObjectOutput) DeleteAt

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.

func (ContainerObjectOutput) DetectContentType

func (o ContainerObjectOutput) DetectContentType() pulumi.BoolPtrOutput

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.

func (ContainerObjectOutput) ElementType

func (ContainerObjectOutput) ElementType() reflect.Type

func (ContainerObjectOutput) Etag

Used to trigger updates. The only meaningful value is ${md5(file("path/to/file"))}.

func (ContainerObjectOutput) LastModified

func (o ContainerObjectOutput) LastModified() pulumi.StringOutput

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.

func (ContainerObjectOutput) Metadata

func (o ContainerObjectOutput) Metadata() pulumi.MapOutput

func (ContainerObjectOutput) Name

A unique name for the object.

func (ContainerObjectOutput) ObjectManifest

func (o ContainerObjectOutput) ObjectManifest() pulumi.StringOutput

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.

func (ContainerObjectOutput) Region

The region in which to create the container. If omitted, the `region` argument of the provider is used. Changing this creates a new container.

func (ContainerObjectOutput) Source

A string representing the local path of a file which will be used as the object's content. Conflicts with `source` and `copyFrom`.

func (ContainerObjectOutput) ToContainerObjectOutput

func (o ContainerObjectOutput) ToContainerObjectOutput() ContainerObjectOutput

func (ContainerObjectOutput) ToContainerObjectOutputWithContext

func (o ContainerObjectOutput) ToContainerObjectOutputWithContext(ctx context.Context) ContainerObjectOutput

func (ContainerObjectOutput) TransId

A unique transaction ID for this request. Your service provider might need this value if you report a problem.

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

type ContainerOutput struct{ *pulumi.OutputState }

func (ContainerOutput) ContainerRead

func (o ContainerOutput) ContainerRead() pulumi.StringPtrOutput

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.

func (ContainerOutput) ContainerSyncKey

func (o ContainerOutput) ContainerSyncKey() pulumi.StringPtrOutput

The secret key for container synchronization. Changing this updates container synchronization.

func (ContainerOutput) ContainerSyncTo

func (o ContainerOutput) ContainerSyncTo() pulumi.StringPtrOutput

The destination for container synchronization. Changing this updates container synchronization.

func (ContainerOutput) ContainerWrite

func (o ContainerOutput) ContainerWrite() pulumi.StringPtrOutput

Sets an ACL that grants write access. Changing this updates the access control list write access.

func (ContainerOutput) ContentType

func (o ContainerOutput) ContentType() pulumi.StringPtrOutput

The MIME type for the container. Changing this updates the MIME type.

func (ContainerOutput) ElementType

func (ContainerOutput) ElementType() reflect.Type

func (ContainerOutput) ForceDestroy

func (o ContainerOutput) ForceDestroy() pulumi.BoolPtrOutput

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.

func (ContainerOutput) Metadata

func (o ContainerOutput) Metadata() pulumi.MapOutput

Custom key/value pairs to associate with the container. Changing this updates the existing container metadata.

func (ContainerOutput) Name

A unique name for the container. Changing this creates a new container.

func (ContainerOutput) Region

func (o ContainerOutput) Region() pulumi.StringOutput

The region in which to create the container. If omitted, the `region` argument of the provider is used. Changing this creates a new container.

func (ContainerOutput) StoragePolicy

func (o ContainerOutput) StoragePolicy() pulumi.StringOutput

The storage policy to be used for the container. Changing this creates a new container.

func (ContainerOutput) ToContainerOutput

func (o ContainerOutput) ToContainerOutput() ContainerOutput

func (ContainerOutput) ToContainerOutputWithContext

func (o ContainerOutput) ToContainerOutputWithContext(ctx context.Context) ContainerOutput

func (ContainerOutput) Versioning

func (o ContainerOutput) Versioning() pulumi.BoolPtrOutput

A boolean that can enable or disable object versioning. The default value is `false`. To use this feature, your Swift version must be 2.24 or higher (as described in the [OpenStack Swift Ussuri release notes](https://docs.openstack.org/releasenotes/swift/ussuri.html#relnotes-2-24-0-stable-ussuri)), and a cloud administrator must have set the `allowObjectVersioning = true` configuration option in Swift. If you cannot set this versioning type, you may want to consider using `versioningLegacy` instead.

func (ContainerOutput) VersioningLegacy deprecated

Enable legacy object versioning. The structure is described below.

Deprecated: Use newer "versioning" implementation

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
	// The storage policy to be used for the container.
	// Changing this creates a new container.
	StoragePolicy pulumi.StringPtrInput
	// A boolean that can enable or disable object
	// versioning. The default value is `false`. To use this feature, your Swift
	// version must be 2.24 or higher (as described in the [OpenStack Swift Ussuri release notes](https://docs.openstack.org/releasenotes/swift/ussuri.html#relnotes-2-24-0-stable-ussuri)),
	// and a cloud administrator must have set the `allowObjectVersioning = true`
	// configuration option in Swift. If you cannot set this versioning type, you may
	// want to consider using `versioningLegacy` instead.
	Versioning pulumi.BoolPtrInput
	// Enable legacy object versioning. The structure is described below.
	//
	// Deprecated: Use newer "versioning" implementation
	VersioningLegacy ContainerVersioningLegacyPtrInput
}

func (ContainerState) ElementType

func (ContainerState) ElementType() reflect.Type

type ContainerVersioningLegacy

type ContainerVersioningLegacy struct {
	Location string `pulumi:"location"`
	Type     string `pulumi:"type"`
}

type ContainerVersioningLegacyArgs

type ContainerVersioningLegacyArgs struct {
	Location pulumi.StringInput `pulumi:"location"`
	Type     pulumi.StringInput `pulumi:"type"`
}

func (ContainerVersioningLegacyArgs) ElementType

func (ContainerVersioningLegacyArgs) ToContainerVersioningLegacyOutput

func (i ContainerVersioningLegacyArgs) ToContainerVersioningLegacyOutput() ContainerVersioningLegacyOutput

func (ContainerVersioningLegacyArgs) ToContainerVersioningLegacyOutputWithContext

func (i ContainerVersioningLegacyArgs) ToContainerVersioningLegacyOutputWithContext(ctx context.Context) ContainerVersioningLegacyOutput

func (ContainerVersioningLegacyArgs) ToContainerVersioningLegacyPtrOutput

func (i ContainerVersioningLegacyArgs) ToContainerVersioningLegacyPtrOutput() ContainerVersioningLegacyPtrOutput

func (ContainerVersioningLegacyArgs) ToContainerVersioningLegacyPtrOutputWithContext

func (i ContainerVersioningLegacyArgs) ToContainerVersioningLegacyPtrOutputWithContext(ctx context.Context) ContainerVersioningLegacyPtrOutput

type ContainerVersioningLegacyInput

type ContainerVersioningLegacyInput interface {
	pulumi.Input

	ToContainerVersioningLegacyOutput() ContainerVersioningLegacyOutput
	ToContainerVersioningLegacyOutputWithContext(context.Context) ContainerVersioningLegacyOutput
}

ContainerVersioningLegacyInput is an input type that accepts ContainerVersioningLegacyArgs and ContainerVersioningLegacyOutput values. You can construct a concrete instance of `ContainerVersioningLegacyInput` via:

ContainerVersioningLegacyArgs{...}

type ContainerVersioningLegacyOutput

type ContainerVersioningLegacyOutput struct{ *pulumi.OutputState }

func (ContainerVersioningLegacyOutput) ElementType

func (ContainerVersioningLegacyOutput) Location

func (ContainerVersioningLegacyOutput) ToContainerVersioningLegacyOutput

func (o ContainerVersioningLegacyOutput) ToContainerVersioningLegacyOutput() ContainerVersioningLegacyOutput

func (ContainerVersioningLegacyOutput) ToContainerVersioningLegacyOutputWithContext

func (o ContainerVersioningLegacyOutput) ToContainerVersioningLegacyOutputWithContext(ctx context.Context) ContainerVersioningLegacyOutput

func (ContainerVersioningLegacyOutput) ToContainerVersioningLegacyPtrOutput

func (o ContainerVersioningLegacyOutput) ToContainerVersioningLegacyPtrOutput() ContainerVersioningLegacyPtrOutput

func (ContainerVersioningLegacyOutput) ToContainerVersioningLegacyPtrOutputWithContext

func (o ContainerVersioningLegacyOutput) ToContainerVersioningLegacyPtrOutputWithContext(ctx context.Context) ContainerVersioningLegacyPtrOutput

func (ContainerVersioningLegacyOutput) Type

type ContainerVersioningLegacyPtrInput

type ContainerVersioningLegacyPtrInput interface {
	pulumi.Input

	ToContainerVersioningLegacyPtrOutput() ContainerVersioningLegacyPtrOutput
	ToContainerVersioningLegacyPtrOutputWithContext(context.Context) ContainerVersioningLegacyPtrOutput
}

ContainerVersioningLegacyPtrInput is an input type that accepts ContainerVersioningLegacyArgs, ContainerVersioningLegacyPtr and ContainerVersioningLegacyPtrOutput values. You can construct a concrete instance of `ContainerVersioningLegacyPtrInput` via:

        ContainerVersioningLegacyArgs{...}

or:

        nil

type ContainerVersioningLegacyPtrOutput

type ContainerVersioningLegacyPtrOutput struct{ *pulumi.OutputState }

func (ContainerVersioningLegacyPtrOutput) Elem

func (ContainerVersioningLegacyPtrOutput) ElementType

func (ContainerVersioningLegacyPtrOutput) Location

func (ContainerVersioningLegacyPtrOutput) ToContainerVersioningLegacyPtrOutput

func (o ContainerVersioningLegacyPtrOutput) ToContainerVersioningLegacyPtrOutput() ContainerVersioningLegacyPtrOutput

func (ContainerVersioningLegacyPtrOutput) ToContainerVersioningLegacyPtrOutputWithContext

func (o ContainerVersioningLegacyPtrOutput) ToContainerVersioningLegacyPtrOutputWithContext(ctx context.Context) ContainerVersioningLegacyPtrOutput

func (ContainerVersioningLegacyPtrOutput) Type

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/v4/go/openstack/objectstorage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		container1, err := objectstorage.NewContainer(ctx, "container_1", &objectstorage.ContainerArgs{
			Name: pulumi.String("test"),
			Metadata: pulumi.Map{
				"Temp-URL-Key": pulumi.Any("testkey"),
			},
		})
		if err != nil {
			return err
		}
		object1, err := objectstorage.NewContainerObject(ctx, "object_1", &objectstorage.ContainerObjectArgs{
			ContainerName: container1.Name,
			Name:          pulumi.String("test"),
			Content:       pulumi.String("Hello, world!"),
		})
		if err != nil {
			return err
		}
		_, err = objectstorage.NewTempUrl(ctx, "obj_tempurl", &objectstorage.TempUrlArgs{
			Container: container1.Name,
			Object:    object1.Name,
			Method:    pulumi.String("post"),
			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

func (*TempUrl) ElementType() reflect.Type

func (*TempUrl) ToTempUrlOutput

func (i *TempUrl) ToTempUrlOutput() TempUrlOutput

func (*TempUrl) ToTempUrlOutputWithContext

func (i *TempUrl) ToTempUrlOutputWithContext(ctx context.Context) TempUrlOutput

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

type TempUrlArray []TempUrlInput

func (TempUrlArray) ElementType

func (TempUrlArray) ElementType() reflect.Type

func (TempUrlArray) ToTempUrlArrayOutput

func (i TempUrlArray) ToTempUrlArrayOutput() TempUrlArrayOutput

func (TempUrlArray) ToTempUrlArrayOutputWithContext

func (i TempUrlArray) ToTempUrlArrayOutputWithContext(ctx context.Context) TempUrlArrayOutput

type TempUrlArrayInput

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

type TempUrlArrayOutput struct{ *pulumi.OutputState }

func (TempUrlArrayOutput) ElementType

func (TempUrlArrayOutput) ElementType() reflect.Type

func (TempUrlArrayOutput) Index

func (TempUrlArrayOutput) ToTempUrlArrayOutput

func (o TempUrlArrayOutput) ToTempUrlArrayOutput() TempUrlArrayOutput

func (TempUrlArrayOutput) ToTempUrlArrayOutputWithContext

func (o TempUrlArrayOutput) ToTempUrlArrayOutputWithContext(ctx context.Context) TempUrlArrayOutput

type TempUrlInput

type TempUrlInput interface {
	pulumi.Input

	ToTempUrlOutput() TempUrlOutput
	ToTempUrlOutputWithContext(ctx context.Context) TempUrlOutput
}

type TempUrlMap

type TempUrlMap map[string]TempUrlInput

func (TempUrlMap) ElementType

func (TempUrlMap) ElementType() reflect.Type

func (TempUrlMap) ToTempUrlMapOutput

func (i TempUrlMap) ToTempUrlMapOutput() TempUrlMapOutput

func (TempUrlMap) ToTempUrlMapOutputWithContext

func (i TempUrlMap) ToTempUrlMapOutputWithContext(ctx context.Context) TempUrlMapOutput

type TempUrlMapInput

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

type TempUrlMapOutput struct{ *pulumi.OutputState }

func (TempUrlMapOutput) ElementType

func (TempUrlMapOutput) ElementType() reflect.Type

func (TempUrlMapOutput) MapIndex

func (TempUrlMapOutput) ToTempUrlMapOutput

func (o TempUrlMapOutput) ToTempUrlMapOutput() TempUrlMapOutput

func (TempUrlMapOutput) ToTempUrlMapOutputWithContext

func (o TempUrlMapOutput) ToTempUrlMapOutputWithContext(ctx context.Context) TempUrlMapOutput

type TempUrlOutput

type TempUrlOutput struct{ *pulumi.OutputState }

func (TempUrlOutput) Container

func (o TempUrlOutput) Container() pulumi.StringOutput

The container name the object belongs to.

func (TempUrlOutput) ElementType

func (TempUrlOutput) ElementType() reflect.Type

func (TempUrlOutput) Method

The method allowed when accessing this URL. Valid values are `GET`, and `POST`. Default is `GET`.

func (TempUrlOutput) Object

func (o TempUrlOutput) Object() pulumi.StringOutput

The object name the tempurl is for.

func (TempUrlOutput) Regenerate

func (o TempUrlOutput) Regenerate() pulumi.BoolPtrOutput

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.

func (TempUrlOutput) Region

func (o TempUrlOutput) Region() pulumi.StringOutput

The region the tempurl is located in.

func (TempUrlOutput) Split

func (TempUrlOutput) ToTempUrlOutput

func (o TempUrlOutput) ToTempUrlOutput() TempUrlOutput

func (TempUrlOutput) ToTempUrlOutputWithContext

func (o TempUrlOutput) ToTempUrlOutputWithContext(ctx context.Context) TempUrlOutput

func (TempUrlOutput) Ttl

func (o TempUrlOutput) Ttl() pulumi.IntOutput

The TTL, in seconds, for the URL. For how long it should be valid.

func (TempUrlOutput) Url

The URL

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL