

# ResourceV2


Contains information about the Amazon resource that is associated with the GuardDuty finding.

## Contents


 ** resourceType **   <a name="guardduty-Type-ResourceV2-resourceType"></a>
The type of the Amazon resource.  
Type: String  
Valid Values: `EC2_INSTANCE | EC2_NETWORK_INTERFACE | S3_BUCKET | S3_OBJECT | ACCESS_KEY | EKS_CLUSTER | KUBERNETES_WORKLOAD | CONTAINER | ECS_CLUSTER | ECS_TASK | AUTOSCALING_AUTO_SCALING_GROUP | IAM_INSTANCE_PROFILE | CLOUDFORMATION_STACK | EC2_LAUNCH_TEMPLATE | EC2_VPC | EC2_IMAGE`   
Required: Yes

 ** uid **   <a name="guardduty-Type-ResourceV2-uid"></a>
The unique identifier of the resource.  
Type: String  
Required: Yes

 ** accountId **   <a name="guardduty-Type-ResourceV2-accountId"></a>
The Amazon account ID to which the resource belongs.  
Type: String  
Required: No

 ** cloudPartition **   <a name="guardduty-Type-ResourceV2-cloudPartition"></a>
The cloud partition within the Amazon Region to which the resource belongs.  
Type: String  
Required: No

 ** data **   <a name="guardduty-Type-ResourceV2-data"></a>
Contains information about the Amazon resource associated with the activity that prompted GuardDuty to generate a finding.  
Type: [ResourceData](API_ResourceData.md) object  
Required: No

 ** name **   <a name="guardduty-Type-ResourceV2-name"></a>
The name of the resource.  
Type: String  
Required: No

 ** region **   <a name="guardduty-Type-ResourceV2-region"></a>
The Amazon Region where the resource belongs.  
Type: String  
Required: No

 ** service **   <a name="guardduty-Type-ResourceV2-service"></a>
The Amazon service of the resource.  
Type: String  
Required: No

 ** tags **   <a name="guardduty-Type-ResourceV2-tags"></a>
Contains information about the tags associated with the resource.  
Type: Array of [Tag](API_Tag.md) objects  
Required: No

## See Also


For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\$1\$1](https://docs.amazonaws.cn/goto/SdkForCpp/guardduty-2017-11-28/ResourceV2) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/guardduty-2017-11-28/ResourceV2) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/guardduty-2017-11-28/ResourceV2) 