aws-events-connection/src/main/java/software/amazon/events/connection/Translator.java
static ResourceModel translateFromReadResponse(final DescribeConnectionResponse awsResponse) {
        software.amazon.events.connection.ResourceModel resourceModel = software.amazon.events.connection.ResourceModel.builder()
                .name(awsResponse.name())
                .arn(awsResponse.connectionArn())
                .description(awsResponse.description())
                .authorizationType(awsResponse.authorizationTypeAsString())
                .authParameters(translateFromSdkToModelAuthParameter(awsResponse.authParameters()))
                .secretArn(awsResponse.secretArn())
                .build();

        return resourceModel;

    }
/**
     * Translates resource object from sdk into a resource model
     *
     * @param awsResponse the aws service describe resource response
     * @return model resource model
     */
Translates resource object from sdk into a resource model
@param awsResponse the aws service describe resource response
@return model resource model
Translates resource object from sdk into a resource model @param awsResponse the aws service describe resource response @return model resource model
static ResourceModel translateFromReadResponse(final DescribeConnectionResponse awsResponse) {
        software.amazon.events.connection.ResourceModel resourceModel = software.amazon.events.connection.ResourceModel.builder()
                .name(awsResponse.name())
                .arn(awsResponse.connectionArn())
                .description(awsResponse.description())
                .authorizationType(awsResponse.authorizationTypeAsString())
                .authParameters(translateFromSdkToModelAuthParameter(awsResponse.authParameters()))
                .secretArn(awsResponse.secretArn())
                .build();
        return resourceModel;
    }
static ResourceModel translateFromReadResponse ( final DescribeConnectionResponse awsResponse ) { software . amazon . events . connection . ResourceModel resourceModel = software . amazon . events . connection . ResourceModel . builder ( ) . name ( awsResponse . name ( ) ) . arn ( awsResponse . connectionArn ( ) ) . description ( awsResponse . description ( ) ) . authorizationType ( awsResponse . authorizationTypeAsString ( ) ) . authParameters ( translateFromSdkToModelAuthParameter ( awsResponse . authParameters ( ) ) ) . secretArn ( awsResponse . secretArn ( ) ) . build ( ) ; return resourceModel ; }
Translates resource object from sdk into a resource model
 @param awsResponse the aws service describe resource response
 @return model resource model
Translates resource object from sdk into a resource model @param awsResponse the aws service describe resource response @return model resource model