mediastore

package
v6.18.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 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

	// 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 `defaultTags` configuration block.
	//
	// Deprecated: Please use `tags` instead.
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
}

Provides a MediaStore Container.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v6/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

Using `pulumi import`, import MediaStore Container using the MediaStore Container Name. For example:

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

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) Arn

The ARN of the container.

func (ContainerOutput) ElementType

func (ContainerOutput) ElementType() reflect.Type

func (ContainerOutput) Endpoint

func (o ContainerOutput) Endpoint() pulumi.StringOutput

The DNS endpoint of the container.

func (ContainerOutput) Name

The name of the container. Must contain alphanumeric characters or underscores.

func (ContainerOutput) Tags

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.

func (ContainerOutput) TagsAll deprecated

A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.

Deprecated: Please use `tags` instead.

func (ContainerOutput) ToContainerOutput

func (o ContainerOutput) ToContainerOutput() ContainerOutput

func (ContainerOutput) ToContainerOutputWithContext

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

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/v6/go/aws"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam"
"github.com/pulumi/pulumi-aws/sdk/v6/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
		}
		examplePolicyDocument := iam.GetPolicyDocumentOutput(ctx, iam.GetPolicyDocumentOutputArgs{
			Statements: iam.GetPolicyDocumentStatementArray{
				&iam.GetPolicyDocumentStatementArgs{
					Sid:    pulumi.String("MediaStoreFullAccess"),
					Effect: pulumi.String("Allow"),
					Principals: iam.GetPolicyDocumentStatementPrincipalArray{
						&iam.GetPolicyDocumentStatementPrincipalArgs{
							Type: pulumi.String("AWS"),
							Identifiers: pulumi.StringArray{
								pulumi.String(fmt.Sprintf("arn:aws:iam::%v:root", currentCallerIdentity.AccountId)),
							},
						},
					},
					Actions: pulumi.StringArray{
						pulumi.String("mediastore:*"),
					},
					Resources: pulumi.StringArray{
						exampleContainer.Name.ApplyT(func(name string) (string, error) {
							return fmt.Sprintf("arn:aws:mediastore:%v:%v:container/%v/*", currentRegion.Name, currentCallerIdentity.AccountId, name), nil
						}).(pulumi.StringOutput),
					},
					Conditions: iam.GetPolicyDocumentStatementConditionArray{
						&iam.GetPolicyDocumentStatementConditionArgs{
							Test:     pulumi.String("Bool"),
							Variable: pulumi.String("aws:SecureTransport"),
							Values: pulumi.StringArray{
								pulumi.String("true"),
							},
						},
					},
				},
			},
		}, nil)
		_, err = mediastore.NewContainerPolicy(ctx, "exampleContainerPolicy", &mediastore.ContainerPolicyArgs{
			ContainerName: exampleContainer.Name,
			Policy: examplePolicyDocument.ApplyT(func(examplePolicyDocument iam.GetPolicyDocumentResult) (*string, error) {
				return &examplePolicyDocument.Json, nil
			}).(pulumi.StringPtrOutput),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Using `pulumi import`, import MediaStore Container Policy using the MediaStore Container Name. For example:

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

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) ContainerName

func (o ContainerPolicyOutput) ContainerName() pulumi.StringOutput

The name of the container.

func (ContainerPolicyOutput) ElementType

func (ContainerPolicyOutput) ElementType() reflect.Type

func (ContainerPolicyOutput) Policy

The contents of the policy.

func (ContainerPolicyOutput) ToContainerPolicyOutput

func (o ContainerPolicyOutput) ToContainerPolicyOutput() ContainerPolicyOutput

func (ContainerPolicyOutput) ToContainerPolicyOutputWithContext

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

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 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 `defaultTags` configuration block.
	//
	// Deprecated: Please use `tags` instead.
	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