Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.aws.cloudwatch.EventApiDestinationArgs Maven / Gradle / Ivy
Go to download
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** 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.cloudwatch;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class EventApiDestinationArgs extends com.pulumi.resources.ResourceArgs {
public static final EventApiDestinationArgs Empty = new EventApiDestinationArgs();
/**
* ARN of the EventBridge Connection to use for the API Destination.
*
*/
@Import(name="connectionArn", required=true)
private Output connectionArn;
/**
* @return ARN of the EventBridge Connection to use for the API Destination.
*
*/
public Output connectionArn() {
return this.connectionArn;
}
/**
* The description of the new API Destination. Maximum of 512 characters.
*
*/
@Import(name="description")
private @Nullable Output description;
/**
* @return The description of the new API Destination. Maximum of 512 characters.
*
*/
public Optional> description() {
return Optional.ofNullable(this.description);
}
/**
* Select the HTTP method used for the invocation endpoint, such as GET, POST, PUT, etc.
*
*/
@Import(name="httpMethod", required=true)
private Output httpMethod;
/**
* @return Select the HTTP method used for the invocation endpoint, such as GET, POST, PUT, etc.
*
*/
public Output httpMethod() {
return this.httpMethod;
}
/**
* URL endpoint to invoke as a target. This could be a valid endpoint generated by a partner service. You can include "*" as path parameters wildcards to be set from the Target HttpParameters.
*
*/
@Import(name="invocationEndpoint", required=true)
private Output invocationEndpoint;
/**
* @return URL endpoint to invoke as a target. This could be a valid endpoint generated by a partner service. You can include "*" as path parameters wildcards to be set from the Target HttpParameters.
*
*/
public Output invocationEndpoint() {
return this.invocationEndpoint;
}
/**
* Enter the maximum number of invocations per second to allow for this destination. Enter a value greater than 0 (default 300).
*
*/
@Import(name="invocationRateLimitPerSecond")
private @Nullable Output invocationRateLimitPerSecond;
/**
* @return Enter the maximum number of invocations per second to allow for this destination. Enter a value greater than 0 (default 300).
*
*/
public Optional> invocationRateLimitPerSecond() {
return Optional.ofNullable(this.invocationRateLimitPerSecond);
}
/**
* The name of the new API Destination. The name must be unique for your account. Maximum of 64 characters consisting of numbers, lower/upper case letters, .,-,_.
*
*/
@Import(name="name")
private @Nullable Output name;
/**
* @return The name of the new API Destination. The name must be unique for your account. Maximum of 64 characters consisting of numbers, lower/upper case letters, .,-,_.
*
*/
public Optional> name() {
return Optional.ofNullable(this.name);
}
private EventApiDestinationArgs() {}
private EventApiDestinationArgs(EventApiDestinationArgs $) {
this.connectionArn = $.connectionArn;
this.description = $.description;
this.httpMethod = $.httpMethod;
this.invocationEndpoint = $.invocationEndpoint;
this.invocationRateLimitPerSecond = $.invocationRateLimitPerSecond;
this.name = $.name;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(EventApiDestinationArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private EventApiDestinationArgs $;
public Builder() {
$ = new EventApiDestinationArgs();
}
public Builder(EventApiDestinationArgs defaults) {
$ = new EventApiDestinationArgs(Objects.requireNonNull(defaults));
}
/**
* @param connectionArn ARN of the EventBridge Connection to use for the API Destination.
*
* @return builder
*
*/
public Builder connectionArn(Output connectionArn) {
$.connectionArn = connectionArn;
return this;
}
/**
* @param connectionArn ARN of the EventBridge Connection to use for the API Destination.
*
* @return builder
*
*/
public Builder connectionArn(String connectionArn) {
return connectionArn(Output.of(connectionArn));
}
/**
* @param description The description of the new API Destination. Maximum of 512 characters.
*
* @return builder
*
*/
public Builder description(@Nullable Output description) {
$.description = description;
return this;
}
/**
* @param description The description of the new API Destination. Maximum of 512 characters.
*
* @return builder
*
*/
public Builder description(String description) {
return description(Output.of(description));
}
/**
* @param httpMethod Select the HTTP method used for the invocation endpoint, such as GET, POST, PUT, etc.
*
* @return builder
*
*/
public Builder httpMethod(Output httpMethod) {
$.httpMethod = httpMethod;
return this;
}
/**
* @param httpMethod Select the HTTP method used for the invocation endpoint, such as GET, POST, PUT, etc.
*
* @return builder
*
*/
public Builder httpMethod(String httpMethod) {
return httpMethod(Output.of(httpMethod));
}
/**
* @param invocationEndpoint URL endpoint to invoke as a target. This could be a valid endpoint generated by a partner service. You can include "*" as path parameters wildcards to be set from the Target HttpParameters.
*
* @return builder
*
*/
public Builder invocationEndpoint(Output invocationEndpoint) {
$.invocationEndpoint = invocationEndpoint;
return this;
}
/**
* @param invocationEndpoint URL endpoint to invoke as a target. This could be a valid endpoint generated by a partner service. You can include "*" as path parameters wildcards to be set from the Target HttpParameters.
*
* @return builder
*
*/
public Builder invocationEndpoint(String invocationEndpoint) {
return invocationEndpoint(Output.of(invocationEndpoint));
}
/**
* @param invocationRateLimitPerSecond Enter the maximum number of invocations per second to allow for this destination. Enter a value greater than 0 (default 300).
*
* @return builder
*
*/
public Builder invocationRateLimitPerSecond(@Nullable Output invocationRateLimitPerSecond) {
$.invocationRateLimitPerSecond = invocationRateLimitPerSecond;
return this;
}
/**
* @param invocationRateLimitPerSecond Enter the maximum number of invocations per second to allow for this destination. Enter a value greater than 0 (default 300).
*
* @return builder
*
*/
public Builder invocationRateLimitPerSecond(Integer invocationRateLimitPerSecond) {
return invocationRateLimitPerSecond(Output.of(invocationRateLimitPerSecond));
}
/**
* @param name The name of the new API Destination. The name must be unique for your account. Maximum of 64 characters consisting of numbers, lower/upper case letters, .,-,_.
*
* @return builder
*
*/
public Builder name(@Nullable Output name) {
$.name = name;
return this;
}
/**
* @param name The name of the new API Destination. The name must be unique for your account. Maximum of 64 characters consisting of numbers, lower/upper case letters, .,-,_.
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
public EventApiDestinationArgs build() {
if ($.connectionArn == null) {
throw new MissingRequiredPropertyException("EventApiDestinationArgs", "connectionArn");
}
if ($.httpMethod == null) {
throw new MissingRequiredPropertyException("EventApiDestinationArgs", "httpMethod");
}
if ($.invocationEndpoint == null) {
throw new MissingRequiredPropertyException("EventApiDestinationArgs", "invocationEndpoint");
}
return $;
}
}
}