update_playback_restriction_policy
¶
update_playback_restriction_policy(
arn: PlaybackRestrictionPolicyArn,
*,
config_overrides: Optional[ivsClientConfig] = None,
allowed_countries: Optional[PlaybackRestrictionPolicyAllowedCountryList] = None,
allowed_origins: Optional[PlaybackRestrictionPolicyAllowedOriginList] = None,
enable_strict_origin_enforcement: Optional[
PlaybackRestrictionPolicyEnableStrictOriginEnforcement
] = None,
name: Optional[PlaybackRestrictionPolicyName] = None,
) -> UpdatePlaybackRestrictionPolicyResponse
Updates a specified playback restriction policy.
Parameters:
-
arn(PlaybackRestrictionPolicyArn) –ARN of the playback-restriction-policy to be updated.
-
allowed_countries(Optional[PlaybackRestrictionPolicyAllowedCountryList], default:None) –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(Optional[PlaybackRestrictionPolicyAllowedOriginList], default:None) –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. Default: All origins (an empty array).
-
enable_strict_origin_enforcement(Optional[PlaybackRestrictionPolicyEnableStrictOriginEnforcement], default:None) –Whether channel playback is constrained by origin site. Default:
false. -
name(Optional[PlaybackRestrictionPolicyName], default:None) –Playback-restriction-policy name. The value does not need to be unique.
Raises:
-
AccessDeniedException–User does not have sufficient access to perform this action.
-
ConflictException–Updating or deleting a resource can cause an inconsistent state.
-
PendingVerification–Your account is pending verification.
-
ResourceNotFoundException–Request references a resource which does not exist.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ivs/_services/ivs.py
2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 | |