You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: _target.rs
    path of file: ./repos/aws-sdk-rust/sdk/eventbridge/src/types
    
    the code of the file until where you have to start completion: // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Targets are the resources to be invoked when a rule is triggered. For a complete list of services and resources that can be set as a target, see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutTargets.html">PutTargets</a>.</p>
/// <p>If you are setting the event bus of another account as the target, and that account granted permission to your account through an organization instead of directly by the account ID, then you must specify a <code>RoleArn</code> with proper permissions in the <code>Target</code> structure. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html">Sending and Receiving Events Between Amaz
    
    pub fn build(self) -> ::std::result::Result<crate::types::Target, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::Target {
            id: self.id.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field("id", "id was not specified but it is required when building Target")
            })?,
            arn: self.arn.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "arn",
                    "arn was not specified but it is required when building Target",
                )
            })?,
            role_arn: self.role_arn,
            input: self.input,
            input_path: self.input_path,
            input_transformer: self.input_transformer,
            kinesis_parameters: self.kinesis_parameters,
            run_command_parameters: self.run_command_parameters,
            ecs_parameters: self.ecs_parameters,
            batch_parameters: self.batch_parameters,
            sqs_parameters: self.sqs_parameters,
            http_parameters: self.http_parameters,
            redshift_data_parameters: self.redshift_data_parameters,
            sage_maker_pipeline_parameters: self.sage_maker_pipeline_parameters,
            dead_letter_config: self.dead_letter_config,
            retry_policy: self.retry_policy,
            app_sync_parameters: self.app_sync_parameters,
        })
    }