All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.lambda.inputs.FunctionDeadLetterConfigArgs 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.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 FunctionDeadLetterConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final FunctionDeadLetterConfigArgs Empty = new FunctionDeadLetterConfigArgs();

    /**
     * ARN of an SNS topic or SQS queue to notify when an invocation fails. If this option is used, the function's IAM role must be granted suitable access to write to the target object, which means allowing either the `sns:Publish` or `sqs:SendMessage` action on this ARN, depending on which service is targeted.
     * 
     */
    @Import(name="targetArn", required=true)
    private Output targetArn;

    /**
     * @return ARN of an SNS topic or SQS queue to notify when an invocation fails. If this option is used, the function's IAM role must be granted suitable access to write to the target object, which means allowing either the `sns:Publish` or `sqs:SendMessage` action on this ARN, depending on which service is targeted.
     * 
     */
    public Output targetArn() {
        return this.targetArn;
    }

    private FunctionDeadLetterConfigArgs() {}

    private FunctionDeadLetterConfigArgs(FunctionDeadLetterConfigArgs $) {
        this.targetArn = $.targetArn;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(FunctionDeadLetterConfigArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private FunctionDeadLetterConfigArgs $;

        public Builder() {
            $ = new FunctionDeadLetterConfigArgs();
        }

        public Builder(FunctionDeadLetterConfigArgs defaults) {
            $ = new FunctionDeadLetterConfigArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param targetArn ARN of an SNS topic or SQS queue to notify when an invocation fails. If this option is used, the function's IAM role must be granted suitable access to write to the target object, which means allowing either the `sns:Publish` or `sqs:SendMessage` action on this ARN, depending on which service is targeted.
         * 
         * @return builder
         * 
         */
        public Builder targetArn(Output targetArn) {
            $.targetArn = targetArn;
            return this;
        }

        /**
         * @param targetArn ARN of an SNS topic or SQS queue to notify when an invocation fails. If this option is used, the function's IAM role must be granted suitable access to write to the target object, which means allowing either the `sns:Publish` or `sqs:SendMessage` action on this ARN, depending on which service is targeted.
         * 
         * @return builder
         * 
         */
        public Builder targetArn(String targetArn) {
            return targetArn(Output.of(targetArn));
        }

        public FunctionDeadLetterConfigArgs build() {
            if ($.targetArn == null) {
                throw new MissingRequiredPropertyException("FunctionDeadLetterConfigArgs", "targetArn");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy