apiVersion: s3.aws.crossplane.io/v1beta1
kind: Bucket
metadata:
  name: example
spec:
  deletionPolicy: Delete
  forProvider:
    locationConstraint: eu-north-1
    objectOwnership: BucketOwnerEnforced
    paymentConfiguration:
      payer: BucketOwner
    publicAccessBlockConfiguration:
      blockPublicAcls: true
      blockPublicPolicy: true
      ignorePublicAcls: true
      restrictPublicBuckets: true
    serverSideEncryptionConfiguration:
      rules:
        - applyServerSideEncryptionByDefault:
            sseAlgorithm: AES256
    versioningConfiguration:
      status: Suspended
  providerConfigRef:
    name: provider-aws
status:
  atProvider:
    arn: 'arn:aws:s3:::example'
  conditions:
    - lastTransitionTime: '2024-07-12T09:51:07Z'
      reason: Deleting
      status: 'False'
      type: Ready
    - lastTransitionTime: '2024-07-12T09:51:07Z'
      message: >-
        delete failed: operation error S3: DeleteBucket, https response error
        StatusCode: 409, RequestID: ABC123, HostID:
        ABC/123/ABC=,
        api error BucketNotEmpty: The bucket you tried to delete is not empty.
        You must delete all versions in the bucket.
      reason: ReconcileError
      status: 'False'
      type: Synced
