Skip to content

/AWS1/CL_MDS=>PUTCONTAINERPOLICY()

About PutContainerPolicy

Creates an access policy for the specified container to restrict the users and clients that can access it. For information about the data that is included in an access policy, see the AWS Identity and Access Management User Guide.

For this release of the REST API, you can create only one policy for a container. If you enter PutContainerPolicy twice, the second command modifies the existing policy.

Method Signature

IMPORTING

Required arguments:

IV_CONTAINERNAME TYPE /AWS1/MDSCONTAINERNAME /AWS1/MDSCONTAINERNAME

The name of the container.

IV_POLICY TYPE /AWS1/MDSCONTAINERPOLICY /AWS1/MDSCONTAINERPOLICY

The contents of the policy, which includes the following:

  • One Version tag

  • One Statement tag that contains the standard tags for the policy.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_MDSPUTCONTAINERPLYOUT /AWS1/CL_MDSPUTCONTAINERPLYOUT