Struct aws_sdk_inspector::client::fluent_builders::CreateAssessmentTarget [−][src]
pub struct CreateAssessmentTarget<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }Expand description
Fluent builder constructing a request to CreateAssessmentTarget.
Creates a new assessment target using the ARN of the resource group that is generated by CreateResourceGroup. If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in the assessment target. If the service-linked role isn’t already registered, this action also creates and registers a service-linked role to grant Amazon Inspector access to AWS Services needed to perform security assessments. You can create up to 50 assessment targets per AWS account. You can run up to 500 concurrent agents per AWS account. For more information, see Amazon Inspector Assessment Targets.
Implementations
impl<C, M, R> CreateAssessmentTarget<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateAssessmentTarget<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateAssessmentTargetOutput, SdkError<CreateAssessmentTargetError>> where
R::Policy: SmithyRetryPolicy<CreateAssessmentTargetInputOperationOutputAlias, CreateAssessmentTargetOutput, CreateAssessmentTargetError, CreateAssessmentTargetInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateAssessmentTargetOutput, SdkError<CreateAssessmentTargetError>> where
R::Policy: SmithyRetryPolicy<CreateAssessmentTargetInputOperationOutputAlias, CreateAssessmentTargetOutput, CreateAssessmentTargetError, CreateAssessmentTargetInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The user-defined name that identifies the assessment target that you want to create. The name must be unique within the AWS account.
The user-defined name that identifies the assessment target that you want to create. The name must be unique within the AWS account.
The ARN that specifies the resource group that is used to create the assessment target. If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in the assessment target.
The ARN that specifies the resource group that is used to create the assessment target. If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in the assessment target.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreateAssessmentTarget<C, M, R>
impl<C, M, R> Send for CreateAssessmentTarget<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateAssessmentTarget<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateAssessmentTarget<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreateAssessmentTarget<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
