New creates a new instance of the CloudFront client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.


// Create a CloudFront client from just a session.
svc := cloudfront.New(mySession)

// Create a CloudFront client with additional configuration
svc := cloudfront.New(mySession, aws.NewConfig().WithRegion("us-west-2"))