com.pulumi.aws.s3control.outputs.ObjectLambdaAccessPointConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
The newest version!
// *** 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.outputs;
import com.pulumi.aws.s3control.outputs.ObjectLambdaAccessPointConfigurationTransformationConfiguration;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ObjectLambdaAccessPointConfiguration {
/**
* @return Allowed features. Valid values: `GetObject-Range`, `GetObject-PartNumber`.
*
*/
private @Nullable List allowedFeatures;
/**
* @return Whether or not the CloudWatch metrics configuration is enabled.
*
*/
private @Nullable Boolean cloudWatchMetricsEnabled;
/**
* @return Standard access point associated with the Object Lambda Access Point.
*
*/
private String supportingAccessPoint;
/**
* @return List of transformation configurations for the Object Lambda Access Point. See Transformation Configuration below for more details.
*
*/
private List transformationConfigurations;
private ObjectLambdaAccessPointConfiguration() {}
/**
* @return Allowed features. Valid values: `GetObject-Range`, `GetObject-PartNumber`.
*
*/
public List allowedFeatures() {
return this.allowedFeatures == null ? List.of() : this.allowedFeatures;
}
/**
* @return Whether or not the CloudWatch metrics configuration is enabled.
*
*/
public Optional cloudWatchMetricsEnabled() {
return Optional.ofNullable(this.cloudWatchMetricsEnabled);
}
/**
* @return Standard access point associated with the Object Lambda Access Point.
*
*/
public String supportingAccessPoint() {
return this.supportingAccessPoint;
}
/**
* @return List of transformation configurations for the Object Lambda Access Point. See Transformation Configuration below for more details.
*
*/
public List transformationConfigurations() {
return this.transformationConfigurations;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ObjectLambdaAccessPointConfiguration defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List allowedFeatures;
private @Nullable Boolean cloudWatchMetricsEnabled;
private String supportingAccessPoint;
private List transformationConfigurations;
public Builder() {}
public Builder(ObjectLambdaAccessPointConfiguration defaults) {
Objects.requireNonNull(defaults);
this.allowedFeatures = defaults.allowedFeatures;
this.cloudWatchMetricsEnabled = defaults.cloudWatchMetricsEnabled;
this.supportingAccessPoint = defaults.supportingAccessPoint;
this.transformationConfigurations = defaults.transformationConfigurations;
}
@CustomType.Setter
public Builder allowedFeatures(@Nullable List allowedFeatures) {
this.allowedFeatures = allowedFeatures;
return this;
}
public Builder allowedFeatures(String... allowedFeatures) {
return allowedFeatures(List.of(allowedFeatures));
}
@CustomType.Setter
public Builder cloudWatchMetricsEnabled(@Nullable Boolean cloudWatchMetricsEnabled) {
this.cloudWatchMetricsEnabled = cloudWatchMetricsEnabled;
return this;
}
@CustomType.Setter
public Builder supportingAccessPoint(String supportingAccessPoint) {
if (supportingAccessPoint == null) {
throw new MissingRequiredPropertyException("ObjectLambdaAccessPointConfiguration", "supportingAccessPoint");
}
this.supportingAccessPoint = supportingAccessPoint;
return this;
}
@CustomType.Setter
public Builder transformationConfigurations(List transformationConfigurations) {
if (transformationConfigurations == null) {
throw new MissingRequiredPropertyException("ObjectLambdaAccessPointConfiguration", "transformationConfigurations");
}
this.transformationConfigurations = transformationConfigurations;
return this;
}
public Builder transformationConfigurations(ObjectLambdaAccessPointConfigurationTransformationConfiguration... transformationConfigurations) {
return transformationConfigurations(List.of(transformationConfigurations));
}
public ObjectLambdaAccessPointConfiguration build() {
final var _resultValue = new ObjectLambdaAccessPointConfiguration();
_resultValue.allowedFeatures = allowedFeatures;
_resultValue.cloudWatchMetricsEnabled = cloudWatchMetricsEnabled;
_resultValue.supportingAccessPoint = supportingAccessPoint;
_resultValue.transformationConfigurations = transformationConfigurations;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy