Interface DetectorEvents.GuardDutyFinding.Resource

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
DetectorEvents.GuardDutyFinding.Resource.Jsii$Proxy
Enclosing class:
DetectorEvents.GuardDutyFinding

@Stability(Experimental) public static interface DetectorEvents.GuardDutyFinding.Resource extends software.amazon.jsii.JsiiSerializable
(experimental) 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 software.amazon.awscdk.mixins.preview.services.guardduty.events.*;
 Object ipv6Addresses;
 Resource resource = Resource.builder()
         .accessKeyDetails(AccessKeyDetails.builder()
                 .accessKeyId(List.of("accessKeyId"))
                 .principalId(List.of("principalId"))
                 .userName(List.of("userName"))
                 .userType(List.of("userType"))
                 .build())
         .containerDetails(ContainerDetails.builder()
                 .id(List.of("id"))
                 .image(List.of("image"))
                 .name(List.of("name"))
                 .build())
         .ebsVolumeDetails(EbsVolumeDetails.builder()
                 .scannedVolumeDetails(List.of(EbsVolumeDetailsItem.builder()
                         .deviceName(List.of("deviceName"))
                         .encryptionType(List.of("encryptionType"))
                         .kmsKeyArn(List.of("kmsKeyArn"))
                         .snapshotArn(List.of("snapshotArn"))
                         .volumeArn(List.of("volumeArn"))
                         .volumeSizeInGb(List.of("volumeSizeInGb"))
                         .volumeType(List.of("volumeType"))
                         .build()))
                 .skippedVolumeDetails(List.of("skippedVolumeDetails"))
                 .build())
         .ecsClusterDetails(EcsClusterDetails.builder()
                 .arn(List.of("arn"))
                 .name(List.of("name"))
                 .status(List.of("status"))
                 .tags(List.of(EcsClusterDetailsItem.builder()
                         .key(List.of("key"))
                         .value(List.of("value"))
                         .build()))
                 .taskDetails(TaskDetails.builder()
                         .arn(List.of("arn"))
                         .containers(List.of(TaskDetailsItem.builder()
                                 .image(List.of("image"))
                                 .name(List.of("name"))
                                 .build()))
                         .createdAt(List.of("createdAt"))
                         .definitionArn(List.of("definitionArn"))
                         .startedAt(List.of("startedAt"))
                         .startedBy(List.of("startedBy"))
                         .version(List.of("version"))
                         .build())
                 .build())
         .eksClusterDetails(EksClusterDetails.builder()
                 .arn(List.of("arn"))
                 .createdAt(List.of("createdAt"))
                 .name(List.of("name"))
                 .status(List.of("status"))
                 .tags(List.of(EcsClusterDetailsItem.builder()
                         .key(List.of("key"))
                         .value(List.of("value"))
                         .build()))
                 .vpcId(List.of("vpcId"))
                 .build())
         .instanceDetails(InstanceDetails.builder()
                 .availabilityZone(List.of("availabilityZone"))
                 .iamInstanceProfile(IamInstanceProfile.builder()
                         .arn(List.of("arn"))
                         .id(List.of("id"))
                         .build())
                 .imageDescription(List.of("imageDescription"))
                 .imageId(List.of("imageId"))
                 .instanceId(List.of("instanceId"))
                 .instanceState(List.of("instanceState"))
                 .instanceType(List.of("instanceType"))
                 .launchTime(List.of("launchTime"))
                 .networkInterfaces(List.of(InstanceDetailsItem.builder()
                         .ipv6Addresses(List.of(ipv6Addresses))
                         .networkInterfaceId(List.of("networkInterfaceId"))
                         .privateDnsName(List.of("privateDnsName"))
                         .privateIpAddress(List.of("privateIpAddress"))
                         .privateIpAddresses(List.of(InstanceDetailsItemItem.builder()
                                 .privateDnsName(List.of("privateDnsName"))
                                 .privateIpAddress(List.of("privateIpAddress"))
                                 .build()))
                         .publicDnsName(List.of("publicDnsName"))
                         .publicIp(List.of("publicIp"))
                         .securityGroups(List.of(InstanceDetailsItemItem1.builder()
                                 .groupId(List.of("groupId"))
                                 .groupName(List.of("groupName"))
                                 .build()))
                         .subnetId(List.of("subnetId"))
                         .vpcId(List.of("vpcId"))
                         .build()))
                 .outpostArn(List.of("outpostArn"))
                 .platform(List.of("platform"))
                 .productCodes(List.of(InstanceDetailsItem1.builder()
                         .productCodeId(List.of("productCodeId"))
                         .productCodeType(List.of("productCodeType"))
                         .build()))
                 .tags(List.of(EcsClusterDetailsItem.builder()
                         .key(List.of("key"))
                         .value(List.of("value"))
                         .build()))
                 .build())
         .kubernetesDetails(KubernetesDetails.builder()
                 .kubernetesUserDetails(KubernetesUserDetails.builder()
                         .groups(List.of("groups"))
                         .uid(List.of("uid"))
                         .username(List.of("username"))
                         .build())
                 .kubernetesWorkloadDetails(KubernetesWorkloadDetails.builder()
                         .containers(List.of(KubernetesWorkloadDetailsItem.builder()
                                 .image(List.of("image"))
                                 .imagePrefix(List.of("imagePrefix"))
                                 .name(List.of("name"))
                                 .securityContext(SecurityContext.builder()
                                         .privileged(List.of("privileged"))
                                         .build())
                                 .build()))
                         .name(List.of("name"))
                         .namespace(List.of("namespace"))
                         .type(List.of("type"))
                         .uid(List.of("uid"))
                         .build())
                 .build())
         .resourceType(List.of("resourceType"))
         .s3BucketDetails(List.of(ResourceItem.builder()
                 .arn(List.of("arn"))
                 .createdAt(List.of("createdAt"))
                 .defaultServerSideEncryption(DefaultServerSideEncryption.builder()
                         .encryptionType(List.of("encryptionType"))
                         .kmsMasterKeyArn(List.of("kmsMasterKeyArn"))
                         .build())
                 .name(List.of("name"))
                 .owner(Owner.builder()
                         .id(List.of("id"))
                         .build())
                 .publicAccess(PublicAccess.builder()
                         .effectivePermission(List.of("effectivePermission"))
                         .permissionConfiguration(PermissionConfiguration.builder()
                                 .accountLevelPermissions(AccountLevelPermissions.builder()
                                         .blockPublicAccess(BlockPublicAccess.builder()
                                                 .blockPublicAcls(List.of("blockPublicAcls"))
                                                 .blockPublicPolicy(List.of("blockPublicPolicy"))
                                                 .ignorePublicAcls(List.of("ignorePublicAcls"))
                                                 .restrictPublicBuckets(List.of("restrictPublicBuckets"))
                                                 .build())
                                         .build())
                                 .bucketLevelPermissions(BucketLevelPermissions.builder()
                                         .accessControlList(AccessControlList.builder()
                                                 .allowsPublicReadAccess(List.of("allowsPublicReadAccess"))
                                                 .allowsPublicWriteAccess(List.of("allowsPublicWriteAccess"))
                                                 .build())
                                         .blockPublicAccess(BlockPublicAccess.builder()
                                                 .blockPublicAcls(List.of("blockPublicAcls"))
                                                 .blockPublicPolicy(List.of("blockPublicPolicy"))
                                                 .ignorePublicAcls(List.of("ignorePublicAcls"))
                                                 .restrictPublicBuckets(List.of("restrictPublicBuckets"))
                                                 .build())
                                         .bucketPolicy(AccessControlList.builder()
                                                 .allowsPublicReadAccess(List.of("allowsPublicReadAccess"))
                                                 .allowsPublicWriteAccess(List.of("allowsPublicWriteAccess"))
                                                 .build())
                                         .build())
                                 .build())
                         .build())
                 .tags(List.of(EcsClusterDetailsItem.builder()
                         .key(List.of("key"))
                         .value(List.of("value"))
                         .build()))
                 .type(List.of("type"))
                 .build()))
         .build();
 
  • Method Details

    • getAccessKeyDetails

      @Stability(Experimental) @Nullable default DetectorEvents.GuardDutyFinding.AccessKeyDetails getAccessKeyDetails()
      (experimental) 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.

      Default: - Do not filter on this field

    • getContainerDetails

      @Stability(Experimental) @Nullable default DetectorEvents.GuardDutyFinding.ContainerDetails getContainerDetails()
      (experimental) 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.

      Default: - Do not filter on this field

    • getEbsVolumeDetails

      @Stability(Experimental) @Nullable default DetectorEvents.GuardDutyFinding.EbsVolumeDetails getEbsVolumeDetails()
      (experimental) 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.

      Default: - Do not filter on this field

    • getEcsClusterDetails

      @Stability(Experimental) @Nullable default DetectorEvents.GuardDutyFinding.EcsClusterDetails getEcsClusterDetails()
      (experimental) 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.

      Default: - Do not filter on this field

    • getEksClusterDetails

      @Stability(Experimental) @Nullable default DetectorEvents.GuardDutyFinding.EksClusterDetails getEksClusterDetails()
      (experimental) 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.

      Default: - Do not filter on this field

    • getInstanceDetails

      @Stability(Experimental) @Nullable default DetectorEvents.GuardDutyFinding.InstanceDetails getInstanceDetails()
      (experimental) 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.

      Default: - Do not filter on this field

    • getKubernetesDetails

      @Stability(Experimental) @Nullable default DetectorEvents.GuardDutyFinding.KubernetesDetails getKubernetesDetails()
      (experimental) 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.

      Default: - Do not filter on this field

    • getResourceType

      @Stability(Experimental) @Nullable default List<String> getResourceType()
      (experimental) 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.

      Default: - Do not filter on this field

    • getS3BucketDetails

      @Stability(Experimental) @Nullable default List<DetectorEvents.GuardDutyFinding.ResourceItem> getS3BucketDetails()
      (experimental) 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.

      Default: - Do not filter on this field

    • builder

      @Stability(Experimental) static DetectorEvents.GuardDutyFinding.Resource.Builder builder()
      Returns:
      a DetectorEvents.GuardDutyFinding.Resource.Builder of DetectorEvents.GuardDutyFinding.Resource