aws logo
AWS Classic v5.41.0, May 15 23

aws.s3control.ObjectLambdaAccessPoint

Explore with Pulumi AI

Provides a resource to manage an S3 Object Lambda Access Point. An Object Lambda access point is associated with exactly one standard access point and thus one Amazon S3 bucket.

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var exampleBucketV2 = new Aws.S3.BucketV2("exampleBucketV2");

    var exampleAccessPoint = new Aws.S3.AccessPoint("exampleAccessPoint", new()
    {
        Bucket = exampleBucketV2.Id,
    });

    var exampleObjectLambdaAccessPoint = new Aws.S3Control.ObjectLambdaAccessPoint("exampleObjectLambdaAccessPoint", new()
    {
        Configuration = new Aws.S3Control.Inputs.ObjectLambdaAccessPointConfigurationArgs
        {
            SupportingAccessPoint = exampleAccessPoint.Arn,
            TransformationConfigurations = new[]
            {
                new Aws.S3Control.Inputs.ObjectLambdaAccessPointConfigurationTransformationConfigurationArgs
                {
                    Actions = new[]
                    {
                        "GetObject",
                    },
                    ContentTransformation = new Aws.S3Control.Inputs.ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationArgs
                    {
                        AwsLambda = new Aws.S3Control.Inputs.ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationAwsLambdaArgs
                        {
                            FunctionArn = aws_lambda_function.Example.Arn,
                        },
                    },
                },
            },
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/s3"
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/s3control"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleBucketV2, err := s3.NewBucketV2(ctx, "exampleBucketV2", nil)
		if err != nil {
			return err
		}
		exampleAccessPoint, err := s3.NewAccessPoint(ctx, "exampleAccessPoint", &s3.AccessPointArgs{
			Bucket: exampleBucketV2.ID(),
		})
		if err != nil {
			return err
		}
		_, err = s3control.NewObjectLambdaAccessPoint(ctx, "exampleObjectLambdaAccessPoint", &s3control.ObjectLambdaAccessPointArgs{
			Configuration: &s3control.ObjectLambdaAccessPointConfigurationArgs{
				SupportingAccessPoint: exampleAccessPoint.Arn,
				TransformationConfigurations: s3control.ObjectLambdaAccessPointConfigurationTransformationConfigurationArray{
					&s3control.ObjectLambdaAccessPointConfigurationTransformationConfigurationArgs{
						Actions: pulumi.StringArray{
							pulumi.String("GetObject"),
						},
						ContentTransformation: &s3control.ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationArgs{
							AwsLambda: &s3control.ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationAwsLambdaArgs{
								FunctionArn: pulumi.Any(aws_lambda_function.Example.Arn),
							},
						},
					},
				},
			},
		})
		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.BucketV2;
import com.pulumi.aws.s3.AccessPoint;
import com.pulumi.aws.s3.AccessPointArgs;
import com.pulumi.aws.s3control.ObjectLambdaAccessPoint;
import com.pulumi.aws.s3control.ObjectLambdaAccessPointArgs;
import com.pulumi.aws.s3control.inputs.ObjectLambdaAccessPointConfigurationArgs;
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) {
        var exampleBucketV2 = new BucketV2("exampleBucketV2");

        var exampleAccessPoint = new AccessPoint("exampleAccessPoint", AccessPointArgs.builder()        
            .bucket(exampleBucketV2.id())
            .build());

        var exampleObjectLambdaAccessPoint = new ObjectLambdaAccessPoint("exampleObjectLambdaAccessPoint", ObjectLambdaAccessPointArgs.builder()        
            .configuration(ObjectLambdaAccessPointConfigurationArgs.builder()
                .supportingAccessPoint(exampleAccessPoint.arn())
                .transformationConfigurations(ObjectLambdaAccessPointConfigurationTransformationConfigurationArgs.builder()
                    .actions("GetObject")
                    .contentTransformation(ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationArgs.builder()
                        .awsLambda(ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationAwsLambdaArgs.builder()
                            .functionArn(aws_lambda_function.example().arn())
                            .build())
                        .build())
                    .build())
                .build())
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example_bucket_v2 = aws.s3.BucketV2("exampleBucketV2")
example_access_point = aws.s3.AccessPoint("exampleAccessPoint", bucket=example_bucket_v2.id)
example_object_lambda_access_point = aws.s3control.ObjectLambdaAccessPoint("exampleObjectLambdaAccessPoint", configuration=aws.s3control.ObjectLambdaAccessPointConfigurationArgs(
    supporting_access_point=example_access_point.arn,
    transformation_configurations=[aws.s3control.ObjectLambdaAccessPointConfigurationTransformationConfigurationArgs(
        actions=["GetObject"],
        content_transformation=aws.s3control.ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationArgs(
            aws_lambda=aws.s3control.ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationAwsLambdaArgs(
                function_arn=aws_lambda_function["example"]["arn"],
            ),
        ),
    )],
))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const exampleBucketV2 = new aws.s3.BucketV2("exampleBucketV2", {});
const exampleAccessPoint = new aws.s3.AccessPoint("exampleAccessPoint", {bucket: exampleBucketV2.id});
const exampleObjectLambdaAccessPoint = new aws.s3control.ObjectLambdaAccessPoint("exampleObjectLambdaAccessPoint", {configuration: {
    supportingAccessPoint: exampleAccessPoint.arn,
    transformationConfigurations: [{
        actions: ["GetObject"],
        contentTransformation: {
            awsLambda: {
                functionArn: aws_lambda_function.example.arn,
            },
        },
    }],
}});
resources:
  exampleBucketV2:
    type: aws:s3:BucketV2
  exampleAccessPoint:
    type: aws:s3:AccessPoint
    properties:
      bucket: ${exampleBucketV2.id}
  exampleObjectLambdaAccessPoint:
    type: aws:s3control:ObjectLambdaAccessPoint
    properties:
      configuration:
        supportingAccessPoint: ${exampleAccessPoint.arn}
        transformationConfigurations:
          - actions:
              - GetObject
            contentTransformation:
              awsLambda:
                functionArn: ${aws_lambda_function.example.arn}

Create ObjectLambdaAccessPoint Resource

new ObjectLambdaAccessPoint(name: string, args: ObjectLambdaAccessPointArgs, opts?: CustomResourceOptions);
@overload
def ObjectLambdaAccessPoint(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            account_id: Optional[str] = None,
                            configuration: Optional[ObjectLambdaAccessPointConfigurationArgs] = None,
                            name: Optional[str] = None)
@overload
def ObjectLambdaAccessPoint(resource_name: str,
                            args: ObjectLambdaAccessPointArgs,
                            opts: Optional[ResourceOptions] = None)
func NewObjectLambdaAccessPoint(ctx *Context, name string, args ObjectLambdaAccessPointArgs, opts ...ResourceOption) (*ObjectLambdaAccessPoint, error)
public ObjectLambdaAccessPoint(string name, ObjectLambdaAccessPointArgs args, CustomResourceOptions? opts = null)
public ObjectLambdaAccessPoint(String name, ObjectLambdaAccessPointArgs args)
public ObjectLambdaAccessPoint(String name, ObjectLambdaAccessPointArgs args, CustomResourceOptions options)
type: aws:s3control:ObjectLambdaAccessPoint
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ObjectLambdaAccessPointArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args ObjectLambdaAccessPointArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ObjectLambdaAccessPointArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ObjectLambdaAccessPointArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ObjectLambdaAccessPointArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ObjectLambdaAccessPoint Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The ObjectLambdaAccessPoint resource accepts the following input properties:

Configuration ObjectLambdaAccessPointConfigurationArgs

A configuration block containing details about the Object Lambda Access Point. See Configuration below for more details.

AccountId string

The AWS account ID for the owner of the bucket for which you want to create an Object Lambda Access Point. Defaults to automatically determined account ID of the AWS provider.

Name string

The name for this Object Lambda Access Point.

Configuration ObjectLambdaAccessPointConfigurationArgs

A configuration block containing details about the Object Lambda Access Point. See Configuration below for more details.

AccountId string

The AWS account ID for the owner of the bucket for which you want to create an Object Lambda Access Point. Defaults to automatically determined account ID of the AWS provider.

Name string

The name for this Object Lambda Access Point.

configuration ObjectLambdaAccessPointConfigurationArgs

A configuration block containing details about the Object Lambda Access Point. See Configuration below for more details.

accountId String

The AWS account ID for the owner of the bucket for which you want to create an Object Lambda Access Point. Defaults to automatically determined account ID of the AWS provider.

name String

The name for this Object Lambda Access Point.

configuration ObjectLambdaAccessPointConfigurationArgs

A configuration block containing details about the Object Lambda Access Point. See Configuration below for more details.

accountId string

The AWS account ID for the owner of the bucket for which you want to create an Object Lambda Access Point. Defaults to automatically determined account ID of the AWS provider.

name string

The name for this Object Lambda Access Point.

configuration ObjectLambdaAccessPointConfigurationArgs

A configuration block containing details about the Object Lambda Access Point. See Configuration below for more details.

account_id str

The AWS account ID for the owner of the bucket for which you want to create an Object Lambda Access Point. Defaults to automatically determined account ID of the AWS provider.

name str

The name for this Object Lambda Access Point.

configuration Property Map

A configuration block containing details about the Object Lambda Access Point. See Configuration below for more details.

accountId String

The AWS account ID for the owner of the bucket for which you want to create an Object Lambda Access Point. Defaults to automatically determined account ID of the AWS provider.

name String

The name for this Object Lambda Access Point.

Outputs

All input properties are implicitly available as output properties. Additionally, the ObjectLambdaAccessPoint resource produces the following output properties:

Arn string

Amazon Resource Name (ARN) of the Object Lambda Access Point.

Id string

The provider-assigned unique ID for this managed resource.

Arn string

Amazon Resource Name (ARN) of the Object Lambda Access Point.

Id string

The provider-assigned unique ID for this managed resource.

arn String

Amazon Resource Name (ARN) of the Object Lambda Access Point.

id String

The provider-assigned unique ID for this managed resource.

arn string

Amazon Resource Name (ARN) of the Object Lambda Access Point.

id string

The provider-assigned unique ID for this managed resource.

arn str

Amazon Resource Name (ARN) of the Object Lambda Access Point.

id str

The provider-assigned unique ID for this managed resource.

arn String

Amazon Resource Name (ARN) of the Object Lambda Access Point.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing ObjectLambdaAccessPoint Resource

Get an existing ObjectLambdaAccessPoint resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ObjectLambdaAccessPointState, opts?: CustomResourceOptions): ObjectLambdaAccessPoint
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        arn: Optional[str] = None,
        configuration: Optional[ObjectLambdaAccessPointConfigurationArgs] = None,
        name: Optional[str] = None) -> ObjectLambdaAccessPoint
func GetObjectLambdaAccessPoint(ctx *Context, name string, id IDInput, state *ObjectLambdaAccessPointState, opts ...ResourceOption) (*ObjectLambdaAccessPoint, error)
public static ObjectLambdaAccessPoint Get(string name, Input<string> id, ObjectLambdaAccessPointState? state, CustomResourceOptions? opts = null)
public static ObjectLambdaAccessPoint get(String name, Output<String> id, ObjectLambdaAccessPointState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AccountId string

The AWS account ID for the owner of the bucket for which you want to create an Object Lambda Access Point. Defaults to automatically determined account ID of the AWS provider.

Arn string

Amazon Resource Name (ARN) of the Object Lambda Access Point.

Configuration ObjectLambdaAccessPointConfigurationArgs

A configuration block containing details about the Object Lambda Access Point. See Configuration below for more details.

Name string

The name for this Object Lambda Access Point.

AccountId string

The AWS account ID for the owner of the bucket for which you want to create an Object Lambda Access Point. Defaults to automatically determined account ID of the AWS provider.

Arn string

Amazon Resource Name (ARN) of the Object Lambda Access Point.

Configuration ObjectLambdaAccessPointConfigurationArgs

A configuration block containing details about the Object Lambda Access Point. See Configuration below for more details.

Name string

The name for this Object Lambda Access Point.

accountId String

The AWS account ID for the owner of the bucket for which you want to create an Object Lambda Access Point. Defaults to automatically determined account ID of the AWS provider.

arn String

Amazon Resource Name (ARN) of the Object Lambda Access Point.

configuration ObjectLambdaAccessPointConfigurationArgs

A configuration block containing details about the Object Lambda Access Point. See Configuration below for more details.

name String

The name for this Object Lambda Access Point.

accountId string

The AWS account ID for the owner of the bucket for which you want to create an Object Lambda Access Point. Defaults to automatically determined account ID of the AWS provider.

arn string

Amazon Resource Name (ARN) of the Object Lambda Access Point.

configuration ObjectLambdaAccessPointConfigurationArgs

A configuration block containing details about the Object Lambda Access Point. See Configuration below for more details.

name string

The name for this Object Lambda Access Point.

account_id str

The AWS account ID for the owner of the bucket for which you want to create an Object Lambda Access Point. Defaults to automatically determined account ID of the AWS provider.

arn str

Amazon Resource Name (ARN) of the Object Lambda Access Point.

configuration ObjectLambdaAccessPointConfigurationArgs

A configuration block containing details about the Object Lambda Access Point. See Configuration below for more details.

name str

The name for this Object Lambda Access Point.

accountId String

The AWS account ID for the owner of the bucket for which you want to create an Object Lambda Access Point. Defaults to automatically determined account ID of the AWS provider.

arn String

Amazon Resource Name (ARN) of the Object Lambda Access Point.

configuration Property Map

A configuration block containing details about the Object Lambda Access Point. See Configuration below for more details.

name String

The name for this Object Lambda Access Point.

Supporting Types

ObjectLambdaAccessPointConfiguration

SupportingAccessPoint string

Standard access point associated with the Object Lambda Access Point.

TransformationConfigurations List<ObjectLambdaAccessPointConfigurationTransformationConfiguration>

List of transformation configurations for the Object Lambda Access Point. See Transformation Configuration below for more details.

AllowedFeatures List<string>

Allowed features. Valid values: GetObject-Range, GetObject-PartNumber.

CloudWatchMetricsEnabled bool

Whether or not the CloudWatch metrics configuration is enabled.

SupportingAccessPoint string

Standard access point associated with the Object Lambda Access Point.

TransformationConfigurations []ObjectLambdaAccessPointConfigurationTransformationConfiguration

List of transformation configurations for the Object Lambda Access Point. See Transformation Configuration below for more details.

AllowedFeatures []string

Allowed features. Valid values: GetObject-Range, GetObject-PartNumber.

CloudWatchMetricsEnabled bool

Whether or not the CloudWatch metrics configuration is enabled.

supportingAccessPoint String

Standard access point associated with the Object Lambda Access Point.

transformationConfigurations List<ObjectLambdaAccessPointConfigurationTransformationConfiguration>

List of transformation configurations for the Object Lambda Access Point. See Transformation Configuration below for more details.

allowedFeatures List<String>

Allowed features. Valid values: GetObject-Range, GetObject-PartNumber.

cloudWatchMetricsEnabled Boolean

Whether or not the CloudWatch metrics configuration is enabled.

supportingAccessPoint string

Standard access point associated with the Object Lambda Access Point.

transformationConfigurations ObjectLambdaAccessPointConfigurationTransformationConfiguration[]

List of transformation configurations for the Object Lambda Access Point. See Transformation Configuration below for more details.

allowedFeatures string[]

Allowed features. Valid values: GetObject-Range, GetObject-PartNumber.

cloudWatchMetricsEnabled boolean

Whether or not the CloudWatch metrics configuration is enabled.

supporting_access_point str

Standard access point associated with the Object Lambda Access Point.

transformation_configurations Sequence[ObjectLambdaAccessPointConfigurationTransformationConfiguration]

List of transformation configurations for the Object Lambda Access Point. See Transformation Configuration below for more details.

allowed_features Sequence[str]

Allowed features. Valid values: GetObject-Range, GetObject-PartNumber.

cloud_watch_metrics_enabled bool

Whether or not the CloudWatch metrics configuration is enabled.

supportingAccessPoint String

Standard access point associated with the Object Lambda Access Point.

transformationConfigurations List<Property Map>

List of transformation configurations for the Object Lambda Access Point. See Transformation Configuration below for more details.

allowedFeatures List<String>

Allowed features. Valid values: GetObject-Range, GetObject-PartNumber.

cloudWatchMetricsEnabled Boolean

Whether or not the CloudWatch metrics configuration is enabled.

ObjectLambdaAccessPointConfigurationTransformationConfiguration

Actions List<string>

The actions of an Object Lambda Access Point configuration. Valid values: GetObject.

ContentTransformation ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformation

The content transformation of an Object Lambda Access Point configuration. See Content Transformation below for more details.

Actions []string

The actions of an Object Lambda Access Point configuration. Valid values: GetObject.

ContentTransformation ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformation

The content transformation of an Object Lambda Access Point configuration. See Content Transformation below for more details.

actions List<String>

The actions of an Object Lambda Access Point configuration. Valid values: GetObject.

contentTransformation ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformation

The content transformation of an Object Lambda Access Point configuration. See Content Transformation below for more details.

actions string[]

The actions of an Object Lambda Access Point configuration. Valid values: GetObject.

contentTransformation ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformation

The content transformation of an Object Lambda Access Point configuration. See Content Transformation below for more details.

actions Sequence[str]

The actions of an Object Lambda Access Point configuration. Valid values: GetObject.

content_transformation ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformation

The content transformation of an Object Lambda Access Point configuration. See Content Transformation below for more details.

actions List<String>

The actions of an Object Lambda Access Point configuration. Valid values: GetObject.

contentTransformation Property Map

The content transformation of an Object Lambda Access Point configuration. See Content Transformation below for more details.

ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformation

AwsLambda ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationAwsLambda

Configuration for an AWS Lambda function. See AWS Lambda below for more details.

AwsLambda ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationAwsLambda

Configuration for an AWS Lambda function. See AWS Lambda below for more details.

awsLambda ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationAwsLambda

Configuration for an AWS Lambda function. See AWS Lambda below for more details.

awsLambda ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationAwsLambda

Configuration for an AWS Lambda function. See AWS Lambda below for more details.

aws_lambda ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationAwsLambda

Configuration for an AWS Lambda function. See AWS Lambda below for more details.

awsLambda Property Map

Configuration for an AWS Lambda function. See AWS Lambda below for more details.

ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationAwsLambda

FunctionArn string

The Amazon Resource Name (ARN) of the AWS Lambda function.

FunctionPayload string

Additional JSON that provides supplemental data to the Lambda function used to transform objects.

FunctionArn string

The Amazon Resource Name (ARN) of the AWS Lambda function.

FunctionPayload string

Additional JSON that provides supplemental data to the Lambda function used to transform objects.

functionArn String

The Amazon Resource Name (ARN) of the AWS Lambda function.

functionPayload String

Additional JSON that provides supplemental data to the Lambda function used to transform objects.

functionArn string

The Amazon Resource Name (ARN) of the AWS Lambda function.

functionPayload string

Additional JSON that provides supplemental data to the Lambda function used to transform objects.

function_arn str

The Amazon Resource Name (ARN) of the AWS Lambda function.

function_payload str

Additional JSON that provides supplemental data to the Lambda function used to transform objects.

functionArn String

The Amazon Resource Name (ARN) of the AWS Lambda function.

functionPayload String

Additional JSON that provides supplemental data to the Lambda function used to transform objects.

Import

Object Lambda Access Points can be imported using the account_id and name, separated by a colon (:), e.g.

 $ pulumi import aws:s3control/objectLambdaAccessPoint:ObjectLambdaAccessPoint example 123456789012:example

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.