interface Resource
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.GuardDuty.Events.DetectorEvents.GuardDutyFinding.Resource |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsguardduty/events#DetectorEvents_GuardDutyFinding_Resource |
Java | software.amazon.awscdk.mixins.preview.services.guardduty.events.DetectorEvents.GuardDutyFinding.Resource |
Python | aws_cdk.mixins_preview.aws_guardduty.events.DetectorEvents.GuardDutyFinding.Resource |
TypeScript | @aws-cdk/mixins-preview ยป aws_guardduty ยป events ยป DetectorEvents ยป GuardDutyFinding ยป Resource |
Type definition for Resource.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { events as guardduty_events } from '@aws-cdk/mixins-preview/aws-guardduty';
declare const ipv6Addresses: any;
const resource: guardduty_events.DetectorEvents.GuardDutyFinding.Resource = {
accessKeyDetails: {
accessKeyId: ['accessKeyId'],
principalId: ['principalId'],
userName: ['userName'],
userType: ['userType'],
},
containerDetails: {
id: ['id'],
image: ['image'],
name: ['name'],
},
ebsVolumeDetails: {
scannedVolumeDetails: [{
deviceName: ['deviceName'],
encryptionType: ['encryptionType'],
kmsKeyArn: ['kmsKeyArn'],
snapshotArn: ['snapshotArn'],
volumeArn: ['volumeArn'],
volumeSizeInGb: ['volumeSizeInGb'],
volumeType: ['volumeType'],
}],
skippedVolumeDetails: ['skippedVolumeDetails'],
},
ecsClusterDetails: {
arn: ['arn'],
name: ['name'],
status: ['status'],
tags: [{
key: ['key'],
value: ['value'],
}],
taskDetails: {
arn: ['arn'],
containers: [{
image: ['image'],
name: ['name'],
}],
createdAt: ['createdAt'],
definitionArn: ['definitionArn'],
startedAt: ['startedAt'],
startedBy: ['startedBy'],
version: ['version'],
},
},
eksClusterDetails: {
arn: ['arn'],
createdAt: ['createdAt'],
name: ['name'],
status: ['status'],
tags: [{
key: ['key'],
value: ['value'],
}],
vpcId: ['vpcId'],
},
instanceDetails: {
availabilityZone: ['availabilityZone'],
iamInstanceProfile: {
arn: ['arn'],
id: ['id'],
},
imageDescription: ['imageDescription'],
imageId: ['imageId'],
instanceId: ['instanceId'],
instanceState: ['instanceState'],
instanceType: ['instanceType'],
launchTime: ['launchTime'],
networkInterfaces: [{
ipv6Addresses: [ipv6Addresses],
networkInterfaceId: ['networkInterfaceId'],
privateDnsName: ['privateDnsName'],
privateIpAddress: ['privateIpAddress'],
privateIpAddresses: [{
privateDnsName: ['privateDnsName'],
privateIpAddress: ['privateIpAddress'],
}],
publicDnsName: ['publicDnsName'],
publicIp: ['publicIp'],
securityGroups: [{
groupId: ['groupId'],
groupName: ['groupName'],
}],
subnetId: ['subnetId'],
vpcId: ['vpcId'],
}],
outpostArn: ['outpostArn'],
platform: ['platform'],
productCodes: [{
productCodeId: ['productCodeId'],
productCodeType: ['productCodeType'],
}],
tags: [{
key: ['key'],
value: ['value'],
}],
},
kubernetesDetails: {
kubernetesUserDetails: {
groups: ['groups'],
uid: ['uid'],
username: ['username'],
},
kubernetesWorkloadDetails: {
containers: [{
image: ['image'],
imagePrefix: ['imagePrefix'],
name: ['name'],
securityContext: {
privileged: ['privileged'],
},
}],
name: ['name'],
namespace: ['namespace'],
type: ['type'],
uid: ['uid'],
},
},
resourceType: ['resourceType'],
s3BucketDetails: [{
arn: ['arn'],
createdAt: ['createdAt'],
defaultServerSideEncryption: {
encryptionType: ['encryptionType'],
kmsMasterKeyArn: ['kmsMasterKeyArn'],
},
name: ['name'],
owner: {
id: ['id'],
},
publicAccess: {
effectivePermission: ['effectivePermission'],
permissionConfiguration: {
accountLevelPermissions: {
blockPublicAccess: {
blockPublicAcls: ['blockPublicAcls'],
blockPublicPolicy: ['blockPublicPolicy'],
ignorePublicAcls: ['ignorePublicAcls'],
restrictPublicBuckets: ['restrictPublicBuckets'],
},
},
bucketLevelPermissions: {
accessControlList: {
allowsPublicReadAccess: ['allowsPublicReadAccess'],
allowsPublicWriteAccess: ['allowsPublicWriteAccess'],
},
blockPublicAccess: {
blockPublicAcls: ['blockPublicAcls'],
blockPublicPolicy: ['blockPublicPolicy'],
ignorePublicAcls: ['ignorePublicAcls'],
restrictPublicBuckets: ['restrictPublicBuckets'],
},
bucketPolicy: {
allowsPublicReadAccess: ['allowsPublicReadAccess'],
allowsPublicWriteAccess: ['allowsPublicWriteAccess'],
},
},
},
},
tags: [{
key: ['key'],
value: ['value'],
}],
type: ['type'],
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| access | Access | accessKeyDetails property. |
| container | Container | containerDetails property. |
| ebs | Ebs | ebsVolumeDetails property. |
| ecs | Ecs | ecsClusterDetails property. |
| eks | Eks | eksClusterDetails property. |
| instance | Instance | instanceDetails property. |
| kubernetes | Kubernetes | kubernetesDetails property. |
| resource | string[] | resourceType property. |
| s3 | Resource[] | s3BucketDetails property. |
accessKeyDetails?
Type:
Access
(optional, default: Do not filter on this field)
accessKeyDetails property.
Specify an array of string values to match this event if the actual value of accessKeyDetails is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.
containerDetails?
Type:
Container
(optional, default: Do not filter on this field)
containerDetails property.
Specify an array of string values to match this event if the actual value of containerDetails is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.
ebsVolumeDetails?
Type:
Ebs
(optional, default: Do not filter on this field)
ebsVolumeDetails property.
Specify an array of string values to match this event if the actual value of ebsVolumeDetails is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.
ecsClusterDetails?
Type:
Ecs
(optional, default: Do not filter on this field)
ecsClusterDetails property.
Specify an array of string values to match this event if the actual value of ecsClusterDetails is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.
eksClusterDetails?
Type:
Eks
(optional, default: Do not filter on this field)
eksClusterDetails property.
Specify an array of string values to match this event if the actual value of eksClusterDetails is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.
instanceDetails?
Type:
Instance
(optional, default: Do not filter on this field)
instanceDetails property.
Specify an array of string values to match this event if the actual value of instanceDetails is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.
kubernetesDetails?
Type:
Kubernetes
(optional, default: Do not filter on this field)
kubernetesDetails property.
Specify an array of string values to match this event if the actual value of kubernetesDetails is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.
resourceType?
Type:
string[]
(optional, default: Do not filter on this field)
resourceType property.
Specify an array of string values to match this event if the actual value of resourceType is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.
s3BucketDetails?
Type:
Resource[]
(optional, default: Do not filter on this field)
s3BucketDetails property.
Specify an array of string values to match this event if the actual value of s3BucketDetails is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.

.NET
Go
Java
Python
TypeScript