BucketPolicy
An BucketPolicy is a managed resource that represents an AWS Bucket policy.
TypeMR
Providerprovider-aws
Groups3.aws.crossplane.io
Scopecluster
Versionv1alpha3

1apiVersion: s3.aws.crossplane.io/v1alpha3

2kind: BucketPolicy

apiVersion
string
kind
string
metadata
object
spec
object

An BucketPolicySpec defines the desired state of an BucketPolicy.

deletionPolicy
string
forProvider
required
object

BucketPolicyParameters define the desired state of an AWS BucketPolicy.

bucketName
string
bucketNameRef
object

BucketNameRef references to an S3Bucket to retrieve its bucketName

name
required
string
policy
object

Policies for referencing.

resolution
string
resolve
string
bucketNameSelector
object

BucketNameSelector selects a reference to an S3Bucket to retrieve its bucketName

matchControllerRef
boolean
matchLabels
object
policy
object

Policies for selection.

resolution
string
resolve
string
policy
object

Policy is a well defined type which can be parsed into an JSON S3 Bucket Policy either policy or rawPolicy must be specified in the policy

id
string
statements
array

Statements is the list of statement this policy applies either jsonStatements or statements must be specified in the policy

action
array

Each element of the PolicyAction array describes the specific action or actions that will be allowed or denied with this PolicyStatement.

condition
array

Condition specifies where conditions for policy are in effect. https://docs.aws.amazon.com/AmazonS3/latest/dev/amazon-s3-policy-keys.html

conditions
required
array

Conditions represents each of the key/value pairs for the operator key

booleanValue
boolean
dateValue
string
key
required
string
listValue
array

ConditionListValue is the list value of the key from the parent condition

numericValue
integer
stringValue
string
operatorKey
required
string
effect
required
string
notAction
array

Each element of the NotPolicyAction array will allow the property to match all but the listed actions.

notPrincipal
object

Used with the S3 policy to specify the users which are not included in this policy

allowAnon
boolean
awsPrincipals
array

This list contains the all of the AWS IAM users which are affected by the policy statement.

awsAccountId
string
iamRoleArn
string
iamRoleArnRef
object

IAMRoleARNRef contains the reference to an IAMRole

name
required
string
policy
object

Policies for referencing.

resolution
string
resolve
string
iamRoleArnSelector
object

IAMRoleARNSelector queries for an IAM role to retrieve its userName

matchControllerRef
boolean
matchLabels
object
policy
object

Policies for selection.

resolution
string
resolve
string
iamUserArn
string
iamUserArnRef
object

UserARNRef contains the reference to an User

name
required
string
policy
object

Policies for referencing.

resolution
string
resolve
string
iamUserArnSelector
object

UserARNSelector queries for an User to retrieve its userName

matchControllerRef
boolean
matchLabels
object
policy
object

Policies for selection.

resolution
string
resolve
string
federated
string
service
array

Service define the services which can have access to this bucket

notResource
array

This will explicitly match all resource paths except the ones specified in this array

principal
object

Used with the S3 policy to specify the principal that is allowed or denied access to a resource.

allowAnon
boolean
awsPrincipals
array

This list contains the all of the AWS IAM users which are affected by the policy statement.

awsAccountId
string
iamRoleArn
string
iamRoleArnRef
object

IAMRoleARNRef contains the reference to an IAMRole

name
required
string
policy
object

Policies for referencing.

resolution
string
resolve
string
iamRoleArnSelector
object

IAMRoleARNSelector queries for an IAM role to retrieve its userName

matchControllerRef
boolean
matchLabels
object
policy
object

Policies for selection.

resolution
string
resolve
string
iamUserArn
string
iamUserArnRef
object

UserARNRef contains the reference to an User

name
required
string
policy
object

Policies for referencing.

resolution
string
resolve
string
iamUserArnSelector
object

UserARNSelector queries for an User to retrieve its userName

matchControllerRef
boolean
matchLabels
object
policy
object

Policies for selection.

resolution
string
resolve
string
federated
string
service
array

Service define the services which can have access to this bucket

resource
array

The paths on which this resource will apply

sid
string
version
required
string
rawPolicy
string
region
required
string
providerConfigRef
object

ProviderConfigReference specifies how the provider that will be used to create, observe, update, and delete this managed resource should be configured.

name
required
string
policy
object

Policies for referencing.

resolution
string
resolve
string
providerRef
object

ProviderReference specifies the provider that will be used to create, observe, update, and delete this managed resource. Deprecated: Please use ProviderConfigReference, i.e. providerConfigRef

name
required
string
policy
object

Policies for referencing.

resolution
string
resolve
string
publishConnectionDetailsTo
object

PublishConnectionDetailsTo specifies the connection secret config which contains a name, metadata and a reference to secret store config to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource.

configRef
object

SecretStoreConfigRef specifies which secret store config should be used for this ConnectionSecret.

name
required
string
policy
object

Policies for referencing.

resolution
string
resolve
string
metadata
object

Metadata is the metadata for connection secret.

annotations
object
labels
object
type
string
name
required
string
writeConnectionSecretToRef
object

WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource. This field is planned to be replaced in a future release in favor of PublishConnectionDetailsTo. Currently, both could be set independently and connection details would be published to both without affecting each other.

name
required
string
namespace
required
string
status
object

An BucketPolicyStatus represents the observed state of an BucketPolicy.

conditions
array

Conditions of the resource.

lastTransitionTime
required
string
message
string
reason
required
string
status
required
string
type
required
string
Discover the building blocks for your internal cloud platform.
© 2026 Upbound, Inc.
Solutions
Learn
Company
Community
More