
com.pulumi.aws.s3control.ObjectLambdaAccessPoint Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.s3control;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.s3control.ObjectLambdaAccessPointArgs;
import com.pulumi.aws.s3control.inputs.ObjectLambdaAccessPointState;
import com.pulumi.aws.s3control.outputs.ObjectLambdaAccessPointConfiguration;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import javax.annotation.Nullable;
/**
* 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
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.BucketV2Args;
* 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 example = new BucketV2("example", BucketV2Args.builder()
* .bucket("example")
* .build());
*
* var exampleAccessPoint = new AccessPoint("exampleAccessPoint", AccessPointArgs.builder()
* .bucket(example.id())
* .name("example")
* .build());
*
* var exampleObjectLambdaAccessPoint = new ObjectLambdaAccessPoint("exampleObjectLambdaAccessPoint", ObjectLambdaAccessPointArgs.builder()
* .name("example")
* .configuration(ObjectLambdaAccessPointConfigurationArgs.builder()
* .supportingAccessPoint(exampleAccessPoint.arn())
* .transformationConfigurations(ObjectLambdaAccessPointConfigurationTransformationConfigurationArgs.builder()
* .actions("GetObject")
* .contentTransformation(ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationArgs.builder()
* .awsLambda(ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationAwsLambdaArgs.builder()
* .functionArn(exampleAwsLambdaFunction.arn())
* .build())
* .build())
* .build())
* .build())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* Using `pulumi import`, import Object Lambda Access Points using the `account_id` and `name`, separated by a colon (`:`). For example:
*
* ```sh
* $ pulumi import aws:s3control/objectLambdaAccessPoint:ObjectLambdaAccessPoint example 123456789012:example
* ```
*
*/
@ResourceType(type="aws:s3control/objectLambdaAccessPoint:ObjectLambdaAccessPoint")
public class ObjectLambdaAccessPoint extends com.pulumi.resources.CustomResource {
/**
* 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.
*
*/
@Export(name="accountId", refs={String.class}, tree="[0]")
private Output accountId;
/**
* @return 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.
*
*/
public Output accountId() {
return this.accountId;
}
/**
* Alias for the S3 Object Lambda Access Point.
*
*/
@Export(name="alias", refs={String.class}, tree="[0]")
private Output alias;
/**
* @return Alias for the S3 Object Lambda Access Point.
*
*/
public Output alias() {
return this.alias;
}
/**
* Amazon Resource Name (ARN) of the Object Lambda Access Point.
*
*/
@Export(name="arn", refs={String.class}, tree="[0]")
private Output arn;
/**
* @return Amazon Resource Name (ARN) of the Object Lambda Access Point.
*
*/
public Output arn() {
return this.arn;
}
/**
* A configuration block containing details about the Object Lambda Access Point. See Configuration below for more details.
*
*/
@Export(name="configuration", refs={ObjectLambdaAccessPointConfiguration.class}, tree="[0]")
private Output configuration;
/**
* @return A configuration block containing details about the Object Lambda Access Point. See Configuration below for more details.
*
*/
public Output configuration() {
return this.configuration;
}
/**
* The name for this Object Lambda Access Point.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return The name for this Object Lambda Access Point.
*
*/
public Output name() {
return this.name;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public ObjectLambdaAccessPoint(java.lang.String name) {
this(name, ObjectLambdaAccessPointArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public ObjectLambdaAccessPoint(java.lang.String name, ObjectLambdaAccessPointArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public ObjectLambdaAccessPoint(java.lang.String name, ObjectLambdaAccessPointArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("aws:s3control/objectLambdaAccessPoint:ObjectLambdaAccessPoint", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private ObjectLambdaAccessPoint(java.lang.String name, Output id, @Nullable ObjectLambdaAccessPointState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("aws:s3control/objectLambdaAccessPoint:ObjectLambdaAccessPoint", name, state, makeResourceOptions(options, id), false);
}
private static ObjectLambdaAccessPointArgs makeArgs(ObjectLambdaAccessPointArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? ObjectLambdaAccessPointArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static ObjectLambdaAccessPoint get(java.lang.String name, Output id, @Nullable ObjectLambdaAccessPointState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new ObjectLambdaAccessPoint(name, id, state, options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy