// NewDNSProvider returns a new Route53 DNS challenge provider.
// The credentials are detected automatically; see underlying
// package docs for details:
// https://godoc.org/github.com/icasei/lego/providers/dns/route53
NewDNSProvider returns a new Route53 DNS challenge provider.
// NewDNSProvider returns a new Route53 DNS challenge provider . // The credentials are detected automatically ; see underlying // package docs for details : // https : // godoc . org / github . com / icasei / lego / providers / dns / route53
func NewDNSProvider(credentials ...string) (caddytls.ChallengeProvider, error) {
	switch len(credentials) {
	case 0:
		return route53.NewDNSProvider()
	default:
		return nil, errors.New("invalid credentials length")
	}
}
func NewDNSProvider ( credentials ... string ) ( caddytls . ChallengeProvider , error ) { switch len ( credentials ) { case 0 : return route53 . NewDNSProvider ( ) default : return nil , errors . New ( " " ) } }
NewDNSProvider returns a new Route53 DNS challenge provider.
NewDNSProvider returns a new Route53 DNS challenge provider .