Class CfnInvestigationGroup
- All Implemented Interfaces:
IInspectable
,ITaggableV2
,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
CreateInvestigationGroup
and you want to enable alarms to do this, you must usePutInvestigationGroupPolicy
to 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 class
A fluent builder forCfnInvestigationGroup
.static interface
Use this structure to integrate CloudWatch investigations with chat applications.static interface
This structure contains information about the cross-account configuration in the account.static interface
Use 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.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CfnInvestigationGroup
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnInvestigationGroup
(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 ofsourceRoleArn
values 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.Specifytrue
to 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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setChatbotNotificationChannels
(List<Object> value) Use this property to integrate CloudWatch investigations with chat applications.void
Use this property to integrate CloudWatch investigations with chat applications.void
setCrossAccountConfigurations
(List<Object> value) List ofsourceRoleArn
values that have been configured for cross-account access.void
List ofsourceRoleArn
values that have been configured for cross-account access.void
setEncryptionConfig
(IResolvable value) Specifies the customer managed AWS KMS key that the investigation group uses to encrypt data, if there is one.void
Specifies the customer managed AWS KMS key that the investigation group uses to encrypt data, if there is one.void
Returns the JSON of the IAM resource policy associated with the specified investigation group in a string.void
Specifytrue
to enable CloudWatch investigations to have access to change events that are recorded by CloudTrail.void
Specifytrue
to enable CloudWatch investigations to have access to change events that are recorded by CloudTrail.void
Specify either the name or the ARN of the investigation group that you want to view.void
setRetentionInDays
(Number value) Specifies how long that investigation data is kept.void
setRoleArn
(String value) The ARN of the IAM role that the investigation group uses for permissions to gather data.void
setTagKeyBoundaries
(List<String> value) Displays the custom tag keys for custom applications in your system that you have specified in the investigation group.void
The 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, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in 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:
getCdkTagManager
in interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
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. -
setChatbotNotificationChannels
Use this property to integrate CloudWatch investigations with chat applications. -
setChatbotNotificationChannels
Use this property to integrate CloudWatch investigations with chat applications. -
getCrossAccountConfigurations
List ofsourceRoleArn
values that have been configured for cross-account access. -
setCrossAccountConfigurations
List ofsourceRoleArn
values that have been configured for cross-account access. -
setCrossAccountConfigurations
List ofsourceRoleArn
values 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. -
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
Specifytrue
to enable CloudWatch investigations to have access to change events that are recorded by CloudTrail. -
setIsCloudTrailEventHistoryEnabled
Specifytrue
to enable CloudWatch investigations to have access to change events that are recorded by CloudTrail. -
setIsCloudTrailEventHistoryEnabled
Specifytrue
to 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.
-