mediastore

package
v3.29.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 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.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
}

Provides a MediaStore Container.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/mediastore"
"github.com/pulumi/pulumi/sdk/v2/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 added in v3.13.0

func (*Container) ElementType() reflect.Type

func (*Container) ToContainerOutput added in v3.13.0

func (i *Container) ToContainerOutput() ContainerOutput

func (*Container) ToContainerOutputWithContext added in v3.13.0

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

func (*Container) ToContainerPtrOutput added in v3.25.0

func (i *Container) ToContainerPtrOutput() ContainerPtrOutput

func (*Container) ToContainerPtrOutputWithContext added in v3.25.0

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.
	Tags pulumi.StringMapInput
}

The set of arguments for constructing a Container resource.

func (ContainerArgs) ElementType

func (ContainerArgs) ElementType() reflect.Type

type ContainerArray added in v3.25.0

type ContainerArray []ContainerInput

func (ContainerArray) ElementType added in v3.25.0

func (ContainerArray) ElementType() reflect.Type

func (ContainerArray) ToContainerArrayOutput added in v3.25.0

func (i ContainerArray) ToContainerArrayOutput() ContainerArrayOutput

func (ContainerArray) ToContainerArrayOutputWithContext added in v3.25.0

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

type ContainerArrayInput added in v3.25.0

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 v3.25.0

type ContainerArrayOutput struct{ *pulumi.OutputState }

func (ContainerArrayOutput) ElementType added in v3.25.0

func (ContainerArrayOutput) ElementType() reflect.Type

func (ContainerArrayOutput) Index added in v3.25.0

func (ContainerArrayOutput) ToContainerArrayOutput added in v3.25.0

func (o ContainerArrayOutput) ToContainerArrayOutput() ContainerArrayOutput

func (ContainerArrayOutput) ToContainerArrayOutputWithContext added in v3.25.0

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

type ContainerInput added in v3.13.0

