Interface PutInsightRuleRequest.Builder

    • Method Detail

      • ruleName

        PutInsightRuleRequest.Builder ruleName​(String ruleName)

        A unique name for the rule.

        Parameters:
        ruleName - A unique name for the rule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ruleState

        PutInsightRuleRequest.Builder ruleState​(String ruleState)

        The state of the rule. Valid values are ENABLED and DISABLED.

        Parameters:
        ruleState - The state of the rule. Valid values are ENABLED and DISABLED.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        PutInsightRuleRequest.Builder tags​(Collection<Tag> tags)

        A list of key-value pairs to associate with the Contributor Insights rule. You can associate as many as 50 tags with a rule.

        Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only the resources that have certain tag values.

        To be able to associate tags with a rule, you must have the cloudwatch:TagResource permission in addition to the cloudwatch:PutInsightRule permission.

        If you are using this operation to update an existing Contributor Insights rule, any tags you specify in this parameter are ignored. To change the tags of an existing rule, use TagResource.

        Parameters:
        tags - A list of key-value pairs to associate with the Contributor Insights rule. You can associate as many as 50 tags with a rule.

        Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only the resources that have certain tag values.

        To be able to associate tags with a rule, you must have the cloudwatch:TagResource permission in addition to the cloudwatch:PutInsightRule permission.

        If you are using this operation to update an existing Contributor Insights rule, any tags you specify in this parameter are ignored. To change the tags of an existing rule, use TagResource.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        PutInsightRuleRequest.Builder tags​(Tag... tags)

        A list of key-value pairs to associate with the Contributor Insights rule. You can associate as many as 50 tags with a rule.

        Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only the resources that have certain tag values.

        To be able to associate tags with a rule, you must have the cloudwatch:TagResource permission in addition to the cloudwatch:PutInsightRule permission.

        If you are using this operation to update an existing Contributor Insights rule, any tags you specify in this parameter are ignored. To change the tags of an existing rule, use TagResource.

        Parameters:
        tags - A list of key-value pairs to associate with the Contributor Insights rule. You can associate as many as 50 tags with a rule.

        Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only the resources that have certain tag values.

        To be able to associate tags with a rule, you must have the cloudwatch:TagResource permission in addition to the cloudwatch:PutInsightRule permission.

        If you are using this operation to update an existing Contributor Insights rule, any tags you specify in this parameter are ignored. To change the tags of an existing rule, use TagResource.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        PutInsightRuleRequest.Builder tags​(Consumer<Tag.Builder>... tags)

        A list of key-value pairs to associate with the Contributor Insights rule. You can associate as many as 50 tags with a rule.

        Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only the resources that have certain tag values.

        To be able to associate tags with a rule, you must have the cloudwatch:TagResource permission in addition to the cloudwatch:PutInsightRule permission.

        If you are using this operation to update an existing Contributor Insights rule, any tags you specify in this parameter are ignored. To change the tags of an existing rule, use TagResource.

        This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #tags(List).

        Parameters:
        tags - a consumer that will call methods on Tag.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #tags(java.util.Collection)