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.docdb.inputs.EventSubscriptionState 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.docdb.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class EventSubscriptionState extends com.pulumi.resources.ResourceArgs {
public static final EventSubscriptionState Empty = new EventSubscriptionState();
/**
* The Amazon Resource Name of the DocumentDB event notification subscription
*
*/
@Import(name="arn")
private @Nullable Output arn;
/**
* @return The Amazon Resource Name of the DocumentDB event notification subscription
*
*/
public Optional> arn() {
return Optional.ofNullable(this.arn);
}
/**
* The AWS customer account associated with the DocumentDB event notification subscription
*
*/
@Import(name="customerAwsId")
private @Nullable Output customerAwsId;
/**
* @return The AWS customer account associated with the DocumentDB event notification subscription
*
*/
public Optional> customerAwsId() {
return Optional.ofNullable(this.customerAwsId);
}
/**
* A boolean flag to enable/disable the subscription. Defaults to true.
*
*/
@Import(name="enabled")
private @Nullable Output enabled;
/**
* @return A boolean flag to enable/disable the subscription. Defaults to true.
*
*/
public Optional> enabled() {
return Optional.ofNullable(this.enabled);
}
/**
* A list of event categories for a SourceType that you want to subscribe to. See https://docs.aws.amazon.com/documentdb/latest/developerguide/API_Event.html or run `aws docdb describe-event-categories`.
*
*/
@Import(name="eventCategories")
private @Nullable Output> eventCategories;
/**
* @return A list of event categories for a SourceType that you want to subscribe to. See https://docs.aws.amazon.com/documentdb/latest/developerguide/API_Event.html or run `aws docdb describe-event-categories`.
*
*/
public Optional>> eventCategories() {
return Optional.ofNullable(this.eventCategories);
}
/**
* The name of the DocumentDB event subscription. By default generated by this provider.
*
*/
@Import(name="name")
private @Nullable Output name;
/**
* @return The name of the DocumentDB event subscription. By default generated by this provider.
*
*/
public Optional> name() {
return Optional.ofNullable(this.name);
}
/**
* The name of the DocumentDB event subscription. Conflicts with `name`.
*
*/
@Import(name="namePrefix")
private @Nullable Output namePrefix;
/**
* @return The name of the DocumentDB event subscription. Conflicts with `name`.
*
*/
public Optional> namePrefix() {
return Optional.ofNullable(this.namePrefix);
}
@Import(name="snsTopicArn")
private @Nullable Output snsTopicArn;
public Optional> snsTopicArn() {
return Optional.ofNullable(this.snsTopicArn);
}
/**
* A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified.
*
*/
@Import(name="sourceIds")
private @Nullable Output> sourceIds;
/**
* @return A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified.
*
*/
public Optional>> sourceIds() {
return Optional.ofNullable(this.sourceIds);
}
/**
* The type of source that will be generating the events. Valid options are `db-instance`, `db-cluster`, `db-parameter-group`, `db-security-group`,` db-cluster-snapshot `. If not set, all sources will be subscribed to.
*
*/
@Import(name="sourceType")
private @Nullable Output sourceType;
/**
* @return The type of source that will be generating the events. Valid options are `db-instance`, `db-cluster`, `db-parameter-group`, `db-security-group`,` db-cluster-snapshot `. If not set, all sources will be subscribed to.
*
*/
public Optional> sourceType() {
return Optional.ofNullable(this.sourceType);
}
/**
* A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*
*/
@Import(name="tags")
private @Nullable Output> tags;
/**
* @return A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*
*/
public Optional>> tags() {
return Optional.ofNullable(this.tags);
}
/**
* A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
@Import(name="tagsAll")
private @Nullable Output> tagsAll;
/**
* @return A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
public Optional>> tagsAll() {
return Optional.ofNullable(this.tagsAll);
}
private EventSubscriptionState() {}
private EventSubscriptionState(EventSubscriptionState $) {
this.arn = $.arn;
this.customerAwsId = $.customerAwsId;
this.enabled = $.enabled;
this.eventCategories = $.eventCategories;
this.name = $.name;
this.namePrefix = $.namePrefix;
this.snsTopicArn = $.snsTopicArn;
this.sourceIds = $.sourceIds;
this.sourceType = $.sourceType;
this.tags = $.tags;
this.tagsAll = $.tagsAll;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(EventSubscriptionState defaults) {
return new Builder(defaults);
}
public static final class Builder {
private EventSubscriptionState $;
public Builder() {
$ = new EventSubscriptionState();
}
public Builder(EventSubscriptionState defaults) {
$ = new EventSubscriptionState(Objects.requireNonNull(defaults));
}
/**
* @param arn The Amazon Resource Name of the DocumentDB event notification subscription
*
* @return builder
*
*/
public Builder arn(@Nullable Output arn) {
$.arn = arn;
return this;
}
/**
* @param arn The Amazon Resource Name of the DocumentDB event notification subscription
*
* @return builder
*
*/
public Builder arn(String arn) {
return arn(Output.of(arn));
}
/**
* @param customerAwsId The AWS customer account associated with the DocumentDB event notification subscription
*
* @return builder
*
*/
public Builder customerAwsId(@Nullable Output customerAwsId) {
$.customerAwsId = customerAwsId;
return this;
}
/**
* @param customerAwsId The AWS customer account associated with the DocumentDB event notification subscription
*
* @return builder
*
*/
public Builder customerAwsId(String customerAwsId) {
return customerAwsId(Output.of(customerAwsId));
}
/**
* @param enabled A boolean flag to enable/disable the subscription. Defaults to true.
*
* @return builder
*
*/
public Builder enabled(@Nullable Output enabled) {
$.enabled = enabled;
return this;
}
/**
* @param enabled A boolean flag to enable/disable the subscription. Defaults to true.
*
* @return builder
*
*/
public Builder enabled(Boolean enabled) {
return enabled(Output.of(enabled));
}
/**
* @param eventCategories A list of event categories for a SourceType that you want to subscribe to. See https://docs.aws.amazon.com/documentdb/latest/developerguide/API_Event.html or run `aws docdb describe-event-categories`.
*
* @return builder
*
*/
public Builder eventCategories(@Nullable Output> eventCategories) {
$.eventCategories = eventCategories;
return this;
}
/**
* @param eventCategories A list of event categories for a SourceType that you want to subscribe to. See https://docs.aws.amazon.com/documentdb/latest/developerguide/API_Event.html or run `aws docdb describe-event-categories`.
*
* @return builder
*
*/
public Builder eventCategories(List eventCategories) {
return eventCategories(Output.of(eventCategories));
}
/**
* @param eventCategories A list of event categories for a SourceType that you want to subscribe to. See https://docs.aws.amazon.com/documentdb/latest/developerguide/API_Event.html or run `aws docdb describe-event-categories`.
*
* @return builder
*
*/
public Builder eventCategories(String... eventCategories) {
return eventCategories(List.of(eventCategories));
}
/**
* @param name The name of the DocumentDB event subscription. By default generated by this provider.
*
* @return builder
*
*/
public Builder name(@Nullable Output name) {
$.name = name;
return this;
}
/**
* @param name The name of the DocumentDB event subscription. By default generated by this provider.
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param namePrefix The name of the DocumentDB event subscription. Conflicts with `name`.
*
* @return builder
*
*/
public Builder namePrefix(@Nullable Output namePrefix) {
$.namePrefix = namePrefix;
return this;
}
/**
* @param namePrefix The name of the DocumentDB event subscription. Conflicts with `name`.
*
* @return builder
*
*/
public Builder namePrefix(String namePrefix) {
return namePrefix(Output.of(namePrefix));
}
public Builder snsTopicArn(@Nullable Output snsTopicArn) {
$.snsTopicArn = snsTopicArn;
return this;
}
public Builder snsTopicArn(String snsTopicArn) {
return snsTopicArn(Output.of(snsTopicArn));
}
/**
* @param sourceIds A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified.
*
* @return builder
*
*/
public Builder sourceIds(@Nullable Output> sourceIds) {
$.sourceIds = sourceIds;
return this;
}
/**
* @param sourceIds A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified.
*
* @return builder
*
*/
public Builder sourceIds(List sourceIds) {
return sourceIds(Output.of(sourceIds));
}
/**
* @param sourceIds A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified.
*
* @return builder
*
*/
public Builder sourceIds(String... sourceIds) {
return sourceIds(List.of(sourceIds));
}
/**
* @param sourceType The type of source that will be generating the events. Valid options are `db-instance`, `db-cluster`, `db-parameter-group`, `db-security-group`,` db-cluster-snapshot `. If not set, all sources will be subscribed to.
*
* @return builder
*
*/
public Builder sourceType(@Nullable Output sourceType) {
$.sourceType = sourceType;
return this;
}
/**
* @param sourceType The type of source that will be generating the events. Valid options are `db-instance`, `db-cluster`, `db-parameter-group`, `db-security-group`,` db-cluster-snapshot `. If not set, all sources will be subscribed to.
*
* @return builder
*
*/
public Builder sourceType(String sourceType) {
return sourceType(Output.of(sourceType));
}
/**
* @param tags A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*
* @return builder
*
*/
public Builder tags(@Nullable Output> tags) {
$.tags = tags;
return this;
}
/**
* @param tags A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*
* @return builder
*
*/
public Builder tags(Map tags) {
return tags(Output.of(tags));
}
/**
* @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @return builder
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
public Builder tagsAll(@Nullable Output> tagsAll) {
$.tagsAll = tagsAll;
return this;
}
/**
* @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @return builder
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
public Builder tagsAll(Map tagsAll) {
return tagsAll(Output.of(tagsAll));
}
public EventSubscriptionState build() {
return $;
}
}
}