aws xray put-resource-policy
Sets the resource policy to grant one or more Amazon Web Services services and accounts permissions to access X-Ray. AWS CLI reference
4 options Its page in the AWS CLI reference
Options
--bypass-policy-lockout-checkA flag to indicate whether to bypass the resource policy lockout safety check.--policy-documentThe resource policy document, which can be up to 5kb in size.--policy-nameThe name of the resource policy.--policy-revision-idSpecifies a specific policy revision, to ensure an atomic create operation.