# IBucketRef

Indicates that this resource can be referenced as a Bucket.

Extends: [IConstruct](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.IConstruct.html), [IEnvironmentAware](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.IEnvironmentAware.html)
Implemented by: [Bucket](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.Bucket.html), [BucketBase](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.BucketBase.html), [CfnBucket](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.CfnBucket.html)
Obtainable from: [CfnBucket.fromBucketArn](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.CfnBucket.html#frombucketarn), [CfnBucket.fromBucketName](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.CfnBucket.html#frombucketname)
Used as argument in: [ApiSchema.fromS3File](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-alpha.ApiSchema.html#froms3file), [BucketEvents.fromBucket](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_mixins-preview.aws_s3.events.BucketEvents.html#frombucket), BucketGrants.fromBucket, CfnAgentAliasApplicationLogs.toS3, CfnAgentAliasEventLogs.toS3, CfnAgentSpaceApplicationLogs.toS3, CfnApplicationEventLogs.toS3, CfnApplicationSyncJobLogs.toS3, CfnAssistantEventLogs.toS3, CfnBrowserCustomUsageLogs.toS3, CfnBucket.arnForBucket, CfnBucketS3ServerAccessLogs.toS3, CfnCapabilityEksCapabilityAckLogs.toS3, CfnCapabilityEksCapabilityArgocdApplicationLogs.toS3, CfnCapabilityEksCapabilityArgocdApplicationsetLogs.toS3, CfnCapabilityEksCapabilityArgocdCommitserverLogs.toS3, CfnCapabilityEksCapabilityArgocdNotificationLogs.toS3, CfnCapabilityEksCapabilityArgocdReposerverLogs.toS3, CfnCapabilityEksCapabilityArgocdServerLogs.toS3, CfnCapabilityEksCapabilityKroLogs.toS3, CfnChannelGroupEgressAccessLogs.toS3, CfnChannelGroupIngressAccessLogs.toS3, CfnClusterActionLogs.toS3, CfnClusterAuditLogs.toS3, CfnClusterAutoModeBlockStorageLogs.toS3, CfnClusterAutoModeComputeLogs.toS3, CfnClusterAutoModeIpamLogs.toS3, CfnClusterAutoModeLoadBalancingLogs.toS3, CfnClusterPcsJobcompLogs.toS3, CfnClusterPcsScalingLogs.toS3, CfnClusterPcsSchedulerAuditLogs.toS3, CfnClusterPcsSchedulerLogs.toS3, CfnCodeInterpreterCustomApplicationLogs.toS3, CfnCodeInterpreterCustomUsageLogs.toS3, CfnDistributionAccessLogs.toS3, CfnDistributionConnectionLogs.toS3, CfnEventBusErrorLogs.toS3, CfnEventBusInfoLogs.toS3, CfnEventBusTraceLogs.toS3, CfnFeedApplicationLogs.toS3, CfnFirewallAlertLogs.toS3, CfnFirewallAllowLogs.toS3, CfnFirewallDenyLogs.toS3, CfnGameSessionQueueQueuePlacementLogs.toS3, CfnGatewayApplicationLogs.toS3, CfnIdMappingWorkflowWorkflowLogs.toS3, CfnInstanceConsoleLogs.toS3, CfnKnowledgeBaseApplicationLogs.toS3, CfnKnowledgeBaseRuntimeLogs.toS3, CfnLinkApplicationLogs.toS3, CfnLoadBalancerAlbAccessLogs.toS3, CfnLoadBalancerAlbConnectionLogs.toS3, CfnLoadBalancerAlbHealthCheckLogs.toS3, CfnLoadBalancerNlbAccessLogs.toS3, CfnMailManagerIngressPointApplicationLogs.toS3, CfnMailManagerIngressPointTrafficPolicyDebugLogs.toS3, CfnMailManagerRuleSetApplicationLogs.toS3, CfnMatchingWorkflowWorkflowLogs.toS3, CfnMemoryApplicationLogs.toS3, CfnPlaybackConfigurationAdDecisionServerLogs.toS3, CfnPlaybackConfigurationManifestServiceLogs.toS3, CfnPlaybackConfigurationTranscodeLogs.toS3, CfnProtectionFlowLogs.toS3, CfnRouteServerPeerEventLogs.toS3, CfnRuntimeApplicationLogs.toS3, CfnRuntimeUsageLogs.toS3, CfnWorkloadIdentityApplicationLogs.toS3, Code.fromBucket, IBucketNotificationDestination.bind, S3ApiDefinition (initializer), S3Code (initializer), S3LogsDelivery (initializer)

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: Generated at build time
- Type last changed: v2.224.0 · 13 Nov 2025

## Properties

- `bucketRef`: [BucketReference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_s3.BucketReference.html) — A reference to a Bucket resource.

- `env`: [ResourceEnvironment](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.ResourceEnvironment.html) — The environment this resource belongs to.

  For resources that are created and managed in a Stack (those created by
  creating new class instances like `new Role()`, `new Bucket()`, etc.), this
  is always the same as the environment of the stack they belong to.

  For referenced resources (those obtained from referencing methods like
  `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
  different than the stack they were imported into.

- `node`: [Node](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.Node.html) — The tree node.

## Methods

- `with(...mixins: IMixin[]): IConstruct` — Applies one or more mixins to this construct.

  Mixins are applied in order. The list of constructs is captured at the
  start of the call, so constructs added by a mixin will not be visited.

  **Parameters**

  - `mixins` — The mixins to apply.

  **Returns:** This construct for chaining
