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.
mediastore¶
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-aws repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-aws repo.
- class
pulumi_aws.mediastore.Container(resource_name, opts=None, name=None, tags=None, __props__=None, __name__=None, __opts__=None)¶ Provides a MediaStore Container.
import pulumi import pulumi_aws as aws example = aws.mediastore.Container("example")
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
name (pulumi.Input[str]) – The name of the container. Must contain alphanumeric characters or underscores.
tags (pulumi.Input[dict]) – A map of tags to assign to the resource.
arn: pulumi.Output[str] = None¶The ARN of the container.
endpoint: pulumi.Output[str] = None¶The DNS endpoint of the container.
name: pulumi.Output[str] = None¶The name of the container. Must contain alphanumeric characters or underscores.
A map of tags to assign to the resource.
- static
get(resource_name, id, opts=None, arn=None, endpoint=None, name=None, tags=None)¶ Get an existing Container resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
arn (pulumi.Input[str]) – The ARN of the container.
endpoint (pulumi.Input[str]) – The DNS endpoint of the container.
name (pulumi.Input[str]) – The name of the container. Must contain alphanumeric characters or underscores.
tags (pulumi.Input[dict]) – A map of tags to assign to the resource.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_aws.mediastore.ContainerPolicy(resource_name, opts=None, container_name=None, policy=None, __props__=None, __name__=None, __opts__=None)¶ Provides a MediaStore Container Policy.
import pulumi import pulumi_aws as aws current_region = aws.get_region() current_caller_identity = aws.get_caller_identity() example_container = aws.mediastore.Container("exampleContainer") example_container_policy = aws.mediastore.ContainerPolicy("exampleContainerPolicy", container_name=example_container.name, policy=example_container.name.apply(lambda name: f"""{{ "Version": "2012-10-17", "Statement": [{{ "Sid": "MediaStoreFullAccess", "Action": [ "mediastore:*" ], "Principal": {{"AWS" : "arn:aws:iam::{current_caller_identity.account_id}:root"}}, "Effect": "Allow", "Resource": "arn:aws:mediastore:{current_caller_identity.account_id}:{current_region.name}:container/{name}/*", "Condition": {{ "Bool": {{ "aws:SecureTransport": "true" }} }} }}] }} """))
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
container_name (pulumi.Input[str]) – The name of the container.
policy (pulumi.Input[str]) – The contents of the policy.
container_name: pulumi.Output[str] = None¶The name of the container.
policy: pulumi.Output[str] = None¶The contents of the policy.
- static
get(resource_name, id, opts=None, container_name=None, policy=None)¶ Get an existing ContainerPolicy resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
container_name (pulumi.Input[str]) – The name of the container.
policy (pulumi.Input[str]) – The contents of the policy.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str