1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. ivs
  5. PlaybackRestrictionPolicy

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi

aws-native.ivs.PlaybackRestrictionPolicy

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi

Resource Type definition for AWS::IVS::PlaybackRestrictionPolicy.

Create PlaybackRestrictionPolicy Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new PlaybackRestrictionPolicy(name: string, args: PlaybackRestrictionPolicyArgs, opts?: CustomResourceOptions);
@overload
def PlaybackRestrictionPolicy(resource_name: str,
                              args: PlaybackRestrictionPolicyArgs,
                              opts: Optional[ResourceOptions] = None)

@overload
def PlaybackRestrictionPolicy(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              allowed_countries: Optional[Sequence[str]] = None,
                              allowed_origins: Optional[Sequence[str]] = None,
                              enable_strict_origin_enforcement: Optional[bool] = None,
                              name: Optional[str] = None,
                              tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
func NewPlaybackRestrictionPolicy(ctx *Context, name string, args PlaybackRestrictionPolicyArgs, opts ...ResourceOption) (*PlaybackRestrictionPolicy, error)
public PlaybackRestrictionPolicy(string name, PlaybackRestrictionPolicyArgs args, CustomResourceOptions? opts = null)
public PlaybackRestrictionPolicy(String name, PlaybackRestrictionPolicyArgs args)
public PlaybackRestrictionPolicy(String name, PlaybackRestrictionPolicyArgs args, CustomResourceOptions options)
type: aws-native:ivs:PlaybackRestrictionPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. PlaybackRestrictionPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. PlaybackRestrictionPolicyArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. PlaybackRestrictionPolicyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. PlaybackRestrictionPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. PlaybackRestrictionPolicyArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

PlaybackRestrictionPolicy Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The PlaybackRestrictionPolicy resource accepts the following input properties:

AllowedCountries This property is required. List<string>
A list of country codes that control geoblocking restriction. Allowed values are the officially assigned ISO 3166-1 alpha-2 codes. Default: All countries (an empty array).
AllowedOrigins This property is required. List<string>
A list of origin sites that control CORS restriction. Allowed values are the same as valid values of the Origin header defined at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin
EnableStrictOriginEnforcement bool
Whether channel playback is constrained by origin site.
Name string
Playback-restriction-policy name.
Tags List<Pulumi.AwsNative.Inputs.Tag>
An array of key-value pairs to apply to this resource.
AllowedCountries This property is required. []string
A list of country codes that control geoblocking restriction. Allowed values are the officially assigned ISO 3166-1 alpha-2 codes. Default: All countries (an empty array).
AllowedOrigins This property is required. []string
A list of origin sites that control CORS restriction. Allowed values are the same as valid values of the Origin header defined at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin
EnableStrictOriginEnforcement bool
Whether channel playback is constrained by origin site.
Name string
Playback-restriction-policy name.
Tags TagArgs
An array of key-value pairs to apply to this resource.
allowedCountries This property is required. List<String>
A list of country codes that control geoblocking restriction. Allowed values are the officially assigned ISO 3166-1 alpha-2 codes. Default: All countries (an empty array).
allowedOrigins This property is required. List<String>
A list of origin sites that control CORS restriction. Allowed values are the same as valid values of the Origin header defined at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin
enableStrictOriginEnforcement Boolean
Whether channel playback is constrained by origin site.
name String
Playback-restriction-policy name.
tags List<Tag>
An array of key-value pairs to apply to this resource.
allowedCountries This property is required. string[]
A list of country codes that control geoblocking restriction. Allowed values are the officially assigned ISO 3166-1 alpha-2 codes. Default: All countries (an empty array).
allowedOrigins This property is required. string[]
A list of origin sites that control CORS restriction. Allowed values are the same as valid values of the Origin header defined at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin
enableStrictOriginEnforcement boolean
Whether channel playback is constrained by origin site.
name string
Playback-restriction-policy name.
tags Tag[]
An array of key-value pairs to apply to this resource.
allowed_countries This property is required. Sequence[str]
A list of country codes that control geoblocking restriction. Allowed values are the officially assigned ISO 3166-1 alpha-2 codes. Default: All countries (an empty array).
allowed_origins This property is required. Sequence[str]
A list of origin sites that control CORS restriction. Allowed values are the same as valid values of the Origin header defined at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin
enable_strict_origin_enforcement bool
Whether channel playback is constrained by origin site.
name str
Playback-restriction-policy name.
tags Sequence[TagArgs]
An array of key-value pairs to apply to this resource.
allowedCountries This property is required. List<String>
A list of country codes that control geoblocking restriction. Allowed values are the officially assigned ISO 3166-1 alpha-2 codes. Default: All countries (an empty array).
allowedOrigins This property is required. List<String>
A list of origin sites that control CORS restriction. Allowed values are the same as valid values of the Origin header defined at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin
enableStrictOriginEnforcement Boolean
Whether channel playback is constrained by origin site.
name String
Playback-restriction-policy name.
tags List<Property Map>
An array of key-value pairs to apply to this resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the PlaybackRestrictionPolicy resource produces the following output properties:

Arn string
Playback-restriction-policy identifier.
Id string
The provider-assigned unique ID for this managed resource.
Arn string
Playback-restriction-policy identifier.
Id string
The provider-assigned unique ID for this managed resource.
arn String
Playback-restriction-policy identifier.
id String
The provider-assigned unique ID for this managed resource.
arn string
Playback-restriction-policy identifier.
id string
The provider-assigned unique ID for this managed resource.
arn str
Playback-restriction-policy identifier.
id str
The provider-assigned unique ID for this managed resource.
arn String
Playback-restriction-policy identifier.
id String
The provider-assigned unique ID for this managed resource.

Supporting Types

Tag
, TagArgs

Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag
key This property is required. string
The key name of the tag
value This property is required. string
The value of the tag
key This property is required. str
The key name of the tag
value This property is required. str
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi