Class ScheduledQueryArgs.Builder

  • Enclosing class:
    ScheduledQueryArgs

    public static final class ScheduledQueryArgs.Builder
    extends java.lang.Object
    • Method Detail

      • executionRoleArn

        public ScheduledQueryArgs.Builder executionRoleArn​(com.pulumi.core.Output<java.lang.String> executionRoleArn)
        Parameters:
        executionRoleArn - ARN for the IAM role that Timestream will assume when running the scheduled query.
        Returns:
        builder
      • executionRoleArn

        public ScheduledQueryArgs.Builder executionRoleArn​(java.lang.String executionRoleArn)
        Parameters:
        executionRoleArn - ARN for the IAM role that Timestream will assume when running the scheduled query.
        Returns:
        builder
      • kmsKeyId

        public ScheduledQueryArgs.Builder kmsKeyId​(@Nullable
                                                   com.pulumi.core.Output<java.lang.String> kmsKeyId)
        Parameters:
        kmsKeyId - Amazon KMS key used to encrypt the scheduled query resource, at-rest. If not specified, the scheduled query resource will be encrypted with a Timestream owned Amazon KMS key. To specify a KMS key, use the key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix the name with "alias/". If `errorReportConfiguration` uses `SSE_KMS` as the encryption type, the same `kmsKeyId` is used to encrypt the error report at rest.
        Returns:
        builder
      • kmsKeyId

        public ScheduledQueryArgs.Builder kmsKeyId​(java.lang.String kmsKeyId)
        Parameters:
        kmsKeyId - Amazon KMS key used to encrypt the scheduled query resource, at-rest. If not specified, the scheduled query resource will be encrypted with a Timestream owned Amazon KMS key. To specify a KMS key, use the key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix the name with "alias/". If `errorReportConfiguration` uses `SSE_KMS` as the encryption type, the same `kmsKeyId` is used to encrypt the error report at rest.
        Returns:
        builder
      • lastRunSummaries

        public ScheduledQueryArgs.Builder lastRunSummaries​(@Nullable
                                                           com.pulumi.core.Output<java.util.List<ScheduledQueryLastRunSummaryArgs>> lastRunSummaries)
        Parameters:
        lastRunSummaries - Runtime summary for the last scheduled query run. See `lastRunSummary` Block for details.
        Returns:
        builder
      • name

        public ScheduledQueryArgs.Builder name​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - Name of the scheduled query.
        Returns:
        builder
      • name

        public ScheduledQueryArgs.Builder name​(java.lang.String name)
        Parameters:
        name - Name of the scheduled query.
        Returns:
        builder
      • notificationConfiguration

        public ScheduledQueryArgs.Builder notificationConfiguration​(com.pulumi.core.Output<ScheduledQueryNotificationConfigurationArgs> notificationConfiguration)
        Parameters:
        notificationConfiguration - Configuration block for notification configuration for a scheduled query. A notification is sent by Timestream when a scheduled query is created, its state is updated, or when it is deleted. See below.
        Returns:
        builder
      • notificationConfiguration

        public ScheduledQueryArgs.Builder notificationConfiguration​(ScheduledQueryNotificationConfigurationArgs notificationConfiguration)
        Parameters:
        notificationConfiguration - Configuration block for notification configuration for a scheduled query. A notification is sent by Timestream when a scheduled query is created, its state is updated, or when it is deleted. See below.
        Returns:
        builder
      • queryString

        public ScheduledQueryArgs.Builder queryString​(com.pulumi.core.Output<java.lang.String> queryString)
        Parameters:
        queryString - Query string to run. Parameter names can be specified in the query string using the `@` character followed by an identifier. The named parameter `@scheduled_runtime` is reserved and can be used in the query to get the time at which the query is scheduled to run. The timestamp calculated according to the `scheduleConfiguration` parameter, will be the value of `@scheduled_runtime` parameter for each query run. For example, consider an instance of a scheduled query executing on 2021-12-01 00:00:00. For this instance, the `@scheduled_runtime` parameter is initialized to the timestamp 2021-12-01 00:00:00 when invoking the query.
        Returns:
        builder
      • queryString

        public ScheduledQueryArgs.Builder queryString​(java.lang.String queryString)
        Parameters:
        queryString - Query string to run. Parameter names can be specified in the query string using the `@` character followed by an identifier. The named parameter `@scheduled_runtime` is reserved and can be used in the query to get the time at which the query is scheduled to run. The timestamp calculated according to the `scheduleConfiguration` parameter, will be the value of `@scheduled_runtime` parameter for each query run. For example, consider an instance of a scheduled query executing on 2021-12-01 00:00:00. For this instance, the `@scheduled_runtime` parameter is initialized to the timestamp 2021-12-01 00:00:00 when invoking the query.
        Returns:
        builder
      • recentlyFailedRuns

        public ScheduledQueryArgs.Builder recentlyFailedRuns​(@Nullable
                                                             com.pulumi.core.Output<java.util.List<ScheduledQueryRecentlyFailedRunArgs>> recentlyFailedRuns)
        Parameters:
        recentlyFailedRuns - Runtime summary for the last five failed scheduled query runs. See `recentlyFailedRuns` Block for details.
        Returns:
        builder
      • recentlyFailedRuns

        public ScheduledQueryArgs.Builder recentlyFailedRuns​(java.util.List<ScheduledQueryRecentlyFailedRunArgs> recentlyFailedRuns)
        Parameters:
        recentlyFailedRuns - Runtime summary for the last five failed scheduled query runs. See `recentlyFailedRuns` Block for details.
        Returns:
        builder
      • region

        public ScheduledQueryArgs.Builder region​(@Nullable
                                                 com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • region

        public ScheduledQueryArgs.Builder region​(java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • tags

        public ScheduledQueryArgs.Builder tags​(@Nullable
                                               com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - Map of tags assigned to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tags

        public ScheduledQueryArgs.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - Map of tags assigned to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • targetConfiguration

        public ScheduledQueryArgs.Builder targetConfiguration​(com.pulumi.core.Output<ScheduledQueryTargetConfigurationArgs> targetConfiguration)
        Parameters:
        targetConfiguration - Configuration block for writing the result of a query. See below. The following arguments are optional:
        Returns:
        builder