type ContainerInput interface {
	pulumi.Input

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

type ContainerMap added in v3.25.0

type ContainerMap map[string]ContainerInput

func (ContainerMap) ElementType added in v3.25.0

func (ContainerMap) ElementType() reflect.Type

func (ContainerMap) ToContainerMapOutput added in v3.25.0

func (i ContainerMap) ToContainerMapOutput() ContainerMapOutput

func (ContainerMap) ToContainerMapOutputWithContext added in v3.25.0

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

type ContainerMapInput added in v3.25.0

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 v3.25.0

type ContainerMapOutput struct{ *pulumi.OutputState }

func (ContainerMapOutput) ElementType added in v3.25.0

func (ContainerMapOutput) ElementType() reflect.Type

func (ContainerMapOutput) MapIndex added in v3.25.0

func (ContainerMapOutput) ToContainerMapOutput added in v3.25.0

func (o ContainerMapOutput) ToContainerMapOutput() ContainerMapOutput

func (ContainerMapOutput) ToContainerMapOutputWithContext added in v3.25.0

func (o ContainerMapOutput) ToContainerMapOutputWithContext(ctx context.Context) ContainerMapOutput

type ContainerOutput added in v3.13.0

type ContainerOutput struct {
	*pulumi.OutputState
}

func (ContainerOutput) ElementType added in v3.13.0

func (ContainerOutput) ElementType() reflect.Type

func (ContainerOutput) ToContainerOutput added in v3.13.0

func (o ContainerOutput) ToContainerOutput() ContainerOutput

func (ContainerOutput) ToContainerOutputWithContext added in v3.13.0

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

func (ContainerOutput) ToContainerPtrOutput added in v3.25.0

func (o ContainerOutput) ToContainerPtrOutput() ContainerPtrOutput

func (ContainerOutput) ToContainerPtrOutputWithContext added in v3.25.0

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/v3/go/aws"
"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/mediastore"
"github.com/pulumi/pulumi/sdk/v2/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 added in v3.13.0

func (*ContainerPolicy) ElementType() reflect.Type

func (*ContainerPolicy) ToContainerPolicyOutput added in v3.13.0

func (i *ContainerPolicy) ToContainerPolicyOutput() ContainerPolicyOutput

func (*ContainerPolicy) ToContainerPolicyOutputWithContext added in v3.13.0

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

func (*ContainerPolicy) ToContainerPolicyPtrOutput added in v3.25.0

func (i *ContainerPolicy) ToContainerPolicyPtrOutput() ContainerPolicyPtrOutput

func (*ContainerPolicy) ToContainerPolicyPtrOutputWithContext added in v3.25.0

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 added in v3.25.0

type ContainerPolicyArray []ContainerPolicyInput

func (ContainerPolicyArray) ElementType added in v3.25.0

func (ContainerPolicyArray) ElementType() reflect.Type

func (ContainerPolicyArray) ToContainerPolicyArrayOutput added in v3.25.0

func (i ContainerPolicyArray) ToContainerPolicyArrayOutput() ContainerPolicyArrayOutput

func (ContainerPolicyArray) ToContainerPolicyArrayOutputWithContext added in v3.25.0

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

type ContainerPolicyArrayInput added in v3.25.0

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 added in v3.25.0

type ContainerPolicyArrayOutput struct{ *pulumi.OutputState }

func (ContainerPolicyArrayOutput) ElementType added in v3.25.0

func (ContainerPolicyArrayOutput) ElementType() reflect.Type

func (ContainerPolicyArrayOutput) Index added in v3.25.0

func (ContainerPolicyArrayOutput) ToContainerPolicyArrayOutput added in v3.25.0

func (o ContainerPolicyArrayOutput) ToContainerPolicyArrayOutput() ContainerPolicyArrayOutput

func (ContainerPolicyArrayOutput) ToContainerPolicyArrayOutputWithContext added in v3.25.0

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

type ContainerPolicyInput added in v3.13.0

type ContainerPolicyInput interface {
	pulumi.Input

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

type ContainerPolicyMap added in v3.25.0

type ContainerPolicyMap map[string]ContainerPolicyInput

func (ContainerPolicyMap) ElementType added in v3.25.0

func (ContainerPolicyMap) ElementType() reflect.Type

func (ContainerPolicyMap) ToContainerPolicyMapOutput added in v3.25.0

func (i ContainerPolicyMap) ToContainerPolicyMapOutput() ContainerPolicyMapOutput

func (ContainerPolicyMap) ToContainerPolicyMapOutputWithContext added in v3.25.0

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

type ContainerPolicyMapInput added in v3.25.0

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 added in v3.25.0

type ContainerPolicyMapOutput struct{ *pulumi.OutputState }

func (ContainerPolicyMapOutput) ElementType added in v3.25.0

func (ContainerPolicyMapOutput) ElementType() reflect.Type

func (ContainerPolicyMapOutput) MapIndex added in v3.25.0

func (ContainerPolicyMapOutput) ToContainerPolicyMapOutput added in v3.25.0

func (o ContainerPolicyMapOutput) ToContainerPolicyMapOutput() ContainerPolicyMapOutput

func (ContainerPolicyMapOutput) ToContainerPolicyMapOutputWithContext added in v3.25.0

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

type ContainerPolicyOutput added in v3.13.0

type ContainerPolicyOutput struct {
	*pulumi.OutputState
}

func (ContainerPolicyOutput) ElementType added in v3.13.0

func (ContainerPolicyOutput) ElementType() reflect.Type

func (ContainerPolicyOutput) ToContainerPolicyOutput added in v3.13.0

func (o ContainerPolicyOutput) ToContainerPolicyOutput() ContainerPolicyOutput

func (ContainerPolicyOutput) ToContainerPolicyOutputWithContext added in v3.13.0

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

func (ContainerPolicyOutput) ToContainerPolicyPtrOutput added in v3.25.0

func (o ContainerPolicyOutput) ToContainerPolicyPtrOutput() ContainerPolicyPtrOutput

func (ContainerPolicyOutput) ToContainerPolicyPtrOutputWithContext added in v3.25.0

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

type ContainerPolicyPtrInput added in v3.25.0

type ContainerPolicyPtrInput interface {
	pulumi.Input

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

type ContainerPolicyPtrOutput added in v3.25.0

type ContainerPolicyPtrOutput struct {
	*pulumi.OutputState
}

func (ContainerPolicyPtrOutput) ElementType added in v3.25.0

func (ContainerPolicyPtrOutput) ElementType() reflect.Type

func (ContainerPolicyPtrOutput) ToContainerPolicyPtrOutput added in v3.25.0

func (o ContainerPolicyPtrOutput) ToContainerPolicyPtrOutput() ContainerPolicyPtrOutput

func (ContainerPolicyPtrOutput) ToContainerPolicyPtrOutputWithContext added in v3.25.0

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 added in v3.25.0

type ContainerPtrInput interface {
	pulumi.Input

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

type ContainerPtrOutput added in v3.25.0

type ContainerPtrOutput struct {
	*pulumi.OutputState
}

func (ContainerPtrOutput) ElementType added in v3.25.0

func (ContainerPtrOutput) ElementType() reflect.Type

func (ContainerPtrOutput) ToContainerPtrOutput added in v3.25.0

func (o ContainerPtrOutput) ToContainerPtrOutput() ContainerPtrOutput

func (ContainerPtrOutput) ToContainerPtrOutputWithContext added in v3.25.0

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