Try AWS Native preview for resources not in the classic version.
aws.s3.getBucketObject
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
NOTE: The
aws.s3.BucketObject
data source is DEPRECATED and will be removed in a future version! Useaws.s3.BucketObjectv2
instead, where new features and fixes will be added.
The S3 object data source allows access to the metadata and optionally (see below) content of an object stored inside S3 bucket.
Note: The content of an object (
body
field) is available only for objects which have a human-readableContent-Type
(text/*
andapplication/json
). This is to prevent printing unsafe characters and potentially downloading large amount of data which would be thrown away in favour of metadata.
Example Usage
The following example retrieves a text object (which must have a
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var bootstrapScript = Aws.S3.GetBucketObject.Invoke(new()
{
Bucket = "ourcorp-deploy-config",
Key = "ec2-bootstrap-script.sh",
});
var example = new Aws.Ec2.Instance("example", new()
{
InstanceType = "t2.micro",
Ami = "ami-2757f631",
UserData = bootstrapScript.Apply(getBucketObjectResult => getBucketObjectResult.Body),
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/s3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
bootstrapScript, err := s3.LookupBucketObject(ctx, &s3.LookupBucketObjectArgs{
Bucket: "ourcorp-deploy-config",
Key: "ec2-bootstrap-script.sh",
}, nil)
if err != nil {
return err
}
_, err = ec2.NewInstance(ctx, "example", &ec2.InstanceArgs{
InstanceType: pulumi.String("t2.micro"),
Ami: pulumi.String("ami-2757f631"),
UserData: *pulumi.String(bootstrapScript.Body),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.s3.S3Functions;
import com.pulumi.aws.s3.inputs.GetBucketObjectArgs;
import com.pulumi.aws.ec2.Instance;
import com.pulumi.aws.ec2.InstanceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var bootstrapScript = S3Functions.getBucketObject(GetBucketObjectArgs.builder()
.bucket("ourcorp-deploy-config")
.key("ec2-bootstrap-script.sh")
.build());
var example = new Instance("example", InstanceArgs.builder()
.instanceType("t2.micro")
.ami("ami-2757f631")
.userData(bootstrapScript.applyValue(getBucketObjectResult -> getBucketObjectResult.body()))
.build());
}
}
import pulumi
import pulumi_aws as aws
bootstrap_script = aws.s3.get_bucket_object(bucket="ourcorp-deploy-config",
key="ec2-bootstrap-script.sh")
example = aws.ec2.Instance("example",
instance_type="t2.micro",
ami="ami-2757f631",
user_data=bootstrap_script.body)
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const bootstrapScript = aws.s3.getBucketObject({
bucket: "ourcorp-deploy-config",
key: "ec2-bootstrap-script.sh",
});
const example = new aws.ec2.Instance("example", {
instanceType: "t2.micro",
ami: "ami-2757f631",
userData: bootstrapScript.then(bootstrapScript => bootstrapScript.body),
});
resources:
example:
type: aws:ec2:Instance
properties:
instanceType: t2.micro
ami: ami-2757f631
userData: ${bootstrapScript.body}
variables:
bootstrapScript:
fn::invoke:
Function: aws:s3:getBucketObject
Arguments:
bucket: ourcorp-deploy-config
key: ec2-bootstrap-script.sh
.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var lambda = Aws.S3.GetBucketObject.Invoke(new()
{
Bucket = "ourcorp-lambda-functions",
Key = "hello-world.zip",
});
var testLambda = new Aws.Lambda.Function("testLambda", new()
{
S3Bucket = lambda.Apply(getBucketObjectResult => getBucketObjectResult.Id),
S3Key = lambda.Apply(getBucketObjectResult => getBucketObjectResult.Key),
S3ObjectVersion = lambda.Apply(getBucketObjectResult => getBucketObjectResult.VersionId),
Role = aws_iam_role.Iam_for_lambda.Arn,
Handler = "exports.test",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/lambda"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/s3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
lambda, err := s3.LookupBucketObject(ctx, &s3.LookupBucketObjectArgs{
Bucket: "ourcorp-lambda-functions",
Key: "hello-world.zip",
}, nil)
if err != nil {
return err
}
_, err = lambda.NewFunction(ctx, "testLambda", &lambda.FunctionArgs{
S3Bucket: *pulumi.String(lambda.Id),
S3Key: *pulumi.String(lambda.Key),
S3ObjectVersion: *pulumi.String(lambda.VersionId),
Role: pulumi.Any(aws_iam_role.Iam_for_lambda.Arn),
Handler: pulumi.String("exports.test"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.s3.S3Functions;
import com.pulumi.aws.s3.inputs.GetBucketObjectArgs;
import com.pulumi.aws.lambda.Function;
import com.pulumi.aws.lambda.FunctionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var lambda = S3Functions.getBucketObject(GetBucketObjectArgs.builder()
.bucket("ourcorp-lambda-functions")
.key("hello-world.zip")
.build());
var testLambda = new Function("testLambda", FunctionArgs.builder()
.s3Bucket(lambda.applyValue(getBucketObjectResult -> getBucketObjectResult.id()))
.s3Key(lambda.applyValue(getBucketObjectResult -> getBucketObjectResult.key()))
.s3ObjectVersion(lambda.applyValue(getBucketObjectResult -> getBucketObjectResult.versionId()))
.role(aws_iam_role.iam_for_lambda().arn())
.handler("exports.test")
.build());
}
}
import pulumi
import pulumi_aws as aws
lambda_ = aws.s3.get_bucket_object(bucket="ourcorp-lambda-functions",
key="hello-world.zip")
test_lambda = aws.lambda_.Function("testLambda",
s3_bucket=lambda_.id,
s3_key=lambda_.key,
s3_object_version=lambda_.version_id,
role=aws_iam_role["iam_for_lambda"]["arn"],
handler="exports.test")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const lambda = aws.s3.getBucketObject({
bucket: "ourcorp-lambda-functions",
key: "hello-world.zip",
});
const testLambda = new aws.lambda.Function("testLambda", {
s3Bucket: lambda.then(lambda => lambda.id),
s3Key: lambda.then(lambda => lambda.key),
s3ObjectVersion: lambda.then(lambda => lambda.versionId),
role: aws_iam_role.iam_for_lambda.arn,
handler: "exports.test",
});
resources:
testLambda:
type: aws:lambda:Function
properties:
s3Bucket: ${lambda.id}
s3Key: ${lambda.key}
s3ObjectVersion: ${lambda.versionId}
role: ${aws_iam_role.iam_for_lambda.arn}
# (not shown)
handler: exports.test
variables:
lambda:
fn::invoke:
Function: aws:s3:getBucketObject
Arguments:
bucket: ourcorp-lambda-functions
key: hello-world.zip
Using getBucketObject
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getBucketObject(args: GetBucketObjectArgs, opts?: InvokeOptions): Promise<GetBucketObjectResult>
function getBucketObjectOutput(args: GetBucketObjectOutputArgs, opts?: InvokeOptions): Output<GetBucketObjectResult>
def get_bucket_object(bucket: Optional[str] = None,
key: Optional[str] = None,
range: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
version_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBucketObjectResult
def get_bucket_object_output(bucket: Optional[pulumi.Input[str]] = None,
key: Optional[pulumi.Input[str]] = None,
range: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
version_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBucketObjectResult]
func LookupBucketObject(ctx *Context, args *LookupBucketObjectArgs, opts ...InvokeOption) (*LookupBucketObjectResult, error)
func LookupBucketObjectOutput(ctx *Context, args *LookupBucketObjectOutputArgs, opts ...InvokeOption) LookupBucketObjectResultOutput
> Note: This function is named LookupBucketObject
in the Go SDK.
public static class GetBucketObject
{
public static Task<GetBucketObjectResult> InvokeAsync(GetBucketObjectArgs args, InvokeOptions? opts = null)
public static Output<GetBucketObjectResult> Invoke(GetBucketObjectInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetBucketObjectResult> getBucketObject(GetBucketObjectArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:s3/getBucketObject:getBucketObject
arguments:
# arguments dictionary
The following arguments are supported:
- Bucket string
Name of the bucket to read the object from. Alternatively, an S3 access point ARN can be specified
Use the aws_s3_object data source instead
- Key string
Full path to the object inside the bucket
- Range string
- Dictionary<string, string>
Map of tags assigned to the object.
- Version
Id string Specific version ID of the object returned (defaults to latest version)
- Bucket string
Name of the bucket to read the object from. Alternatively, an S3 access point ARN can be specified
Use the aws_s3_object data source instead
- Key string
Full path to the object inside the bucket
- Range string
- map[string]string
Map of tags assigned to the object.
- Version
Id string Specific version ID of the object returned (defaults to latest version)
- bucket String
Name of the bucket to read the object from. Alternatively, an S3 access point ARN can be specified
Use the aws_s3_object data source instead
- key String
Full path to the object inside the bucket
- range String
- Map<String,String>
Map of tags assigned to the object.
- version
Id String Specific version ID of the object returned (defaults to latest version)
- bucket string
Name of the bucket to read the object from. Alternatively, an S3 access point ARN can be specified
Use the aws_s3_object data source instead
- key string
Full path to the object inside the bucket
- range string
- {[key: string]: string}
Map of tags assigned to the object.
- version
Id string Specific version ID of the object returned (defaults to latest version)
- bucket str
Name of the bucket to read the object from. Alternatively, an S3 access point ARN can be specified
Use the aws_s3_object data source instead
- key str
Full path to the object inside the bucket
- range str
- Mapping[str, str]
Map of tags assigned to the object.
- version_
id str Specific version ID of the object returned (defaults to latest version)
- bucket String
Name of the bucket to read the object from. Alternatively, an S3 access point ARN can be specified
Use the aws_s3_object data source instead
- key String
Full path to the object inside the bucket
- range String
- Map<String>
Map of tags assigned to the object.
- version
Id String Specific version ID of the object returned (defaults to latest version)
getBucketObject Result
The following output properties are available:
- Body string
Object data (see limitations above to understand cases in which this field is actually available)
- Bucket string
Use the aws_s3_object data source instead
- Bucket
Key boolEnabled (Optional) Whether or not to use Amazon S3 Bucket Keys for SSE-KMS.
- Cache
Control string Caching behavior along the request/reply chain.
- Content
Disposition string Presentational information for the object.
- Content
Encoding string What content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
- Content
Language string Language the content is in.
- Content
Length int Size of the body in bytes.
- Content
Type string Standard MIME type describing the format of the object data.
- Etag string
ETag generated for the object (an MD5 sum of the object content in case it's not encrypted)
- Expiration string
If the object expiration is configured (see object lifecycle management), the field includes this header. It includes the expiry-date and rule-id key value pairs providing object expiration information. The value of the rule-id is URL encoded.
- Expires string
Date and time at which the object is no longer cacheable.
- Id string
The provider-assigned unique ID for this managed resource.
- Key string
- Last
Modified string Last modified date of the object in RFC1123 format (e.g.,
Mon, 02 Jan 2006 15:04:05 MST
)- Metadata Dictionary<string, string>
Map of metadata stored with the object in S3
- Object
Lock stringLegal Hold Status Indicates whether this object has an active legal hold. This field is only returned if you have permission to view an object's legal hold status.
- Object
Lock stringMode Object lock retention mode currently in place for this object.
- Object
Lock stringRetain Until Date The date and time when this object's object lock will expire.
- Server
Side stringEncryption If the object is stored using server-side encryption (KMS or Amazon S3-managed encryption key), this field includes the chosen encryption and algorithm used.
- Sse
Kms stringKey Id If present, specifies the ID of the Key Management Service (KMS) master encryption key that was used for the object.
- Storage
Class string Storage class information of the object. Available for all objects except for
Standard
storage class objects.- Dictionary<string, string>
Map of tags assigned to the object.
- Version
Id string Latest version ID of the object returned.
- Website
Redirect stringLocation If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this header in the object metadata.
- Range string
- Body string
Object data (see limitations above to understand cases in which this field is actually available)
- Bucket string
Use the aws_s3_object data source instead
- Bucket
Key boolEnabled (Optional) Whether or not to use Amazon S3 Bucket Keys for SSE-KMS.
- Cache
Control string Caching behavior along the request/reply chain.
- Content
Disposition string Presentational information for the object.
- Content
Encoding string What content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
- Content
Language string Language the content is in.
- Content
Length int Size of the body in bytes.
- Content
Type string Standard MIME type describing the format of the object data.
- Etag string
ETag generated for the object (an MD5 sum of the object content in case it's not encrypted)
- Expiration string
If the object expiration is configured (see object lifecycle management), the field includes this header. It includes the expiry-date and rule-id key value pairs providing object expiration information. The value of the rule-id is URL encoded.
- Expires string
Date and time at which the object is no longer cacheable.
- Id string
The provider-assigned unique ID for this managed resource.
- Key string
- Last
Modified string Last modified date of the object in RFC1123 format (e.g.,
Mon, 02 Jan 2006 15:04:05 MST
)- Metadata map[string]string
Map of metadata stored with the object in S3
- Object
Lock stringLegal Hold Status Indicates whether this object has an active legal hold. This field is only returned if you have permission to view an object's legal hold status.
- Object
Lock stringMode Object lock retention mode currently in place for this object.
- Object
Lock stringRetain Until Date The date and time when this object's object lock will expire.
- Server
Side stringEncryption If the object is stored using server-side encryption (KMS or Amazon S3-managed encryption key), this field includes the chosen encryption and algorithm used.
- Sse
Kms stringKey Id If present, specifies the ID of the Key Management Service (KMS) master encryption key that was used for the object.
- Storage
Class string Storage class information of the object. Available for all objects except for
Standard
storage class objects.- map[string]string
Map of tags assigned to the object.
- Version
Id string Latest version ID of the object returned.
- Website
Redirect stringLocation If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this header in the object metadata.
- Range string
- body String
Object data (see limitations above to understand cases in which this field is actually available)
- bucket String
Use the aws_s3_object data source instead
- bucket
Key BooleanEnabled (Optional) Whether or not to use Amazon S3 Bucket Keys for SSE-KMS.
- cache
Control String Caching behavior along the request/reply chain.
- content
Disposition String Presentational information for the object.
- content
Encoding String What content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
- content
Language String Language the content is in.
- content
Length Integer Size of the body in bytes.
- content
Type String Standard MIME type describing the format of the object data.
- etag String
ETag generated for the object (an MD5 sum of the object content in case it's not encrypted)
- expiration String
If the object expiration is configured (see object lifecycle management), the field includes this header. It includes the expiry-date and rule-id key value pairs providing object expiration information. The value of the rule-id is URL encoded.
- expires String
Date and time at which the object is no longer cacheable.
- id String
The provider-assigned unique ID for this managed resource.
- key String
- last
Modified String Last modified date of the object in RFC1123 format (e.g.,
Mon, 02 Jan 2006 15:04:05 MST
)- metadata Map<String,String>
Map of metadata stored with the object in S3
- object
Lock StringLegal Hold Status Indicates whether this object has an active legal hold. This field is only returned if you have permission to view an object's legal hold status.
- object
Lock StringMode Object lock retention mode currently in place for this object.
- object
Lock StringRetain Until Date The date and time when this object's object lock will expire.
- server
Side StringEncryption If the object is stored using server-side encryption (KMS or Amazon S3-managed encryption key), this field includes the chosen encryption and algorithm used.
- sse
Kms StringKey Id If present, specifies the ID of the Key Management Service (KMS) master encryption key that was used for the object.
- storage
Class String Storage class information of the object. Available for all objects except for
Standard
storage class objects.- Map<String,String>
Map of tags assigned to the object.
- version
Id String Latest version ID of the object returned.
- website
Redirect StringLocation If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this header in the object metadata.
- range String
- body string
Object data (see limitations above to understand cases in which this field is actually available)
- bucket string
Use the aws_s3_object data source instead
- bucket
Key booleanEnabled (Optional) Whether or not to use Amazon S3 Bucket Keys for SSE-KMS.
- cache
Control string Caching behavior along the request/reply chain.
- content
Disposition string Presentational information for the object.
- content
Encoding string What content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
- content
Language string Language the content is in.
- content
Length number Size of the body in bytes.
- content
Type string Standard MIME type describing the format of the object data.
- etag string
ETag generated for the object (an MD5 sum of the object content in case it's not encrypted)
- expiration string
If the object expiration is configured (see object lifecycle management), the field includes this header. It includes the expiry-date and rule-id key value pairs providing object expiration information. The value of the rule-id is URL encoded.
- expires string
Date and time at which the object is no longer cacheable.
- id string
The provider-assigned unique ID for this managed resource.
- key string
- last
Modified string Last modified date of the object in RFC1123 format (e.g.,
Mon, 02 Jan 2006 15:04:05 MST
)- metadata {[key: string]: string}
Map of metadata stored with the object in S3
- object
Lock stringLegal Hold Status Indicates whether this object has an active legal hold. This field is only returned if you have permission to view an object's legal hold status.
- object
Lock stringMode Object lock retention mode currently in place for this object.
- object
Lock stringRetain Until Date The date and time when this object's object lock will expire.
- server
Side stringEncryption If the object is stored using server-side encryption (KMS or Amazon S3-managed encryption key), this field includes the chosen encryption and algorithm used.
- sse
Kms stringKey Id If present, specifies the ID of the Key Management Service (KMS) master encryption key that was used for the object.
- storage
Class string Storage class information of the object. Available for all objects except for
Standard
storage class objects.- {[key: string]: string}
Map of tags assigned to the object.
- version
Id string Latest version ID of the object returned.
- website
Redirect stringLocation If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this header in the object metadata.
- range string
- body str
Object data (see limitations above to understand cases in which this field is actually available)
- bucket str
Use the aws_s3_object data source instead
- bucket_
key_ boolenabled (Optional) Whether or not to use Amazon S3 Bucket Keys for SSE-KMS.
- cache_
control str Caching behavior along the request/reply chain.
- content_
disposition str Presentational information for the object.
- content_
encoding str What content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
- content_
language str Language the content is in.
- content_
length int Size of the body in bytes.
- content_
type str Standard MIME type describing the format of the object data.
- etag str
ETag generated for the object (an MD5 sum of the object content in case it's not encrypted)
- expiration str
If the object expiration is configured (see object lifecycle management), the field includes this header. It includes the expiry-date and rule-id key value pairs providing object expiration information. The value of the rule-id is URL encoded.
- expires str
Date and time at which the object is no longer cacheable.
- id str
The provider-assigned unique ID for this managed resource.
- key str
- last_
modified str Last modified date of the object in RFC1123 format (e.g.,
Mon, 02 Jan 2006 15:04:05 MST
)- metadata Mapping[str, str]
Map of metadata stored with the object in S3
- object_
lock_ strlegal_ hold_ status Indicates whether this object has an active legal hold. This field is only returned if you have permission to view an object's legal hold status.
- object_
lock_ strmode Object lock retention mode currently in place for this object.
- object_
lock_ strretain_ until_ date The date and time when this object's object lock will expire.
- server_
side_ strencryption If the object is stored using server-side encryption (KMS or Amazon S3-managed encryption key), this field includes the chosen encryption and algorithm used.
- sse_
kms_ strkey_ id If present, specifies the ID of the Key Management Service (KMS) master encryption key that was used for the object.
- storage_
class str Storage class information of the object. Available for all objects except for
Standard
storage class objects.- Mapping[str, str]
Map of tags assigned to the object.
- version_
id str Latest version ID of the object returned.
- website_
redirect_ strlocation If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this header in the object metadata.
- range str
- body String
Object data (see limitations above to understand cases in which this field is actually available)
- bucket String
Use the aws_s3_object data source instead
- bucket
Key BooleanEnabled (Optional) Whether or not to use Amazon S3 Bucket Keys for SSE-KMS.
- cache
Control String Caching behavior along the request/reply chain.
- content
Disposition String Presentational information for the object.
- content
Encoding String What content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
- content
Language String Language the content is in.
- content
Length Number Size of the body in bytes.
- content
Type String Standard MIME type describing the format of the object data.
- etag String
ETag generated for the object (an MD5 sum of the object content in case it's not encrypted)
- expiration String
If the object expiration is configured (see object lifecycle management), the field includes this header. It includes the expiry-date and rule-id key value pairs providing object expiration information. The value of the rule-id is URL encoded.
- expires String
Date and time at which the object is no longer cacheable.
- id String
The provider-assigned unique ID for this managed resource.
- key String
- last
Modified String Last modified date of the object in RFC1123 format (e.g.,
Mon, 02 Jan 2006 15:04:05 MST
)- metadata Map<String>
Map of metadata stored with the object in S3
- object
Lock StringLegal Hold Status Indicates whether this object has an active legal hold. This field is only returned if you have permission to view an object's legal hold status.
- object
Lock StringMode Object lock retention mode currently in place for this object.
- object
Lock StringRetain Until Date The date and time when this object's object lock will expire.
- server
Side StringEncryption If the object is stored using server-side encryption (KMS or Amazon S3-managed encryption key), this field includes the chosen encryption and algorithm used.
- sse
Kms StringKey Id If present, specifies the ID of the Key Management Service (KMS) master encryption key that was used for the object.
- storage
Class String Storage class information of the object. Available for all objects except for
Standard
storage class objects.- Map<String>
Map of tags assigned to the object.
- version
Id String Latest version ID of the object returned.
- website
Redirect StringLocation If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this header in the object metadata.
- range String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.