Documentation ¶
Overview ¶
package cloudfront provides opinionated tools and methods for working with the `aws-sdk-go/service/cloudfront` package.
Index ¶
- func InvalidatePaths(ctx context.Context, svc *aws_cloudfront.CloudFront, distribution_id string, ...) (string, string, error)
- func NewClientWithURI(ctx context.Context, uri string) (*aws_cloudfront.CloudFront, error)
- func NewSessionWithURI(ctx context.Context, uri string) (*aws_session.Session, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InvalidatePaths ¶ added in v0.0.2
func InvalidatePaths(ctx context.Context, svc *aws_cloudfront.CloudFront, distribution_id string, uris ...string) (string, string, error)
InvalidatePaths will issue a "CreateInvalidation" request for 'uris' in 'distribution_id'. It will return the invalidation ID and caller reference associated with the request.
func NewClientWithURI ¶ added in v0.0.2
func NewClientWithURI(ctx context.Context, uri string) (*aws_cloudfront.CloudFront, error)
NewClientWithURI will return a new `aws-sdk-go/service/cloudfront.CloudFront` instance derived from 'uri' which is expected to take the form of:
aws://?region={AWS_REGION}&credentials={CREDENTIALS}
Where '{CREDENTIALS}' is expected to be a valid `aaronland/go-aws-session` credentials string.
func NewSessionWithURI ¶ added in v0.0.2
NewSessionWithURI will return a new `aws-sdk-go/aws/session.Session` instance derived from 'uri' which is expected to take the form of:
aws://?region={AWS_REGION}&credentials={CREDENTIALS}
Where '{CREDENTIALS}' is expected to be a valid `aaronland/go-aws-session` credentials string.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
package cmd provides opinionate command-line tools for performing CloudFront-related operations.
|
package cmd provides opinionate command-line tools for performing CloudFront-related operations. |
invalidate
Invalidate one or more URIs from a CloudFront distribution.
|
Invalidate one or more URIs from a CloudFront distribution. |