update_playback_restriction_policy
async
¶
update_playback_restriction_policy(
arn: PlaybackRestrictionPolicyArn,
*,
config_overrides: Optional[AsyncivsClientConfig] = 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/async_ivs.py
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 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 | |