aws ssm put-resource-policy
Creates or updates a Systems Manager resource policy. AWS CLI reference
4 options Its page in the AWS CLI reference
Options
--policy-hashID of the current policy version.--policy-idThe policy ID.--policyA policy you want to associate with a resource.--resource-arnAmazon Resource Name (ARN) of the resource to which you want to attach a policy.