Module mediastore
This page documents the language specification for the aws package. If you're looking for help working with the inputs, outputs, or functions of aws resources in a Pulumi program, please see the resource documentation for examples and API reference.
This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the
pulumi/pulumi-awsrepo; however, if that doesn’t turn up anything, please consult the sourceterraform-providers/terraform-provider-awsrepo.
Resources
Others
Resources
Resource Container
class Container extends CustomResourceProvides a MediaStore Container.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.mediastore.Container("example", {});constructor
new Container(name: string, args?: ContainerArgs, opts?: pulumi.CustomResourceOptions)Create a Container resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ContainerState, opts?: pulumi.CustomResourceOptions): ContainerGet an existing Container resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is ContainerReturns true if the given object is an instance of Container. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property arn
public arn: pulumi.Output<string>;The ARN of the container.
property endpoint
public endpoint: pulumi.Output<string>;The DNS endpoint of the container.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property name
public name: pulumi.Output<string>;The name of the container. Must contain alphanumeric characters or underscores.
property tags
public tags: pulumi.Output<{[key: string]: any} | undefined>;A map of tags to assign to the resource.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource ContainerPolicy
class ContainerPolicy extends CustomResourceProvides a MediaStore Container Policy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const currentRegion = pulumi.output(aws.getRegion({ async: true }));
const currentCallerIdentity = pulumi.output(aws.getCallerIdentity({ async: true }));
const exampleContainer = new aws.mediastore.Container("example", {});
const exampleContainerPolicy = new aws.mediastore.ContainerPolicy("example", {
containerName: exampleContainer.name,
policy: pulumi.interpolate`{
"Version": "2012-10-17",
"Statement": [{
"Sid": "MediaStoreFullAccess",
"Action": [ "mediastore:*" ],
"Principal": {"AWS" : "arn:aws:iam::${currentCallerIdentity.accountId}:root"},
"Effect": "Allow",
"Resource": "arn:aws:mediastore:${currentCallerIdentity.accountId}:${currentRegion.name!}:container/${exampleContainer.name}/*",
"Condition": {
"Bool": { "aws:SecureTransport": "true" }
}
}]
}
`,
});constructor
new ContainerPolicy(name: string, args: ContainerPolicyArgs, opts?: pulumi.CustomResourceOptions)Create a ContainerPolicy resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ContainerPolicyState, opts?: pulumi.CustomResourceOptions): ContainerPolicyGet an existing ContainerPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is ContainerPolicyReturns true if the given object is an instance of ContainerPolicy. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property containerName
public containerName: pulumi.Output<string>;The name of the container.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property policy
public policy: pulumi.Output<string>;The contents of the policy.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Others
interface ContainerArgs
interface ContainerArgsThe set of arguments for constructing a Container resource.
property name
name?: pulumi.Input<string>;The name of the container. Must contain alphanumeric characters or underscores.
property tags
tags?: pulumi.Input<{[key: string]: any}>;A map of tags to assign to the resource.
interface ContainerPolicyArgs
interface ContainerPolicyArgsThe set of arguments for constructing a ContainerPolicy resource.
property containerName
containerName: pulumi.Input<string>;The name of the container.
property policy
policy: pulumi.Input<string>;The contents of the policy.
interface ContainerPolicyState
interface ContainerPolicyStateInput properties used for looking up and filtering ContainerPolicy resources.
property containerName
containerName?: pulumi.Input<string>;The name of the container.
property policy
policy?: pulumi.Input<string>;The contents of the policy.
interface ContainerState
interface ContainerStateInput properties used for looking up and filtering Container resources.
property arn
arn?: pulumi.Input<string>;The ARN of the container.
property endpoint
endpoint?: pulumi.Input<string>;The DNS endpoint of the container.
property name
name?: pulumi.Input<string>;The name of the container. Must contain alphanumeric characters or underscores.
property tags
tags?: pulumi.Input<{[key: string]: any}>;A map of tags to assign to the resource.