Class CfnPlaybackRestrictionPolicyPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ivs.CfnPlaybackRestrictionPolicyPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPlaybackRestrictionPolicyPropsMixin>
- Enclosing class:
CfnPlaybackRestrictionPolicyPropsMixin
@Stability(Stable)
public static final class CfnPlaybackRestrictionPolicyPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPlaybackRestrictionPolicyPropsMixin>
A fluent builder for
CfnPlaybackRestrictionPolicyPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionallowedCountries(List<String> allowedCountries) A list of country codes that control geoblocking restrictions.allowedOrigins(List<String> allowedOrigins) A list of origin sites that control CORS restriction.build()create()create(CfnPropertyMixinOptions options) enableStrictOriginEnforcement(Boolean enableStrictOriginEnforcement) Whether channel playback is constrained by the origin site.enableStrictOriginEnforcement(IResolvable enableStrictOriginEnforcement) Whether channel playback is constrained by the origin site.Playback-restriction-policy name.An array of key-value pairs to apply to this resource.
-
Method Details
-
create
@Stability(Stable) public static CfnPlaybackRestrictionPolicyPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnPlaybackRestrictionPolicyPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnPlaybackRestrictionPolicyPropsMixin.Builder.
-
allowedCountries
@Stability(Stable) public CfnPlaybackRestrictionPolicyPropsMixin.Builder allowedCountries(List<String> allowedCountries) 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).
- Parameters:
allowedCountries- A list of country codes that control geoblocking restrictions. This parameter is required.- Returns:
this- See Also:
-
allowedOrigins
@Stability(Stable) public CfnPlaybackRestrictionPolicyPropsMixin.Builder allowedOrigins(List<String> allowedOrigins) 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"
- Parameters:
allowedOrigins- A list of origin sites that control CORS restriction. This parameter is required.- Returns:
this- See Also:
-
enableStrictOriginEnforcement
@Stability(Stable) public CfnPlaybackRestrictionPolicyPropsMixin.Builder enableStrictOriginEnforcement(Boolean enableStrictOriginEnforcement) Whether channel playback is constrained by the origin site.Default: - false
- Parameters:
enableStrictOriginEnforcement- Whether channel playback is constrained by the origin site. This parameter is required.- Returns:
this- See Also:
-
enableStrictOriginEnforcement
@Stability(Stable) public CfnPlaybackRestrictionPolicyPropsMixin.Builder enableStrictOriginEnforcement(IResolvable enableStrictOriginEnforcement) Whether channel playback is constrained by the origin site.Default: - false
- Parameters:
enableStrictOriginEnforcement- Whether channel playback is constrained by the origin site. This parameter is required.- Returns:
this- See Also:
-
name
Playback-restriction-policy name.- Parameters:
name- Playback-restriction-policy name. This parameter is required.- Returns:
this- See Also:
-
tags
@Stability(Stable) public CfnPlaybackRestrictionPolicyPropsMixin.Builder tags(List<? extends CfnTag> tags) An array of key-value pairs to apply to this resource.For more information, see Tag .
- Parameters:
tags- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPlaybackRestrictionPolicyPropsMixin>- Returns:
- a newly built instance of
CfnPlaybackRestrictionPolicyPropsMixin.
-