Interface CfnPlaybackRestrictionPolicyProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPlaybackRestrictionPolicyProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:40:54.263Z")
@Stability(Stable)
public interface CfnPlaybackRestrictionPolicyProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnPlaybackRestrictionPolicy.
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.*;
CfnPlaybackRestrictionPolicyProps cfnPlaybackRestrictionPolicyProps = CfnPlaybackRestrictionPolicyProps.builder()
.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 TypeInterfaceDescriptionstatic final classA builder forCfnPlaybackRestrictionPolicyPropsstatic final classAn implementation forCfnPlaybackRestrictionPolicyProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()A list of country codes that control geoblocking restrictions.A list of origin sites that control CORS restriction.default ObjectWhether channel playback is constrained by the origin site.default StringgetName()Playback-restriction-policy name.getTags()An array of key-value pairs to apply to this resource.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAllowedCountries
A list of country codes that control geoblocking restrictions.Allowed values are the officially assigned ISO 3166-1 alpha-2 codes. Default: All countries (an empty array).
- See Also:
-
getAllowedOrigins
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"
- See Also:
-
getEnableStrictOriginEnforcement
Whether channel playback is constrained by the origin site.Returns union: either
BooleanorIResolvableDefault: - false
- See Also:
-
getName
Playback-restriction-policy name.- See Also:
-
getTags
An array of key-value pairs to apply to this resource.For more information, see Tag .
- See Also:
-
builder
-