#[non_exhaustive]
pub struct ResourceDetails { /* private fields */ }
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.

Implementations§

source§

impl ResourceDetails

source

pub fn aws_auto_scaling_auto_scaling_group( &self ) -> Option<&AwsAutoScalingAutoScalingGroupDetails>

Details for an autoscaling group.

source

pub fn aws_code_build_project(&self) -> Option<&AwsCodeBuildProjectDetails>

Details for an CodeBuild project.

source

pub fn aws_cloud_front_distribution( &self ) -> Option<&AwsCloudFrontDistributionDetails>

Details about a CloudFront distribution.

source

pub fn aws_ec2_instance(&self) -> Option<&AwsEc2InstanceDetails>

Details about an EC2 instance related to a finding.

source

pub fn aws_ec2_network_interface( &self ) -> Option<&AwsEc2NetworkInterfaceDetails>

Details for an EC2 network interface.

source

pub fn aws_ec2_security_group(&self) -> Option<&AwsEc2SecurityGroupDetails>

Details for an EC2 security group.

source

pub fn aws_ec2_volume(&self) -> Option<&AwsEc2VolumeDetails>

Details for an Amazon EC2 volume.

source

pub fn aws_ec2_vpc(&self) -> Option<&AwsEc2VpcDetails>

Details for an Amazon EC2 VPC.

source

pub fn aws_ec2_eip(&self) -> Option<&AwsEc2EipDetails>

Details about an Elastic IP address.

source

pub fn aws_ec2_subnet(&self) -> Option<&AwsEc2SubnetDetails>

Details about a subnet in Amazon EC2.

source

pub fn aws_ec2_network_acl(&self) -> Option<&AwsEc2NetworkAclDetails>

Details about an EC2 network access control list (ACL).

source

pub fn aws_elbv2_load_balancer(&self) -> Option<&AwsElbv2LoadBalancerDetails>

Details about a load balancer.

source

pub fn aws_elastic_beanstalk_environment( &self ) -> Option<&AwsElasticBeanstalkEnvironmentDetails>

Details about an Elastic Beanstalk environment.

source

pub fn aws_elasticsearch_domain(&self) -> Option<&AwsElasticsearchDomainDetails>

Details for an Elasticsearch domain.

source

pub fn aws_s3_bucket(&self) -> Option<&AwsS3BucketDetails>

Details about an S3 bucket related to a finding.

source

pub fn aws_s3_account_public_access_block( &self ) -> Option<&AwsS3AccountPublicAccessBlockDetails>

Details about the Amazon S3 Public Access Block configuration for an account.

source

pub fn aws_s3_object(&self) -> Option<&AwsS3ObjectDetails>

Details about an S3 object related to a finding.

source

pub fn aws_secrets_manager_secret( &self ) -> Option<&AwsSecretsManagerSecretDetails>

Details about a Secrets Manager secret.

source

pub fn aws_iam_access_key(&self) -> Option<&AwsIamAccessKeyDetails>

Details about an IAM access key related to a finding.

source

pub fn aws_iam_user(&self) -> Option<&AwsIamUserDetails>

Details about an IAM user.

source

pub fn aws_iam_policy(&self) -> Option<&AwsIamPolicyDetails>

Details about an IAM permissions policy.

source

pub fn aws_api_gateway_v2_stage(&self) -> Option<&AwsApiGatewayV2StageDetails>

Provides information about a version 2 stage for Amazon API Gateway.

source

pub fn aws_api_gateway_v2_api(&self) -> Option<&AwsApiGatewayV2ApiDetails>

Provides information about a version 2 API in Amazon API Gateway.

source

pub fn aws_dynamo_db_table(&self) -> Option<&AwsDynamoDbTableDetails>

Details about a DynamoDB table.

source

pub fn aws_api_gateway_stage(&self) -> Option<&AwsApiGatewayStageDetails>

Provides information about a version 1 Amazon API Gateway stage.

source

pub fn aws_api_gateway_rest_api(&self) -> Option<&AwsApiGatewayRestApiDetails>

Provides information about a REST API in version 1 of Amazon API Gateway.

source

pub fn aws_cloud_trail_trail(&self) -> Option<&AwsCloudTrailTrailDetails>

Provides details about a CloudTrail trail.

source

pub fn aws_ssm_patch_compliance(&self) -> Option<&AwsSsmPatchComplianceDetails>

Provides information about the state of a patch on an instance based on the patch baseline that was used to patch the instance.

source

pub fn aws_certificate_manager_certificate( &self ) -> Option<&AwsCertificateManagerCertificateDetails>

Provides details about an Certificate Manager certificate.

