ResourceDetails

Struct ResourceDetails 

Source
pub struct ResourceDetails {
Show 23 fields pub aws_auto_scaling_auto_scaling_group: Option<AwsAutoScalingAutoScalingGroupDetails>, pub aws_cloud_front_distribution: Option<AwsCloudFrontDistributionDetails>, pub aws_code_build_project: Option<AwsCodeBuildProjectDetails>, pub aws_ec_2_instance: Option<AwsEc2InstanceDetails>, pub aws_ec_2_network_interface: Option<AwsEc2NetworkInterfaceDetails>, pub aws_ec_2_security_group: Option<AwsEc2SecurityGroupDetails>, pub aws_ec_2_volume: Option<AwsEc2VolumeDetails>, pub aws_ec_2_vpc: Option<AwsEc2VpcDetails>, pub aws_elasticsearch_domain: Option<AwsElasticsearchDomainDetails>, pub aws_elbv_2_load_balancer: Option<AwsElbv2LoadBalancerDetails>, pub aws_iam_access_key: Option<AwsIamAccessKeyDetails>, pub aws_iam_role: Option<AwsIamRoleDetails>, pub aws_kms_key: Option<AwsKmsKeyDetails>, pub aws_lambda_function: Option<AwsLambdaFunctionDetails>, pub aws_lambda_layer_version: Option<AwsLambdaLayerVersionDetails>, pub aws_rds_db_instance: Option<AwsRdsDbInstanceDetails>, pub aws_s3_bucket: Option<AwsS3BucketDetails>, pub aws_s3_object: Option<AwsS3ObjectDetails>, pub aws_sns_topic: Option<AwsSnsTopicDetails>, pub aws_sqs_queue: Option<AwsSqsQueueDetails>, pub aws_waf_web_acl: Option<AwsWafWebAclDetails>, pub container: Option<ContainerDetails>, pub other: Option<HashMap<String, String>>,
}
Expand description

Additional details about a resource related to a finding.

To provide the details, use the object that corresponds to the resource type. For example, if the resource type is AwsEc2Instance, then you use the AwsEc2Instance object to provide the details.

If the type-specific object does not contain all of the fields you want to populate, then you use the Other object to populate those additional fields.

You also use the Other object to populate the details when the selected type does not have a corresponding object.

Fields§

§aws_auto_scaling_auto_scaling_group: Option<AwsAutoScalingAutoScalingGroupDetails>

Details for an autoscaling group.

§aws_cloud_front_distribution: Option<AwsCloudFrontDistributionDetails>

Details about a CloudFront distribution.

§aws_code_build_project: Option<AwsCodeBuildProjectDetails>

Details for an AWS CodeBuild project.

§aws_ec_2_instance: Option<AwsEc2InstanceDetails>

Details about an Amazon EC2 instance related to a finding.

§aws_ec_2_network_interface: Option<AwsEc2NetworkInterfaceDetails>

Details for an Amazon EC2 network interface.

§aws_ec_2_security_group: Option<AwsEc2SecurityGroupDetails>

Details for an EC2 security group.

§aws_ec_2_volume: Option<AwsEc2VolumeDetails>

Details for an EC2 volume.

§aws_ec_2_vpc: Option<AwsEc2VpcDetails>

Details for an EC2 VPC.

§aws_elasticsearch_domain: Option<AwsElasticsearchDomainDetails>

Details for an Elasticsearch domain.

§aws_elbv_2_load_balancer: Option<AwsElbv2LoadBalancerDetails>

Details about a load balancer.

§aws_iam_access_key: Option<AwsIamAccessKeyDetails>

Details about an IAM access key related to a finding.

§aws_iam_role: Option<AwsIamRoleDetails>

Details about an IAM role.

§aws_kms_key: Option<AwsKmsKeyDetails>

Details about a KMS key.

§aws_lambda_function: Option<AwsLambdaFunctionDetails>

Details about a Lambda function.

§aws_lambda_layer_version: Option<AwsLambdaLayerVersionDetails>

Details for a Lambda layer version.

§aws_rds_db_instance: Option<AwsRdsDbInstanceDetails>

Details for an Amazon RDS database instance.

§aws_s3_bucket: Option<AwsS3BucketDetails>

Details about an Amazon S3 bucket related to a finding.

§aws_s3_object: Option<AwsS3ObjectDetails>

Details about an Amazon S3 object related to a finding.

§aws_sns_topic: Option<AwsSnsTopicDetails>

Details about an SNS topic.

§aws_sqs_queue: Option<AwsSqsQueueDetails>

Details about an SQS queue.

§aws_waf_web_acl: Option<AwsWafWebAclDetails>

Details for a WAF WebACL.

§container: Option<ContainerDetails>

Details about a container resource related to a finding.

§other: Option<HashMap<String, String>>

Details about a resource that are not available in a type-specific details object. Use the Other object in the following cases.

  • The type-specific object does not contain all of the fields that you want to populate. In this case, first use the type-specific object to populate those fields. Use the Other object to populate the fields that are missing from the type-specific object.

  • The resource type does not have a corresponding object. This includes resources for which the type is Other.

Trait Implementations§

Source§

impl Clone for ResourceDetails

Source§

fn clone(&self) -> ResourceDetails

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ResourceDetails

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ResourceDetails

Source§

fn default() -> ResourceDetails

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ResourceDetails

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for ResourceDetails

Source§

fn eq(&self, other: &ResourceDetails) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ResourceDetails

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ResourceDetails

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,