mediastore

package
v4.22.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 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

	// The ARN of the container.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// The DNS endpoint of the container.
	Endpoint pulumi.StringOutput `pulumi:"endpoint"`
	// The name of the container. Must contain alphanumeric characters or underscores.
	Name pulumi.StringOutput `pulumi:"name"`
	// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// A map of tags assigned to the resource, including those inherited from the provider .
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
}

Provides a MediaStore Container.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/mediastore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := mediastore.NewContainer(ctx, "example", nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

MediaStore Container can be imported using the MediaStore Container Name, e.g.

```sh

$ pulumi import aws:mediastore/container:Container example example

```

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

func (*Container) ToContainerPtrOutput

func (i *Container) ToContainerPtrOutput() ContainerPtrOutput

func (*Container) ToContainerPtrOutputWithContext

func (i *Container) ToContainerPtrOutputWithContext(ctx context.Context) ContainerPtrOutput

type ContainerArgs

type ContainerArgs struct {
	// The name of the container. Must contain alphanumeric characters or underscores.
	Name pulumi.StringPtrInput
	// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapInput
}

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 ContainerOutput

type ContainerOutput struct{ *pulumi.OutputState }

func (ContainerOutput) ElementType

func (ContainerOutput) ElementType() reflect.Type

func (ContainerOutput) ToContainerOutput

func (o ContainerOutput) ToContainerOutput() ContainerOutput

func (ContainerOutput) ToContainerOutputWithContext

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

func (ContainerOutput) ToContainerPtrOutput

func (o ContainerOutput) ToContainerPtrOutput() ContainerPtrOutput

func (ContainerOutput) ToContainerPtrOutputWithContext

func (o ContainerOutput) ToContainerPtrOutputWithContext(ctx context.Context) ContainerPtrOutput

type ContainerPolicy

type ContainerPolicy struct {
	pulumi.CustomResourceState

	// The name of the container.
	ContainerName pulumi.StringOutput `pulumi:"containerName"`
	// The contents of the policy.
	Policy pulumi.StringOutput `pulumi:"policy"`
}

Provides a MediaStore Container Policy.

## Example Usage

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-aws/sdk/v4/go/aws"
"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/mediastore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		currentRegion, err := aws.GetRegion(ctx, nil, nil)
		if err != nil {
			return err
		}
		currentCallerIdentity, err := aws.GetCallerIdentity(ctx, nil, nil)
		if err != nil {
			return err
		}
		exampleContainer, err := mediastore.NewContainer(ctx, "exampleContainer", nil)
		if err != nil {
			return err
		}
		_, err = mediastore.NewContainerPolicy(ctx, "exampleContainerPolicy", &mediastore.ContainerPolicyArgs{
			ContainerName: exampleContainer.Name,
			Policy: exampleContainer.Name.ApplyT(func(name string) (string, error) {
				return fmt.Sprintf("%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v", "{\n", "	\"Version\": \"2012-10-17\",\n", "	\"Statement\": [{\n", "		\"Sid\": \"MediaStoreFullAccess\",\n", "		\"Action\": [ \"mediastore:*\" ],\n", "		\"Principal\": {\"AWS\" : \"arn:aws:iam::", currentCallerIdentity.AccountId, ":root\"},\n", "		\"Effect\": \"Allow\",\n", "		\"Resource\": \"arn:aws:mediastore:", currentRegion.Name, ":", currentCallerIdentity.AccountId, ":container/", name, "/*\",\n", "		\"Condition\": {\n", "			\"Bool\": { \"aws:SecureTransport\": \"true\" }\n", "		}\n", "	}]\n", "}\n"), nil
			}).(pulumi.StringOutput),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

MediaStore Container Policy can be imported using the MediaStore Container Name, e.g.

```sh

$ pulumi import aws:mediastore/containerPolicy:ContainerPolicy example example

```

func GetContainerPolicy

func GetContainerPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ContainerPolicyState, opts ...pulumi.ResourceOption) (*ContainerPolicy, error)

GetContainerPolicy gets an existing ContainerPolicy 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 NewContainerPolicy

func NewContainerPolicy(ctx *pulumi.Context,
	name string, args *ContainerPolicyArgs, opts ...pulumi.ResourceOption) (*ContainerPolicy, error)

NewContainerPolicy registers a new resource with the given unique name, arguments, and options.

func (*ContainerPolicy) ElementType

func (*ContainerPolicy) ElementType() reflect.Type

func (*ContainerPolicy) ToContainerPolicyOutput

func (i *ContainerPolicy) ToContainerPolicyOutput() ContainerPolicyOutput

func (*ContainerPolicy) ToContainerPolicyOutputWithContext

func (i *ContainerPolicy) ToContainerPolicyOutputWithContext(ctx context.Context) ContainerPolicyOutput

func (*ContainerPolicy) ToContainerPolicyPtrOutput

func (i *ContainerPolicy) ToContainerPolicyPtrOutput() ContainerPolicyPtrOutput

func (*ContainerPolicy) ToContainerPolicyPtrOutputWithContext

func (i *ContainerPolicy) ToContainerPolicyPtrOutputWithContext(ctx context.Context) ContainerPolicyPtrOutput

type ContainerPolicyArgs

type ContainerPolicyArgs struct {
	// The name of the container.
	ContainerName pulumi.StringInput
	// The contents of the policy.
	Policy pulumi.StringInput
}

The set of arguments for constructing a ContainerPolicy resource.

func (ContainerPolicyArgs) ElementType

func (ContainerPolicyArgs) ElementType() reflect.Type

type ContainerPolicyArray

type ContainerPolicyArray []ContainerPolicyInput

func (ContainerPolicyArray) ElementType

func (ContainerPolicyArray) ElementType() reflect.Type

func (ContainerPolicyArray) ToContainerPolicyArrayOutput

func (i ContainerPolicyArray) ToContainerPolicyArrayOutput() ContainerPolicyArrayOutput

func (ContainerPolicyArray) ToContainerPolicyArrayOutputWithContext

func (i ContainerPolicyArray) ToContainerPolicyArrayOutputWithContext(ctx context.Context) ContainerPolicyArrayOutput

type ContainerPolicyArrayInput

type ContainerPolicyArrayInput interface {
	pulumi.Input

	ToContainerPolicyArrayOutput() ContainerPolicyArrayOutput
	ToContainerPolicyArrayOutputWithContext(context.Context) ContainerPolicyArrayOutput
}

ContainerPolicyArrayInput is an input type that accepts ContainerPolicyArray and ContainerPolicyArrayOutput values. You can construct a concrete instance of `ContainerPolicyArrayInput` via:

ContainerPolicyArray{ ContainerPolicyArgs{...} }

type ContainerPolicyArrayOutput

type ContainerPolicyArrayOutput struct{ *pulumi.OutputState }

func (ContainerPolicyArrayOutput) ElementType

func (ContainerPolicyArrayOutput) ElementType() reflect.Type

func (ContainerPolicyArrayOutput) Index

func (ContainerPolicyArrayOutput) ToContainerPolicyArrayOutput

func (o ContainerPolicyArrayOutput) ToContainerPolicyArrayOutput() ContainerPolicyArrayOutput

func (ContainerPolicyArrayOutput) ToContainerPolicyArrayOutputWithContext

func (o ContainerPolicyArrayOutput) ToContainerPolicyArrayOutputWithContext(ctx context.Context) ContainerPolicyArrayOutput

type ContainerPolicyInput

type ContainerPolicyInput interface {
	pulumi.Input

	ToContainerPolicyOutput() ContainerPolicyOutput
	ToContainerPolicyOutputWithContext(ctx context.Context) ContainerPolicyOutput
}

type ContainerPolicyMap

type ContainerPolicyMap map[string]ContainerPolicyInput

func (ContainerPolicyMap) ElementType

func (ContainerPolicyMap) ElementType() reflect.Type

func (ContainerPolicyMap) ToContainerPolicyMapOutput

func (i ContainerPolicyMap) ToContainerPolicyMapOutput() ContainerPolicyMapOutput

func (ContainerPolicyMap) ToContainerPolicyMapOutputWithContext

func (i ContainerPolicyMap) ToContainerPolicyMapOutputWithContext(ctx context.Context) ContainerPolicyMapOutput

type ContainerPolicyMapInput

type ContainerPolicyMapInput interface {
	pulumi.Input

	ToContainerPolicyMapOutput() ContainerPolicyMapOutput
	ToContainerPolicyMapOutputWithContext(context.Context) ContainerPolicyMapOutput
}

ContainerPolicyMapInput is an input type that accepts ContainerPolicyMap and ContainerPolicyMapOutput values. You can construct a concrete instance of `ContainerPolicyMapInput` via:

ContainerPolicyMap{ "key": ContainerPolicyArgs{...} }

type ContainerPolicyMapOutput

type ContainerPolicyMapOutput struct{ *pulumi.OutputState }

func (ContainerPolicyMapOutput) ElementType

func (ContainerPolicyMapOutput) ElementType() reflect.Type

func (ContainerPolicyMapOutput) MapIndex

func (ContainerPolicyMapOutput) ToContainerPolicyMapOutput

func (o ContainerPolicyMapOutput) ToContainerPolicyMapOutput() ContainerPolicyMapOutput

func (ContainerPolicyMapOutput) ToContainerPolicyMapOutputWithContext

func (o ContainerPolicyMapOutput) ToContainerPolicyMapOutputWithContext(ctx context.Context) ContainerPolicyMapOutput

type ContainerPolicyOutput

type ContainerPolicyOutput struct{ *pulumi.OutputState }

func (ContainerPolicyOutput) ElementType

func (ContainerPolicyOutput) ElementType() reflect.Type

func (ContainerPolicyOutput) ToContainerPolicyOutput

func (o ContainerPolicyOutput) ToContainerPolicyOutput() ContainerPolicyOutput

func (ContainerPolicyOutput) ToContainerPolicyOutputWithContext

func (o ContainerPolicyOutput) ToContainerPolicyOutputWithContext(ctx context.Context) ContainerPolicyOutput

func (ContainerPolicyOutput) ToContainerPolicyPtrOutput

func (o ContainerPolicyOutput) ToContainerPolicyPtrOutput() ContainerPolicyPtrOutput

func (ContainerPolicyOutput) ToContainerPolicyPtrOutputWithContext

func (o ContainerPolicyOutput) ToContainerPolicyPtrOutputWithContext(ctx context.Context) ContainerPolicyPtrOutput

type ContainerPolicyPtrInput

type ContainerPolicyPtrInput interface {
	pulumi.Input

	ToContainerPolicyPtrOutput() ContainerPolicyPtrOutput
	ToContainerPolicyPtrOutputWithContext(ctx context.Context) ContainerPolicyPtrOutput
}

type ContainerPolicyPtrOutput

type ContainerPolicyPtrOutput struct{ *pulumi.OutputState }

func (ContainerPolicyPtrOutput) Elem added in v4.15.0

func (ContainerPolicyPtrOutput) ElementType

func (ContainerPolicyPtrOutput) ElementType() reflect.Type

func (ContainerPolicyPtrOutput) ToContainerPolicyPtrOutput

func (o ContainerPolicyPtrOutput) ToContainerPolicyPtrOutput() ContainerPolicyPtrOutput

func (ContainerPolicyPtrOutput) ToContainerPolicyPtrOutputWithContext

func (o ContainerPolicyPtrOutput) ToContainerPolicyPtrOutputWithContext(ctx context.Context) ContainerPolicyPtrOutput

type ContainerPolicyState

type ContainerPolicyState struct {
	// The name of the container.
	ContainerName pulumi.StringPtrInput
	// The contents of the policy.
	Policy pulumi.StringPtrInput
}

func (ContainerPolicyState) ElementType

func (ContainerPolicyState) ElementType() reflect.Type

type ContainerPtrInput

type ContainerPtrInput interface {
	pulumi.Input

	ToContainerPtrOutput() ContainerPtrOutput
	ToContainerPtrOutputWithContext(ctx context.Context) ContainerPtrOutput
}

type ContainerPtrOutput

type ContainerPtrOutput struct{ *pulumi.OutputState }

func (ContainerPtrOutput) Elem added in v4.15.0

func (ContainerPtrOutput) ElementType

func (ContainerPtrOutput) ElementType() reflect.Type

func (ContainerPtrOutput) ToContainerPtrOutput

func (o ContainerPtrOutput) ToContainerPtrOutput() ContainerPtrOutput

func (ContainerPtrOutput) ToContainerPtrOutputWithContext

func (o ContainerPtrOutput) ToContainerPtrOutputWithContext(ctx context.Context) ContainerPtrOutput

type ContainerState

type ContainerState struct {
	// The ARN of the container.
	Arn pulumi.StringPtrInput
	// The DNS endpoint of the container.
	Endpoint pulumi.StringPtrInput
	// The name of the container. Must contain alphanumeric characters or underscores.
	Name pulumi.StringPtrInput
	// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapInput
	// A map of tags assigned to the resource, including those inherited from the provider .
	TagsAll pulumi.StringMapInput
}

func (ContainerState) ElementType

func (ContainerState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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