source

pub fn aws_redshift_cluster(&self) -> Option<&AwsRedshiftClusterDetails>

Contains details about an Amazon Redshift cluster.

source

pub fn aws_elb_load_balancer(&self) -> Option<&AwsElbLoadBalancerDetails>

Contains details about a Classic Load Balancer.

source

pub fn aws_iam_group(&self) -> Option<&AwsIamGroupDetails>

Contains details about an IAM group.

source

pub fn aws_iam_role(&self) -> Option<&AwsIamRoleDetails>

Details about an IAM role.

source

pub fn aws_kms_key(&self) -> Option<&AwsKmsKeyDetails>

Details about an KMS key.

source

pub fn aws_lambda_function(&self) -> Option<&AwsLambdaFunctionDetails>

Details about a Lambda function.

source

pub fn aws_lambda_layer_version(&self) -> Option<&AwsLambdaLayerVersionDetails>

Details for a Lambda layer version.

source

pub fn aws_rds_db_instance(&self) -> Option<&AwsRdsDbInstanceDetails>

Details about an Amazon RDS database instance.

source

pub fn aws_sns_topic(&self) -> Option<&AwsSnsTopicDetails>

Details about an SNS topic.

source

pub fn aws_sqs_queue(&self) -> Option<&AwsSqsQueueDetails>

Details about an SQS queue.

source

pub fn aws_waf_web_acl(&self) -> Option<&AwsWafWebAclDetails>

Details for an WAF web ACL.

source

pub fn aws_rds_db_snapshot(&self) -> Option<&AwsRdsDbSnapshotDetails>

Details about an Amazon RDS database snapshot.

source

pub fn aws_rds_db_cluster_snapshot( &self ) -> Option<&AwsRdsDbClusterSnapshotDetails>

Details about an Amazon RDS database cluster snapshot.

source

pub fn aws_rds_db_cluster(&self) -> Option<&AwsRdsDbClusterDetails>

Details about an Amazon RDS database cluster.

source

pub fn aws_ecs_cluster(&self) -> Option<&AwsEcsClusterDetails>

Details about an Amazon ECS cluster.

source

pub fn aws_ecs_container(&self) -> Option<&AwsEcsContainerDetails>

Provides information about a Docker container that's part of a task.

source

pub fn aws_ecs_task_definition(&self) -> Option<&AwsEcsTaskDefinitionDetails>

Details about a task definition. A task definition describes the container and volume definitions of an Amazon Elastic Container Service task.

source

pub fn container(&self) -> Option<&ContainerDetails>

Details about a container resource related to a finding.

source

pub fn other(&self) -> 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.

source

pub fn aws_rds_event_subscription( &self ) -> Option<&AwsRdsEventSubscriptionDetails>

Details about an RDS event notification subscription.

source

pub fn aws_ecs_service(&self) -> Option<&AwsEcsServiceDetails>

Details about a service within an ECS cluster.

source

pub fn aws_auto_scaling_launch_configuration( &self ) -> Option<&AwsAutoScalingLaunchConfigurationDetails>

Provides details about a launch configuration.

source

pub fn aws_ec2_vpn_connection(&self) -> Option<&AwsEc2VpnConnectionDetails>

Details about an Amazon EC2 VPN connection.

source

pub fn aws_ecr_container_image(&self) -> Option<&AwsEcrContainerImageDetails>

Information about an Amazon ECR image.

source

pub fn aws_open_search_service_domain( &self ) -> Option<&AwsOpenSearchServiceDomainDetails>

Details about an Amazon OpenSearch Service domain.

source

pub fn aws_ec2_vpc_endpoint_service( &self ) -> Option<&AwsEc2VpcEndpointServiceDetails>

Details about the service configuration for a VPC endpoint service.

source

pub fn aws_xray_encryption_config( &self ) -> Option<&AwsXrayEncryptionConfigDetails>

Information about the encryption configuration for X-Ray.

source

pub fn aws_waf_rate_based_rule(&self) -> Option<&AwsWafRateBasedRuleDetails>

Details about a rate-based rule for global resources.

source

pub fn aws_waf_regional_rate_based_rule( &self ) -> Option<&AwsWafRegionalRateBasedRuleDetails>

Details about a rate-based rule for Regional resources.

source

pub fn aws_ecr_repository(&self) -> Option<&AwsEcrRepositoryDetails>

Information about an Amazon Elastic Container Registry repository.

source

pub fn aws_eks_cluster(&self) -> Option<&AwsEksClusterDetails>

Details about an Amazon EKS cluster.

source

