Class CfnPlaybackRestrictionPolicy
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.ivs.CfnPlaybackRestrictionPolicy
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IPlaybackRestrictionPolicyRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-12-01T16:02:22.931Z")
@Stability(Stable)
public class CfnPlaybackRestrictionPolicy
extends CfnResource
implements IInspectable, IPlaybackRestrictionPolicyRef, ITaggableV2
The
AWS::IVS::PlaybackRestrictionPolicy resource specifies an playback restriction policy.
A playback restriction policy constrains playback by country and/or origin sites. For more information, see Undesired Content and Viewers in the Amazon IVS Low-Latency Streaming User Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ivs.*;
CfnPlaybackRestrictionPolicy cfnPlaybackRestrictionPolicy = CfnPlaybackRestrictionPolicy.Builder.create(this, "MyCfnPlaybackRestrictionPolicy")
.allowedCountries(List.of("allowedCountries"))
.allowedOrigins(List.of("allowedOrigins"))
.enableStrictOriginEnforcement(false)
.name("name")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnPlaybackRestrictionPolicy.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.ivs.IPlaybackRestrictionPolicyRef
IPlaybackRestrictionPolicyRef.Jsii$Default, IPlaybackRestrictionPolicyRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnPlaybackRestrictionPolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnPlaybackRestrictionPolicy(software.amazon.jsii.JsiiObjectRef objRef) CfnPlaybackRestrictionPolicy(software.constructs.Construct scope, String id) Create a newAWS::IVS::PlaybackRestrictionPolicy.CfnPlaybackRestrictionPolicy(software.constructs.Construct scope, String id, CfnPlaybackRestrictionPolicyProps props) Create a newAWS::IVS::PlaybackRestrictionPolicy. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringA list of country codes that control geoblocking restrictions.A list of origin sites that control CORS restriction.The playback-restriction-policy ARN.Tag Manager which manages the tags for this resource.Whether channel playback is constrained by the origin site.getName()Playback-restriction-policy name.A reference to a PlaybackRestrictionPolicy resource.getTags()An array of key-value pairs to apply to this resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnPlaybackRestrictionPolicy.renderProperties(Map<String, Object> props) voidsetAllowedCountries(List<String> value) A list of country codes that control geoblocking restrictions.voidsetAllowedOrigins(List<String> value) A list of origin sites that control CORS restriction.voidWhether channel playback is constrained by the origin site.voidWhether channel playback is constrained by the origin site.voidPlayback-restriction-policy name.voidAn array of key-value pairs to apply to this resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnPlaybackRestrictionPolicy
protected CfnPlaybackRestrictionPolicy(software.amazon.jsii.JsiiObjectRef objRef) -
CfnPlaybackRestrictionPolicy
protected CfnPlaybackRestrictionPolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnPlaybackRestrictionPolicy
@Stability(Stable) public CfnPlaybackRestrictionPolicy(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnPlaybackRestrictionPolicyProps props) Create a newAWS::IVS::PlaybackRestrictionPolicy.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties.
-
CfnPlaybackRestrictionPolicy
@Stability(Stable) public CfnPlaybackRestrictionPolicy(@NotNull software.constructs.Construct scope, @NotNull String id) Create a newAWS::IVS::PlaybackRestrictionPolicy.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.
-
-
Method Details
-
arnForPlaybackRestrictionPolicy
@Stability(Stable) @NotNull public static String arnForPlaybackRestrictionPolicy(@NotNull IPlaybackRestrictionPolicyRef resource) - Parameters:
resource- This parameter is required.
-
isCfnPlaybackRestrictionPolicy
Checks whether the given object is a CfnPlaybackRestrictionPolicy.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The playback-restriction-policy ARN.For example:
arn:aws:ivs:us-west-2:123456789012:playback-restriction-policy/abcdABCDefgh -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getPlaybackRestrictionPolicyRef
@Stability(Stable) @NotNull public PlaybackRestrictionPolicyReference getPlaybackRestrictionPolicyRef()A reference to a PlaybackRestrictionPolicy resource.- Specified by:
getPlaybackRestrictionPolicyRefin interfaceIPlaybackRestrictionPolicyRef
-
getAllowedCountries
A list of country codes that control geoblocking restrictions. -
setAllowedCountries
A list of country codes that control geoblocking restrictions. -
getAllowedOrigins
A list of origin sites that control CORS restriction. -
setAllowedOrigins
A list of origin sites that control CORS restriction. -
getEnableStrictOriginEnforcement
Whether channel playback is constrained by the origin site.Returns union: either
BooleanorIResolvable -
setEnableStrictOriginEnforcement
Whether channel playback is constrained by the origin site. -
setEnableStrictOriginEnforcement
Whether channel playback is constrained by the origin site. -
getName
Playback-restriction-policy name. -
setName
Playback-restriction-policy name. -
getTags
An array of key-value pairs to apply to this resource. -
setTags
An array of key-value pairs to apply to this resource.
-