// Creates a key group that you can use with CloudFront signed URLs and signed
// cookies
// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html).
// To create a key group, you must specify at least one public key for the key
// group. After you create a key group, you can reference it from one or more cache
// behaviors. When you reference a key group in a cache behavior, CloudFront
// requires signed URLs or signed cookies for all requests that match the cache
// behavior. The URLs or cookies must be signed with a private key whose
// corresponding public key is in the key group. The signed URL or cookie contains
// information about which public key CloudFront should use to verify the
// signature. For more information, see Serving private content
// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html)
// in the Amazon CloudFront Developer Guide.
Creates a key group that you can use with CloudFront signed URLs and signed
cookies
.
To create a key group, you must specify at least one public key for the key
group. After you create a key group, you can reference it from one or more cache
behaviors. When you reference a key group in a cache behavior, CloudFront
requires signed URLs or signed cookies for all requests that match the cache
behavior. The URLs or cookies must be signed with a private key whose
corresponding public key is in the key group. The signed URL or cookie contains
information about which public key CloudFront should use to verify the
signature. For more information, see Serving private content

in the Amazon CloudFront Developer Guide.
// Creates a key group that you can use with CloudFront signed URLs and signed // cookies // ( https : // docs . aws . amazon . com / AmazonCloudFront / latest / DeveloperGuide / PrivateContent . html ) . // To create a key group you must specify at least one public key for the key // group . After you create a key group you can reference it from one or more cache // behaviors . When you reference a key group in a cache behavior CloudFront // requires signed URLs or signed cookies for all requests that match the cache // behavior . The URLs or cookies must be signed with a private key whose // corresponding public key is in the key group . The signed URL or cookie contains // information about which public key CloudFront should use to verify the // signature . For more information see Serving private content // ( https : // docs . aws . amazon . com / AmazonCloudFront / latest / DeveloperGuide / PrivateContent . html ) // in the Amazon CloudFront Developer Guide .
func (c *Client) CreateKeyGroup(ctx context.Context, params *CreateKeyGroupInput, optFns ...func(*Options)) (*CreateKeyGroupOutput, error) {
	if params == nil {
		params = &CreateKeyGroupInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "CreateKeyGroup", params, optFns, addOperationCreateKeyGroupMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*CreateKeyGroupOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) CreateKeyGroup ( ctx context . Context , params * CreateKeyGroupInput , optFns ... func ( * Options ) ) ( * CreateKeyGroupOutput , error ) { if params == nil { params = & CreateKeyGroupInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationCreateKeyGroupMiddlewares ) if err != nil { return nil , err } out := result . ( * CreateKeyGroupOutput ) out . ResultMetadata = metadata return out , nil }
Creates a key group that you can use with CloudFront signed URLs and signed
cookies
.
Creates a key group that you can use with CloudFront signed URLs and signed cookies .