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

com.pulumi.aws.cfg.inputs.RuleSourceSourceDetailArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.66.3
Show 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.cfg.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class RuleSourceSourceDetailArgs extends com.pulumi.resources.ResourceArgs {

    public static final RuleSourceSourceDetailArgs Empty = new RuleSourceSourceDetailArgs();

    /**
     * The source of the event, such as an AWS service, that triggers AWS Config to evaluate your AWSresources. This defaults to `aws.config` and is the only valid value.
     * 
     */
    @Import(name="eventSource")
    private @Nullable Output eventSource;

    /**
     * @return The source of the event, such as an AWS service, that triggers AWS Config to evaluate your AWSresources. This defaults to `aws.config` and is the only valid value.
     * 
     */
    public Optional> eventSource() {
        return Optional.ofNullable(this.eventSource);
    }

    /**
     * The frequency that you want AWS Config to run evaluations for a rule that istriggered periodically. If specified, requires `message_type` to be `ScheduledNotification`.
     * 
     */
    @Import(name="maximumExecutionFrequency")
    private @Nullable Output maximumExecutionFrequency;

    /**
     * @return The frequency that you want AWS Config to run evaluations for a rule that istriggered periodically. If specified, requires `message_type` to be `ScheduledNotification`.
     * 
     */
    public Optional> maximumExecutionFrequency() {
        return Optional.ofNullable(this.maximumExecutionFrequency);
    }

    /**
     * The type of notification that triggers AWS Config to run an evaluation for a rule. You canspecify the following notification types:
     * * `ConfigurationItemChangeNotification` - Triggers an evaluation when AWS Config delivers a configuration item as a result of a resource change.
     * * `OversizedConfigurationItemChangeNotification` - Triggers an evaluation when AWS Config delivers an oversized configuration item. AWS Config may generate this notification type when a resource changes and the notification exceeds the maximum size allowed by Amazon SNS.
     * * `ScheduledNotification` - Triggers a periodic evaluation at the frequency specified for `maximum_execution_frequency`.
     * * `ConfigurationSnapshotDeliveryCompleted` - Triggers a periodic evaluation when AWS Config delivers a configuration snapshot.
     * 
     */
    @Import(name="messageType")
    private @Nullable Output messageType;

    /**
     * @return The type of notification that triggers AWS Config to run an evaluation for a rule. You canspecify the following notification types:
     * * `ConfigurationItemChangeNotification` - Triggers an evaluation when AWS Config delivers a configuration item as a result of a resource change.
     * * `OversizedConfigurationItemChangeNotification` - Triggers an evaluation when AWS Config delivers an oversized configuration item. AWS Config may generate this notification type when a resource changes and the notification exceeds the maximum size allowed by Amazon SNS.
     * * `ScheduledNotification` - Triggers a periodic evaluation at the frequency specified for `maximum_execution_frequency`.
     * * `ConfigurationSnapshotDeliveryCompleted` - Triggers a periodic evaluation when AWS Config delivers a configuration snapshot.
     * 
     */
    public Optional> messageType() {
        return Optional.ofNullable(this.messageType);
    }

    private RuleSourceSourceDetailArgs() {}

    private RuleSourceSourceDetailArgs(RuleSourceSourceDetailArgs $) {
        this.eventSource = $.eventSource;
        this.maximumExecutionFrequency = $.maximumExecutionFrequency;
        this.messageType = $.messageType;
    }

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

    public static final class Builder {
        private RuleSourceSourceDetailArgs $;

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

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

        /**
         * @param eventSource The source of the event, such as an AWS service, that triggers AWS Config to evaluate your AWSresources. This defaults to `aws.config` and is the only valid value.
         * 
         * @return builder
         * 
         */
        public Builder eventSource(@Nullable Output eventSource) {
            $.eventSource = eventSource;
            return this;
        }

        /**
         * @param eventSource The source of the event, such as an AWS service, that triggers AWS Config to evaluate your AWSresources. This defaults to `aws.config` and is the only valid value.
         * 
         * @return builder
         * 
         */
        public Builder eventSource(String eventSource) {
            return eventSource(Output.of(eventSource));
        }

        /**
         * @param maximumExecutionFrequency The frequency that you want AWS Config to run evaluations for a rule that istriggered periodically. If specified, requires `message_type` to be `ScheduledNotification`.
         * 
         * @return builder
         * 
         */
        public Builder maximumExecutionFrequency(@Nullable Output maximumExecutionFrequency) {
            $.maximumExecutionFrequency = maximumExecutionFrequency;
            return this;
        }

        /**
         * @param maximumExecutionFrequency The frequency that you want AWS Config to run evaluations for a rule that istriggered periodically. If specified, requires `message_type` to be `ScheduledNotification`.
         * 
         * @return builder
         * 
         */
        public Builder maximumExecutionFrequency(String maximumExecutionFrequency) {
            return maximumExecutionFrequency(Output.of(maximumExecutionFrequency));
        }

        /**
         * @param messageType The type of notification that triggers AWS Config to run an evaluation for a rule. You canspecify the following notification types:
         * * `ConfigurationItemChangeNotification` - Triggers an evaluation when AWS Config delivers a configuration item as a result of a resource change.
         * * `OversizedConfigurationItemChangeNotification` - Triggers an evaluation when AWS Config delivers an oversized configuration item. AWS Config may generate this notification type when a resource changes and the notification exceeds the maximum size allowed by Amazon SNS.
         * * `ScheduledNotification` - Triggers a periodic evaluation at the frequency specified for `maximum_execution_frequency`.
         * * `ConfigurationSnapshotDeliveryCompleted` - Triggers a periodic evaluation when AWS Config delivers a configuration snapshot.
         * 
         * @return builder
         * 
         */
        public Builder messageType(@Nullable Output messageType) {
            $.messageType = messageType;
            return this;
        }

        /**
         * @param messageType The type of notification that triggers AWS Config to run an evaluation for a rule. You canspecify the following notification types:
         * * `ConfigurationItemChangeNotification` - Triggers an evaluation when AWS Config delivers a configuration item as a result of a resource change.
         * * `OversizedConfigurationItemChangeNotification` - Triggers an evaluation when AWS Config delivers an oversized configuration item. AWS Config may generate this notification type when a resource changes and the notification exceeds the maximum size allowed by Amazon SNS.
         * * `ScheduledNotification` - Triggers a periodic evaluation at the frequency specified for `maximum_execution_frequency`.
         * * `ConfigurationSnapshotDeliveryCompleted` - Triggers a periodic evaluation when AWS Config delivers a configuration snapshot.
         * 
         * @return builder
         * 
         */
        public Builder messageType(String messageType) {
            return messageType(Output.of(messageType));
        }

        public RuleSourceSourceDetailArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy