lib/aws/sts.rb in aws-sdk-1.1.3 vs lib/aws/sts.rb in aws-sdk-1.1.4

- old
+ new

@@ -9,15 +9,12 @@ # or in the "license" file accompanying this file. This file is # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF # ANY KIND, either express or implied. See the License for the specific # language governing permissions and limitations under the License. -require 'aws/service_interface' -require 'aws/sts/client' -require 'aws/sts/session' -require 'aws/sts/federated_session' -require 'aws/sts/policy' +require 'aws/core' +require 'aws/sts/config' module AWS # This class is a starting point for working with the AWS Security # Token Service. The AWS Security Token Service is a web service @@ -40,10 +37,19 @@ # ec2 = AWS::EC2.new(session.credentials) # ec2.instances.to_a # class STS - include ServiceInterface + AWS.register_autoloads(self) do + autoload :Client, 'client' + autoload :Errors, 'errors' + autoload :FederatedSession, 'federated_session' + autoload :Policy, 'policy' + autoload :Request, 'request' + autoload :Session, 'session' + end + + include Core::ServiceInterface # Returns a set of temporary credentials for an AWS account or IAM # User. The credentials consist of an Access Key ID, a Secret # Access Key, and a security token. These credentials are valid # for the specified duration only. The session duration for IAM