pub fn aws_network_firewall_firewall_policy( &self ) -> Option<&AwsNetworkFirewallFirewallPolicyDetails>

Details about an Network Firewall firewall policy.

source

pub fn aws_network_firewall_firewall( &self ) -> Option<&AwsNetworkFirewallFirewallDetails>

Details about an Network Firewall firewall.

source

pub fn aws_network_firewall_rule_group( &self ) -> Option<&AwsNetworkFirewallRuleGroupDetails>

Details about an Network Firewall rule group.

source

pub fn aws_rds_db_security_group(&self) -> Option<&AwsRdsDbSecurityGroupDetails>

Details about an Amazon RDS DB security group.

source

pub fn aws_kinesis_stream(&self) -> Option<&AwsKinesisStreamDetails>

Details about an Amazon Kinesis data stream.

source

pub fn aws_ec2_transit_gateway(&self) -> Option<&AwsEc2TransitGatewayDetails>

Details about an Amazon EC2 transit gateway that interconnects your virtual private clouds (VPC) and on-premises networks.

source

pub fn aws_efs_access_point(&self) -> Option<&AwsEfsAccessPointDetails>

Details about an Amazon EFS access point. An access point is an application-specific view into an EFS file system that applies an operating system user and group, and a file system path, to any file system request made through the access point.

source

pub fn aws_cloud_formation_stack( &self ) -> Option<&AwsCloudFormationStackDetails>

Details about an CloudFormation stack. A stack is a collection of Amazon Web Services resources that you can manage as a single unit.

source

pub fn aws_cloud_watch_alarm(&self) -> Option<&AwsCloudWatchAlarmDetails>

Details about an Amazon CloudWatch alarm. An alarm allows you to monitor and receive alerts about your Amazon Web Services resources and applications across multiple Regions.

source

pub fn aws_ec2_vpc_peering_connection( &self ) -> Option<&AwsEc2VpcPeeringConnectionDetails>

Details about an Amazon EC2 VPC peering connection. A VPC peering connection is a networking connection between two VPCs that enables you to route traffic between them privately.

source

pub fn aws_waf_regional_rule_group( &self ) -> Option<&AwsWafRegionalRuleGroupDetails>

Details about an WAF rule group for Regional resources.

source

pub fn aws_waf_regional_rule(&self) -> Option<&AwsWafRegionalRuleDetails>

Details about an WAF rule for Regional resources.

source

pub fn aws_waf_regional_web_acl(&self) -> Option<&AwsWafRegionalWebAclDetails>

Details about an WAF web access control list (web ACL) for Regional resources.

source

pub fn aws_waf_rule(&self) -> Option<&AwsWafRuleDetails>

Details about an WAF rule for global resources.

source

pub fn aws_waf_rule_group(&self) -> Option<&AwsWafRuleGroupDetails>

Details about an WAF rule group for global resources.

source

pub fn aws_ecs_task(&self) -> Option<&AwsEcsTaskDetails>

Details about a task in a cluster.

source

pub fn aws_backup_backup_vault(&self) -> Option<&AwsBackupBackupVaultDetails>

Provides details about an Backup backup vault.

source

pub fn aws_backup_backup_plan(&self) -> Option<&AwsBackupBackupPlanDetails>

Provides details about an Backup backup plan.

source

pub fn aws_backup_recovery_point( &self ) -> Option<&AwsBackupRecoveryPointDetails>

Provides details about an Backup backup, or recovery point.

source

pub fn aws_ec2_launch_template(&self) -> Option<&AwsEc2LaunchTemplateDetails>

Specifies the properties for creating an Amazon Elastic Compute Cloud (Amazon EC2) launch template.

source

pub fn aws_sage_maker_notebook_instance( &self ) -> Option<&AwsSageMakerNotebookInstanceDetails>

Provides details about an Amazon SageMaker notebook instance.

source

pub fn aws_wafv2_web_acl(&self) -> Option<&AwsWafv2WebAclDetails>

Details about an WAFv2 web Access Control List (ACL).

source

pub fn aws_wafv2_rule_group(&self) -> Option<&AwsWafv2RuleGroupDetails>

Details about an WAFv2 rule group.

source§

impl ResourceDetails

source

pub fn builder() -> ResourceDetailsBuilder

Creates a new builder-style object to manufacture ResourceDetails.

Trait Implementations§

source§

impl Clone for ResourceDetails

source§

fn clone(&self) -> ResourceDetails

Returns a copy 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 PartialEq<ResourceDetails> for ResourceDetails

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for ResourceDetails

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · 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, U> Into<U> for Twhere U: From<T>,

const: unstable · 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<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · 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