S3ResourceExtensions.AddS3Bucket Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds an Amazon S3 bucket.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IConstructResource<Amazon.CDK.AWS.S3.Bucket>> AddS3Bucket (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IStackResource> builder, string name, Amazon.CDK.AWS.S3.IBucketProps? props = default);
static member AddS3Bucket : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IStackResource> * string * Amazon.CDK.AWS.S3.IBucketProps -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IConstructResource<Amazon.CDK.AWS.S3.Bucket>>
<Extension()>
Public Function AddS3Bucket (builder As IResourceBuilder(Of IStackResource), name As String, Optional props As IBucketProps = Nothing) As IResourceBuilder(Of IConstructResource(Of Bucket))
Parameters
- builder
- IResourceBuilder<IStackResource>
The builder for the AWS CDK stack.
- name
- String
The name of the resource.
- props
- Amazon.CDK.AWS.S3.IBucketProps
The properties of the bucket.