oci.bucket¶
Oracle Cloud Infrastructure Bucket Resource
- example:
Returns all Bucket resources in the tenancy
policies:
- name: find-all-bucket-resources
resource: oci.bucket
Filters¶
Actions¶
remove-tag¶
Remove Tag Action
- example:
Remove the specified tags from the resource. Defined tag needs to be referred as ‘namespace.tagName’ as below in the policy file.
policies:
- name: remove-tag
resource: oci.bucket
actions:
- type: remove-tag
defined_tags: ['cloud_custodian.environment']
freeform_tags: ['organization', 'team']
properties:
block_until_completion:
type: boolean
defined_tags:
items:
type: string
type: array
fail_on_error:
type: boolean
freeform_tags:
items:
type: string
type: array
type:
enum:
- remove-tag
required:
- type
update¶
Update bucket Action
- example:
Performs a partial or full update of a bucket’s user-defined metadata.
Use UpdateBucket to move a bucket from one compartment to another within the same tenancy. Supply the compartmentID of the compartment that you want to move the bucket to. For more information about moving resources between compartments, see [Moving Resources to a Different Compartment](/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
Please refer to the Oracle Cloud Infrastructure Python SDK documentation for parameter details to this action https://docs.oracle.com/en-us/iaas/tools/python/latest/api/object_storage/client/oci.object_storage.ObjectStorageClient.html#oci.object_storage.ObjectStorageClient.update_bucket
policies: - name: perform-update-bucket-action resource: oci.bucket actions: - type: update defined_tags: Cloud_Custodian: True freeform_tags: Environment: development public_access_type: "NoPublicAccess"
properties:
defined_tags:
type: object
freeform_tags:
type: object
public_access_type:
type: string
type:
enum:
- update
required:
- type