com.pulumi.aws.lambda.inputs.EventSourceMappingSourceAccessConfigurationArgs 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.lambda.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class EventSourceMappingSourceAccessConfigurationArgs extends com.pulumi.resources.ResourceArgs {
public static final EventSourceMappingSourceAccessConfigurationArgs Empty = new EventSourceMappingSourceAccessConfigurationArgs();
/**
* The type of authentication protocol, VPC components, or virtual host for your event source. For valid values, refer to the [AWS documentation](https://docs.aws.amazon.com/lambda/latest/api/API_SourceAccessConfiguration.html).
*
*/
@Import(name="type", required=true)
private Output type;
/**
* @return The type of authentication protocol, VPC components, or virtual host for your event source. For valid values, refer to the [AWS documentation](https://docs.aws.amazon.com/lambda/latest/api/API_SourceAccessConfiguration.html).
*
*/
public Output type() {
return this.type;
}
/**
* The URI for this configuration. For type `VPC_SUBNET` the value should be `subnet:subnet_id` where `subnet_id` is the value you would find in an aws.ec2.Subnet resource's id attribute. For type `VPC_SECURITY_GROUP` the value should be `security_group:security_group_id` where `security_group_id` is the value you would find in an aws.ec2.SecurityGroup resource's id attribute.
*
*/
@Import(name="uri", required=true)
private Output uri;
/**
* @return The URI for this configuration. For type `VPC_SUBNET` the value should be `subnet:subnet_id` where `subnet_id` is the value you would find in an aws.ec2.Subnet resource's id attribute. For type `VPC_SECURITY_GROUP` the value should be `security_group:security_group_id` where `security_group_id` is the value you would find in an aws.ec2.SecurityGroup resource's id attribute.
*
*/
public Output uri() {
return this.uri;
}
private EventSourceMappingSourceAccessConfigurationArgs() {}
private EventSourceMappingSourceAccessConfigurationArgs(EventSourceMappingSourceAccessConfigurationArgs $) {
this.type = $.type;
this.uri = $.uri;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(EventSourceMappingSourceAccessConfigurationArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private EventSourceMappingSourceAccessConfigurationArgs $;
public Builder() {
$ = new EventSourceMappingSourceAccessConfigurationArgs();
}
public Builder(EventSourceMappingSourceAccessConfigurationArgs defaults) {
$ = new EventSourceMappingSourceAccessConfigurationArgs(Objects.requireNonNull(defaults));
}
/**
* @param type The type of authentication protocol, VPC components, or virtual host for your event source. For valid values, refer to the [AWS documentation](https://docs.aws.amazon.com/lambda/latest/api/API_SourceAccessConfiguration.html).
*
* @return builder
*
*/
public Builder type(Output type) {
$.type = type;
return this;
}
/**
* @param type The type of authentication protocol, VPC components, or virtual host for your event source. For valid values, refer to the [AWS documentation](https://docs.aws.amazon.com/lambda/latest/api/API_SourceAccessConfiguration.html).
*
* @return builder
*
*/
public Builder type(String type) {
return type(Output.of(type));
}
/**
* @param uri The URI for this configuration. For type `VPC_SUBNET` the value should be `subnet:subnet_id` where `subnet_id` is the value you would find in an aws.ec2.Subnet resource's id attribute. For type `VPC_SECURITY_GROUP` the value should be `security_group:security_group_id` where `security_group_id` is the value you would find in an aws.ec2.SecurityGroup resource's id attribute.
*
* @return builder
*
*/
public Builder uri(Output uri) {
$.uri = uri;
return this;
}
/**
* @param uri The URI for this configuration. For type `VPC_SUBNET` the value should be `subnet:subnet_id` where `subnet_id` is the value you would find in an aws.ec2.Subnet resource's id attribute. For type `VPC_SECURITY_GROUP` the value should be `security_group:security_group_id` where `security_group_id` is the value you would find in an aws.ec2.SecurityGroup resource's id attribute.
*
* @return builder
*
*/
public Builder uri(String uri) {
return uri(Output.of(uri));
}
public EventSourceMappingSourceAccessConfigurationArgs build() {
if ($.type == null) {
throw new MissingRequiredPropertyException("EventSourceMappingSourceAccessConfigurationArgs", "type");
}
if ($.uri == null) {
throw new MissingRequiredPropertyException("EventSourceMappingSourceAccessConfigurationArgs", "uri");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy