Blame vendor/github.com/aws/aws-sdk-go/service/sts/doc.go

Packit 63bb0d
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
Packit 63bb0d
Packit 63bb0d
// Package sts provides the client and types for making API
Packit 63bb0d
// requests to AWS Security Token Service.
Packit 63bb0d
//
Packit 63bb0d
// The AWS Security Token Service (STS) is a web service that enables you to
Packit 63bb0d
// request temporary, limited-privilege credentials for AWS Identity and Access
Packit 63bb0d
// Management (IAM) users or for users that you authenticate (federated users).
Packit 63bb0d
// This guide provides descriptions of the STS API. For more detailed information
Packit 63bb0d
// about using this service, go to Temporary Security Credentials (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html).
Packit 63bb0d
//
Packit 63bb0d
// For information about setting up signatures and authorization through the
Packit 63bb0d
// API, go to Signing AWS API Requests (https://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html)
Packit 63bb0d
// in the AWS General Reference. For general information about the Query API,
Packit 63bb0d
// go to Making Query Requests (https://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html)
Packit 63bb0d
// in Using IAM. For information about using security tokens with other AWS
Packit 63bb0d
// products, go to AWS Services That Work with IAM (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-services-that-work-with-iam.html)
Packit 63bb0d
// in the IAM User Guide.
Packit 63bb0d
//
Packit 63bb0d
// If you're new to AWS and need additional technical information about a specific
Packit 63bb0d
// AWS product, you can find the product's technical documentation at http://aws.amazon.com/documentation/
Packit 63bb0d
// (http://aws.amazon.com/documentation/).
Packit 63bb0d
//
Packit 63bb0d
// Endpoints
Packit 63bb0d
//
Packit 63bb0d
// By default, AWS Security Token Service (STS) is available as a global service,
Packit 63bb0d
// and all AWS STS requests go to a single endpoint at https://sts.amazonaws.com.
Packit 63bb0d
// Global requests map to the US East (N. Virginia) region. AWS recommends using
Packit 63bb0d
// Regional AWS STS endpoints instead of the global endpoint to reduce latency,
Packit 63bb0d
// build in redundancy, and increase session token validity. For more information,
Packit 63bb0d
// see Managing AWS STS in an AWS Region (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html)
Packit 63bb0d
// in the IAM User Guide.
Packit 63bb0d
//
Packit 63bb0d
// Most AWS Regions are enabled for operations in all AWS services by default.
Packit 63bb0d
// Those Regions are automatically activated for use with AWS STS. Some Regions,
Packit 63bb0d
// such as Asia Pacific (Hong Kong), must be manually enabled. To learn more
Packit 63bb0d
// about enabling and disabling AWS Regions, see Managing AWS Regions (https://docs.aws.amazon.com/general/latest/gr/rande-manage.html)
Packit 63bb0d
// in the AWS General Reference. When you enable these AWS Regions, they are
Packit 63bb0d
// automatically activated for use with AWS STS. You cannot activate the STS
Packit 63bb0d
// endpoint for a Region that is disabled. Tokens that are valid in all AWS
Packit 63bb0d
// Regions are longer than tokens that are valid in Regions that are enabled
Packit 63bb0d
// by default. Changing this setting might affect existing systems where you
Packit 63bb0d
// temporarily store tokens. For more information, see Managing Global Endpoint
Packit 63bb0d
// Session Tokens (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html#sts-regions-manage-tokens)
Packit 63bb0d
// in the IAM User Guide.
Packit 63bb0d
//
Packit 63bb0d
// After you activate a Region for use with AWS STS, you can direct AWS STS
Packit 63bb0d
// API calls to that Region. AWS STS recommends that you provide both the Region
Packit 63bb0d
// and endpoint when you make calls to a Regional endpoint. You can provide
Packit 63bb0d
// the Region alone for manually enabled Regions, such as Asia Pacific (Hong
Packit 63bb0d
// Kong). In this case, the calls are directed to the STS Regional endpoint.
Packit 63bb0d
// However, if you provide the Region alone for Regions enabled by default,
Packit 63bb0d
// the calls are directed to the global endpoint of https://sts.amazonaws.com.
Packit 63bb0d
//
Packit 63bb0d
// To view the list of AWS STS endpoints and whether they are active by default,
Packit 63bb0d
// see Writing Code to Use AWS STS Regions (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html#id_credentials_temp_enable-regions_writing_code)
Packit 63bb0d
// in the IAM User Guide.
Packit 63bb0d
//
Packit 63bb0d
// Recording API requests
Packit 63bb0d
//
Packit 63bb0d
// STS supports AWS CloudTrail, which is a service that records AWS calls for
Packit 63bb0d
// your AWS account and delivers log files to an Amazon S3 bucket. By using
Packit 63bb0d
// information collected by CloudTrail, you can determine what requests were
Packit 63bb0d
// successfully made to STS, who made the request, when it was made, and so
Packit 63bb0d
// on.
Packit 63bb0d
//
Packit 63bb0d
// If you activate AWS STS endpoints in Regions other than the default global
Packit 63bb0d
// endpoint, then you must also turn on CloudTrail logging in those Regions.
Packit 63bb0d
// This is necessary to record any AWS STS API calls that are made in those
Packit 63bb0d
// Regions. For more information, see Turning On CloudTrail in Additional Regions
Packit 63bb0d
// (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/aggregating_logs_regions_turn_on_ct.html)
Packit 63bb0d
// in the AWS CloudTrail User Guide.
Packit 63bb0d
//
Packit 63bb0d
// AWS Security Token Service (STS) is a global service with a single endpoint
Packit 63bb0d
// at https://sts.amazonaws.com. Calls to this endpoint are logged as calls
Packit 63bb0d
// to a global service. However, because this endpoint is physically located
Packit 63bb0d
// in the US East (N. Virginia) Region, your logs list us-east-1 as the event
Packit 63bb0d
// Region. CloudTrail does not write these logs to the US East (Ohio) Region
Packit 63bb0d
// unless you choose to include global service logs in that Region. CloudTrail
Packit 63bb0d
// writes calls to all Regional endpoints to their respective Regions. For example,
Packit 63bb0d
// calls to sts.us-east-2.amazonaws.com are published to the US East (Ohio)
Packit 63bb0d
// Region and calls to sts.eu-central-1.amazonaws.com are published to the EU
Packit 63bb0d
// (Frankfurt) Region.
Packit 63bb0d
//
Packit 63bb0d
// To learn more about CloudTrail, including how to turn it on and find your
Packit 63bb0d
// log files, see the AWS CloudTrail User Guide (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/what_is_cloud_trail_top_level.html).
Packit 63bb0d
//
Packit 63bb0d
// See https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15 for more information on this service.
Packit 63bb0d
//
Packit 63bb0d
// See sts package documentation for more information.
Packit 63bb0d
// https://docs.aws.amazon.com/sdk-for-go/api/service/sts/
Packit 63bb0d
//
Packit 63bb0d
// Using the Client
Packit 63bb0d
//
Packit 63bb0d
// To contact AWS Security Token Service with the SDK use the New function to create
Packit 63bb0d
// a new service client. With that client you can make API requests to the service.
Packit 63bb0d
// These clients are safe to use concurrently.
Packit 63bb0d
//
Packit 63bb0d
// See the SDK's documentation for more information on how to use the SDK.
Packit 63bb0d
// https://docs.aws.amazon.com/sdk-for-go/api/
Packit 63bb0d
//
Packit 63bb0d
// See aws.Config documentation for more information on configuring SDK clients.
Packit 63bb0d
// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
Packit 63bb0d
//
Packit 63bb0d
// See the AWS Security Token Service client STS for more
Packit 63bb0d
// information on creating client for this service.
Packit 63bb0d
// https://docs.aws.amazon.com/sdk-for-go/api/service/sts/#New
Packit 63bb0d
package sts