Class CfnInvestigationGroup
- All Implemented Interfaces:
IInspectable,ITaggableV2,IInvestigationGroupRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
Creating an investigation group is a one-time setup task for each Region in your account. It is a necessary task to be able to perform investigations.
Settings in the investigation group help you centrally manage the common properties of your investigations, such as the following:
- Who can access the investigations
- Whether investigation data is encrypted with a customer managed AWS Key Management Service key.
- How long investigations and their data are retained by default.
Currently, you can have one investigation group in each Region in your account. Each investigation in a Region is a part of the investigation group in that Region
To create an investigation group and set up CloudWatch investigations, you must be signed in to an IAM principal that has either the AIOpsConsoleAdminPolicy or the AdministratorAccess IAM policy attached, or to an account that has similar permissions.
You can configure CloudWatch alarms to start investigations and add events to investigations. If you create your investigation group with
CreateInvestigationGroupand you want to enable alarms to do this, you must usePutInvestigationGroupPolicyto create a resource policy that grants this permission to CloudWatch alarms.For more information about configuring CloudWatch alarms, see Using Amazon CloudWatch alarms
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.aiops.*;
CfnInvestigationGroup cfnInvestigationGroup = CfnInvestigationGroup.Builder.create(this, "MyCfnInvestigationGroup")
.name("name")
// the properties below are optional
.chatbotNotificationChannels(List.of(ChatbotNotificationChannelProperty.builder()
.chatConfigurationArns(List.of("chatConfigurationArns"))
.snsTopicArn("snsTopicArn")
.build()))
.crossAccountConfigurations(List.of(CrossAccountConfigurationProperty.builder()
.sourceRoleArn("sourceRoleArn")
.build()))
.encryptionConfig(EncryptionConfigMapProperty.builder()
.encryptionConfigurationType("encryptionConfigurationType")
.kmsKeyId("kmsKeyId")
.build())
.investigationGroupPolicy("investigationGroupPolicy")
.isCloudTrailEventHistoryEnabled(false)
.retentionInDays(123)
.roleArn("roleArn")
.tagKeyBoundaries(List.of("tagKeyBoundaries"))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnInvestigationGroup.static interfaceUse this structure to integrate CloudWatch investigations with chat applications.static interfaceThis structure contains information about the cross-account configuration in the account.static interfaceUse this structure if you want to use a customer managed AWS KMS key to encrypt your investigation data.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.aiops.IInvestigationGroupRef
IInvestigationGroupRef.Jsii$Default, IInvestigationGroupRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnInvestigationGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnInvestigationGroup(software.amazon.jsii.JsiiObjectRef objRef) CfnInvestigationGroup(software.constructs.Construct scope, String id, CfnInvestigationGroupProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the investigation group.The date and time that the investigation group was created.The name of the user who created the investigation group.The date and time that the investigation group was most recently modified.The name of the user who created the investigation group.Tag Manager which manages the tags for this resource.Use this property to integrate CloudWatch investigations with chat applications.List ofsourceRoleArnvalues that have been configured for cross-account access.Specifies the customer managed AWS KMS key that the investigation group uses to encrypt data, if there is one.Returns the JSON of the IAM resource policy associated with the specified investigation group in a string.A reference to a InvestigationGroup resource.Specifytrueto enable CloudWatch investigations to have access to change events that are recorded by CloudTrail.getName()Specify either the name or the ARN of the investigation group that you want to view.Specifies how long that investigation data is kept.The ARN of the IAM role that the investigation group uses for permissions to gather data.Displays the custom tag keys for custom applications in your system that you have specified in the investigation group.getTags()The list of key-value pairs to associate with the resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetChatbotNotificationChannels(List<Object> value) Use this property to integrate CloudWatch investigations with chat applications.voidUse this property to integrate CloudWatch investigations with chat applications.voidsetCrossAccountConfigurations(List<Object> value) List ofsourceRoleArnvalues that have been configured for cross-account access.voidList ofsourceRoleArnvalues that have been configured for cross-account access.voidsetEncryptionConfig(IResolvable value) Specifies the customer managed AWS KMS key that the investigation group uses to encrypt data, if there is one.voidSpecifies the customer managed AWS KMS key that the investigation group uses to encrypt data, if there is one.voidReturns the JSON of the IAM resource policy associated with the specified investigation group in a string.voidSpecifytrueto enable CloudWatch investigations to have access to change events that are recorded by CloudTrail.voidSpecifytrueto enable CloudWatch investigations to have access to change events that are recorded by CloudTrail.voidSpecify either the name or the ARN of the investigation group that you want to view.voidsetRetentionInDays(Number value) Specifies how long that investigation data is kept.voidsetRoleArn(String value) The ARN of the IAM role that the investigation group uses for permissions to gather data.voidsetTagKeyBoundaries(List<String> value) Displays the custom tag keys for custom applications in your system that you have specified in the investigation group.voidThe list of key-value pairs to associate with the resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnInvestigationGroup
protected CfnInvestigationGroup(software.amazon.jsii.JsiiObjectRef objRef) -
CfnInvestigationGroup
protected CfnInvestigationGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnInvestigationGroup
@Stability(Stable) public CfnInvestigationGroup(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnInvestigationGroupProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the investigation group. -
getAttrCreatedAt
The date and time that the investigation group was created. -
getAttrCreatedBy
The name of the user who created the investigation group. -
getAttrLastModifiedAt
The date and time that the investigation group was most recently modified. -
getAttrLastModifiedBy
The name of the user who created the investigation group. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getInvestigationGroupRef
A reference to a InvestigationGroup resource.- Specified by:
getInvestigationGroupRefin interfaceIInvestigationGroupRef
-
getName
Specify either the name or the ARN of the investigation group that you want to view. -
setName
Specify either the name or the ARN of the investigation group that you want to view. -
getChatbotNotificationChannels
Use this property to integrate CloudWatch investigations with chat applications.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnInvestigationGroup.ChatbotNotificationChannelProperty> -
setChatbotNotificationChannels
Use this property to integrate CloudWatch investigations with chat applications. -
setChatbotNotificationChannels
Use this property to integrate CloudWatch investigations with chat applications. -
getCrossAccountConfigurations
List ofsourceRoleArnvalues that have been configured for cross-account access.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnInvestigationGroup.CrossAccountConfigurationProperty> -
setCrossAccountConfigurations
List ofsourceRoleArnvalues that have been configured for cross-account access. -
setCrossAccountConfigurations
List ofsourceRoleArnvalues that have been configured for cross-account access. -
getEncryptionConfig
Specifies the customer managed AWS KMS key that the investigation group uses to encrypt data, if there is one.Returns union: either
IResolvableorCfnInvestigationGroup.EncryptionConfigMapProperty -
setEncryptionConfig
Specifies the customer managed AWS KMS key that the investigation group uses to encrypt data, if there is one. -
setEncryptionConfig
@Stability(Stable) public void setEncryptionConfig(@Nullable CfnInvestigationGroup.EncryptionConfigMapProperty value) Specifies the customer managed AWS KMS key that the investigation group uses to encrypt data, if there is one. -
getInvestigationGroupPolicy
Returns the JSON of the IAM resource policy associated with the specified investigation group in a string. -
setInvestigationGroupPolicy
Returns the JSON of the IAM resource policy associated with the specified investigation group in a string. -
getIsCloudTrailEventHistoryEnabled
Specifytrueto enable CloudWatch investigations to have access to change events that are recorded by CloudTrail.Returns union: either
BooleanorIResolvable -
setIsCloudTrailEventHistoryEnabled
Specifytrueto enable CloudWatch investigations to have access to change events that are recorded by CloudTrail. -
setIsCloudTrailEventHistoryEnabled
Specifytrueto enable CloudWatch investigations to have access to change events that are recorded by CloudTrail. -
getRetentionInDays
Specifies how long that investigation data is kept. -
setRetentionInDays
Specifies how long that investigation data is kept. -
getRoleArn
The ARN of the IAM role that the investigation group uses for permissions to gather data. -
setRoleArn
The ARN of the IAM role that the investigation group uses for permissions to gather data. -
getTagKeyBoundaries
Displays the custom tag keys for custom applications in your system that you have specified in the investigation group. -
setTagKeyBoundaries
Displays the custom tag keys for custom applications in your system that you have specified in the investigation group. -
getTags
The list of key-value pairs to associate with the resource. -
setTags
The list of key-value pairs to associate with the resource.
-