{"action":"closed","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/321","repository_url":"https://api.github.com/repos/aws/aws-sdk-ios","labels_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/321/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/321/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/321/events","html_url":"https://github.com/aws/aws-sdk-ios/issues/321","id":134248870,"number":321,"title":"why there is no way to initiate endpoint in AWSServiceConfiguration?","user":{"login":"zhihuitang","id":5066926,"avatar_url":"https://avatars.githubusercontent.com/u/5066926?v=3","gravatar_id":"","url":"https://api.github.com/users/zhihuitang","html_url":"https://github.com/zhihuitang","followers_url":"https://api.github.com/users/zhihuitang/followers","following_url":"https://api.github.com/users/zhihuitang/following{/other_user}","gists_url":"https://api.github.com/users/zhihuitang/gists{/gist_id}","starred_url":"https://api.github.com/users/zhihuitang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhihuitang/subscriptions","organizations_url":"https://api.github.com/users/zhihuitang/orgs","repos_url":"https://api.github.com/users/zhihuitang/repos","events_url":"https://api.github.com/users/zhihuitang/events{/privacy}","received_events_url":"https://api.github.com/users/zhihuitang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-17T10:56:10Z","updated_at":"2016-02-17T20:59:56Z","closed_at":"2016-02-17T20:59:56Z","body":"in AWSServiceConfiguration, there is a init function, we can initiate regionType and credentialsProvider. \r\n> (instancetype)initWithRegion:(AWSRegionType)regionType credentialsProvider:(id<AWSCredentialsProvider>)credentialsProvider;\r\n\r\nBut if I want to set endpoint, how should I do? or is it impossible?\r\n\r\n> @interface AWSServiceConfiguration : AWSNetworkingConfiguration\r\n> \r\n> @property (nonatomic, assign, readonly) AWSRegionType regionType;\r\n> @property (nonatomic, strong, readonly) id<AWSCredentialsProvider> credentialsProvider;\r\n> @property (nonatomic, strong, readonly) AWSEndpoint *endpoint;\r\n> @property (nonatomic, readonly) NSString *userAgent;\r\n> \r\n> + (NSString *)baseUserAgent;\r\n> \r\n> + (void)addGlobalUserAgentProductToken:(NSString *)productToken;\r\n> \r\n> - (instancetype)initWithRegion:(AWSRegionType)regionType\r\n>            credentialsProvider:(id<AWSCredentialsProvider>)credentialsProvider;\r\n> \r\n> - (void)addUserAgentProductToken:(NSString *)productToken;\r\n> \r\n> + (instancetype)configurationWithRegion:(AWSRegionType)regionType\r\n>                     credentialsProvider:(id<AWSCredentialsProvider>)credentialsProvider __attribute__ ((deprecated(\"Use '- initWithRegion:credentialsProvider:' instead.\")));\r\n> \r\n> @end"}}