class CfnHubLogsMixin (mixin)
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.SecurityHub.Mixins.CfnHubLogsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awssecurityhub/mixins#CfnHubLogsMixin |
Java | software.amazon.awscdk.mixins.preview.services.securityhub.mixins.CfnHubLogsMixin |
Python | aws_cdk.mixins_preview.aws_securityhub.mixins.CfnHubLogsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_securityhub » mixins » CfnHubLogsMixin |
Implements
IMixin
Extends
Mixin
The AWS::SecurityHub::Hub resource specifies the enablement of the AWS Security Hub CSPM service in your AWS account .
The service is enabled in the current AWS Region or the specified Region. You create a separate Hub resource in each Region in which you want to enable Security Hub CSPM .
When you use this resource to enable Security Hub CSPM , default security standards are enabled. To disable default standards, set the EnableDefaultStandards property to false . You can use the AWS::SecurityHub::Standard resource to enable additional standards.
When you use this resource to enable Security Hub CSPM , new controls are automatically enabled for your enabled standards. To disable automatic enablement of new controls, set the AutoEnableControls property to false .
You must create an AWS::SecurityHub::Hub resource for an account before you can create other types of Security Hub CSPM resources for the account through CloudFormation . Use a DependsOn attribute , such as "DependsOn": "Hub" , to ensure that you've created an AWS::SecurityHub::Hub resource before creating other Security Hub CSPM resources for an account.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-hub.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_logs as logs } from '@aws-cdk/mixins-preview';
import { mixins as securityhub_mixins } from '@aws-cdk/mixins-preview/aws-securityhub';
declare const logsDelivery: logs.ILogsDelivery;
const cfnHubLogsMixin = new securityhub_mixins.CfnHubLogsMixin('logType', logsDelivery);
Initializer
new CfnHubLogsMixin(logType: string, logDelivery: ILogsDelivery)
Parameters
- logType
string— Type of logs that are getting vended. - logDelivery
ILogs— Object in charge of setting up the delivery source, delivery destination, and delivery connection.Delivery
Create a mixin to enable vended logs for AWS::SecurityHub::Hub.
Properties
| Name | Type | Description |
|---|---|---|
| log | ILogs | |
| log | string | |
| static SECURITY_FINDING_LOGS | Cfn |
logDelivery
Type:
ILogs
logType
Type:
string
static SECURITY_FINDING_LOGS
Type:
Cfn
Methods
| Name | Description |
|---|---|
| apply | Apply vended logs configuration to the construct. |
| supports(construct) | Check if this mixin supports the given construct (has vendedLogs property). |
applyTo(resource)
public applyTo(resource: IConstruct): void
Parameters
- resource
IConstruct
Apply vended logs configuration to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct (has vendedLogs property).

.NET
Go
Java
Python
TypeScript