Class CfnInvestigationGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.aiops.CfnInvestigationGroupProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInvestigationGroupProps>
- Enclosing interface:
CfnInvestigationGroupProps
@Stability(Stable)
public static final class CfnInvestigationGroupProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInvestigationGroupProps>
A builder for
CfnInvestigationGroupProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.chatbotNotificationChannels
(List<? extends Object> chatbotNotificationChannels) Sets the value ofCfnInvestigationGroupProps.getChatbotNotificationChannels()
chatbotNotificationChannels
(IResolvable chatbotNotificationChannels) Sets the value ofCfnInvestigationGroupProps.getChatbotNotificationChannels()
crossAccountConfigurations
(List<? extends Object> crossAccountConfigurations) Sets the value ofCfnInvestigationGroupProps.getCrossAccountConfigurations()
crossAccountConfigurations
(IResolvable crossAccountConfigurations) Sets the value ofCfnInvestigationGroupProps.getCrossAccountConfigurations()
encryptionConfig
(IResolvable encryptionConfig) Sets the value ofCfnInvestigationGroupProps.getEncryptionConfig()
encryptionConfig
(CfnInvestigationGroup.EncryptionConfigMapProperty encryptionConfig) Sets the value ofCfnInvestigationGroupProps.getEncryptionConfig()
investigationGroupPolicy
(String investigationGroupPolicy) Sets the value ofCfnInvestigationGroupProps.getInvestigationGroupPolicy()
isCloudTrailEventHistoryEnabled
(Boolean isCloudTrailEventHistoryEnabled) Sets the value ofCfnInvestigationGroupProps.getIsCloudTrailEventHistoryEnabled()
isCloudTrailEventHistoryEnabled
(IResolvable isCloudTrailEventHistoryEnabled) Sets the value ofCfnInvestigationGroupProps.getIsCloudTrailEventHistoryEnabled()
Sets the value ofCfnInvestigationGroupProps.getName()
retentionInDays
(Number retentionInDays) Sets the value ofCfnInvestigationGroupProps.getRetentionInDays()
Sets the value ofCfnInvestigationGroupProps.getRoleArn()
tagKeyBoundaries
(List<String> tagKeyBoundaries) Sets the value ofCfnInvestigationGroupProps.getTagKeyBoundaries()
Sets the value ofCfnInvestigationGroupProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnInvestigationGroupProps.getName()
- Parameters:
name
- Specify either the name or the ARN of the investigation group that you want to view. This parameter is required. This is used to set the name of the investigation group.- Returns:
this
-
chatbotNotificationChannels
@Stability(Stable) public CfnInvestigationGroupProps.Builder chatbotNotificationChannels(IResolvable chatbotNotificationChannels) Sets the value ofCfnInvestigationGroupProps.getChatbotNotificationChannels()
- Parameters:
chatbotNotificationChannels
- Use this property to integrate CloudWatch investigations with chat applications. This property is an array. For the first string, specify the ARN of an Amazon SNS topic. For the array of strings, specify the ARNs of one or more chat applications configurations that you want to associate with that topic. For more information about these configuration ARNs, see Getting started with Amazon Q in chat applications and Resource type defined by AWS Chatbot .- Returns:
this
-
chatbotNotificationChannels
@Stability(Stable) public CfnInvestigationGroupProps.Builder chatbotNotificationChannels(List<? extends Object> chatbotNotificationChannels) Sets the value ofCfnInvestigationGroupProps.getChatbotNotificationChannels()
- Parameters:
chatbotNotificationChannels
- Use this property to integrate CloudWatch investigations with chat applications. This property is an array. For the first string, specify the ARN of an Amazon SNS topic. For the array of strings, specify the ARNs of one or more chat applications configurations that you want to associate with that topic. For more information about these configuration ARNs, see Getting started with Amazon Q in chat applications and Resource type defined by AWS Chatbot .- Returns:
this
-
crossAccountConfigurations
@Stability(Stable) public CfnInvestigationGroupProps.Builder crossAccountConfigurations(IResolvable crossAccountConfigurations) Sets the value ofCfnInvestigationGroupProps.getCrossAccountConfigurations()
- Parameters:
crossAccountConfigurations
- List ofsourceRoleArn
values that have been configured for cross-account access.- Returns:
this
-
crossAccountConfigurations
@Stability(Stable) public CfnInvestigationGroupProps.Builder crossAccountConfigurations(List<? extends Object> crossAccountConfigurations) Sets the value ofCfnInvestigationGroupProps.getCrossAccountConfigurations()
- Parameters:
crossAccountConfigurations
- List ofsourceRoleArn
values that have been configured for cross-account access.- Returns:
this
-
encryptionConfig
@Stability(Stable) public CfnInvestigationGroupProps.Builder encryptionConfig(IResolvable encryptionConfig) Sets the value ofCfnInvestigationGroupProps.getEncryptionConfig()
- Parameters:
encryptionConfig
- Specifies the customer managed AWS KMS key that the investigation group uses to encrypt data, if there is one. If not, the investigation group uses an AWS key to encrypt the data.- Returns:
this
-
encryptionConfig
@Stability(Stable) public CfnInvestigationGroupProps.Builder encryptionConfig(CfnInvestigationGroup.EncryptionConfigMapProperty encryptionConfig) Sets the value ofCfnInvestigationGroupProps.getEncryptionConfig()
- Parameters:
encryptionConfig
- Specifies the customer managed AWS KMS key that the investigation group uses to encrypt data, if there is one. If not, the investigation group uses an AWS key to encrypt the data.- Returns:
this
-
investigationGroupPolicy
@Stability(Stable) public CfnInvestigationGroupProps.Builder investigationGroupPolicy(String investigationGroupPolicy) Sets the value ofCfnInvestigationGroupProps.getInvestigationGroupPolicy()
- Parameters:
investigationGroupPolicy
- Returns the JSON of the IAM resource policy associated with the specified investigation group in a string. For example,{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"aiops.alarms.cloudwatch.amazonaws.com\"},\"Action\":[\"aiops:CreateInvestigation\",\"aiops:CreateInvestigationEvent\"],\"Resource\":\"*\",\"Condition\":{\"StringEquals\":{\"aws:SourceAccount\":\"111122223333\"},\"ArnLike\":{\"aws:SourceArn\":\"arn:aws:cloudwatch:us-east-1:111122223333:alarm:*\"}}}]}
.- Returns:
this
-
isCloudTrailEventHistoryEnabled
@Stability(Stable) public CfnInvestigationGroupProps.Builder isCloudTrailEventHistoryEnabled(Boolean isCloudTrailEventHistoryEnabled) Sets the value ofCfnInvestigationGroupProps.getIsCloudTrailEventHistoryEnabled()
- Parameters:
isCloudTrailEventHistoryEnabled
- Specifytrue
to enable CloudWatch investigations to have access to change events that are recorded by CloudTrail. The default istrue
.- Returns:
this
-
isCloudTrailEventHistoryEnabled
@Stability(Stable) public CfnInvestigationGroupProps.Builder isCloudTrailEventHistoryEnabled(IResolvable isCloudTrailEventHistoryEnabled) Sets the value ofCfnInvestigationGroupProps.getIsCloudTrailEventHistoryEnabled()
- Parameters:
isCloudTrailEventHistoryEnabled
- Specifytrue
to enable CloudWatch investigations to have access to change events that are recorded by CloudTrail. The default istrue
.- Returns:
this
-
retentionInDays
@Stability(Stable) public CfnInvestigationGroupProps.Builder retentionInDays(Number retentionInDays) Sets the value ofCfnInvestigationGroupProps.getRetentionInDays()
- Parameters:
retentionInDays
- Specifies how long that investigation data is kept.- Returns:
this
-
roleArn
Sets the value ofCfnInvestigationGroupProps.getRoleArn()
- Parameters:
roleArn
- The ARN of the IAM role that the investigation group uses for permissions to gather data.- Returns:
this
-
tagKeyBoundaries
@Stability(Stable) public CfnInvestigationGroupProps.Builder tagKeyBoundaries(List<String> tagKeyBoundaries) Sets the value ofCfnInvestigationGroupProps.getTagKeyBoundaries()
- Parameters:
tagKeyBoundaries
- Displays the custom tag keys for custom applications in your system that you have specified in the investigation group. Resource tags help CloudWatch investigations narrow the search space when it is unable to discover definite relationships between resources.- Returns:
this
-
tags
Sets the value ofCfnInvestigationGroupProps.getTags()
- Parameters:
tags
- The list of key-value pairs to associate with the resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnInvestigationGroupProps>
- Returns:
- a new instance of
CfnInvestigationGroupProps
- Throws:
NullPointerException
- if any required attribute was not provided
-