We recommend new projects start with resources from the AWS provider.
aws-native.ivs.PlaybackRestrictionPolicy
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
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 string
- The unique name of the resource.
- args PlaybackRestrictionPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args PlaybackRestrictionPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PlaybackRestrictionPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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
The PlaybackRestrictionPolicy resource accepts the following input properties:
- Allowed
Countries 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).
- Allowed
Origins 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
- Enable
Strict boolOrigin Enforcement - Whether channel playback is constrained by origin site.
- Name string
- Playback-restriction-policy name.
- List<Pulumi.
Aws Native. Inputs. Tag> - An array of key-value pairs to apply to this resource.
- Allowed
Countries []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).
- Allowed
Origins []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
- Enable
Strict boolOrigin Enforcement - Whether channel playback is constrained by origin site.
- Name string
- Playback-restriction-policy name.
- Tag
Args - An array of key-value pairs to apply to this resource.
- allowed
Countries 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).
- allowed
Origins 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
- enable
Strict BooleanOrigin Enforcement - Whether channel playback is constrained by origin site.
- name String
- Playback-restriction-policy name.
- List<Tag>
- An array of key-value pairs to apply to this resource.
- allowed
Countries 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).
- allowed
Origins 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
- enable
Strict booleanOrigin Enforcement - Whether channel playback is constrained by origin site.
- name string
- Playback-restriction-policy name.
- Tag[]
- An array of key-value pairs to apply to this resource.
- allowed_
countries 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 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_ boolorigin_ enforcement - Whether channel playback is constrained by origin site.
- name str
- Playback-restriction-policy name.
- Sequence[Tag
Args] - An array of key-value pairs to apply to this resource.
- allowed
Countries 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).
- allowed
Origins 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
- enable
Strict BooleanOrigin Enforcement - Whether channel playback is constrained by origin site.
- name String
- Playback-restriction-policy name.
- 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:
Supporting Types
Tag, TagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.