CleanRoomsML / Client / put_configured_audience_model_policy
put_configured_audience_model_policy#
- CleanRoomsML.Client.put_configured_audience_model_policy(**kwargs)#
Create or update the resource policy for a configured audience model.
See also: AWS API Documentation
Request Syntax
response = client.put_configured_audience_model_policy( configuredAudienceModelArn='string', configuredAudienceModelPolicy='string', previousPolicyHash='string', policyExistenceCondition='POLICY_MUST_EXIST'|'POLICY_MUST_NOT_EXIST' )
- Parameters:
configuredAudienceModelArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the configured audience model that the resource policy will govern.
configuredAudienceModelPolicy (string) –
[REQUIRED]
The IAM resource policy.
previousPolicyHash (string) – A cryptographic hash of the contents of the policy used to prevent unexpected concurrent modification of the policy.
policyExistenceCondition (string) – Use this to prevent unexpected concurrent modification of the policy.
- Return type:
dict
- Returns:
Response Syntax
{ 'configuredAudienceModelPolicy': 'string', 'policyHash': 'string' }
Response Structure
(dict) –
configuredAudienceModelPolicy (string) –
The IAM resource policy.
policyHash (string) –
A cryptographic hash of the contents of the policy used to prevent unexpected concurrent modification of the policy.
Exceptions