// Creates a new origin access identity. If you're using Amazon S3 for your origin,
// you can use an origin access identity to require users to access your content
// using a CloudFront URL instead of the Amazon S3 URL. For more information about
// how to use origin access identities, see Serving Private Content through
// CloudFront
// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html)
// in the Amazon CloudFront Developer Guide.
Creates a new origin access identity. If you're using Amazon S3 for your origin,
you can use an origin access identity to require users to access your content
using a CloudFront URL instead of the Amazon S3 URL. For more information about
how to use origin access identities, see Serving Private Content through
CloudFront

in the Amazon CloudFront Developer Guide.
// Creates a new origin access identity . If you ' re using Amazon S3 for your origin // you can use an origin access identity to require users to access your content // using a CloudFront URL instead of the Amazon S3 URL . For more information about // how to use origin access identities see Serving Private Content through // CloudFront // ( https : // docs . aws . amazon . com / AmazonCloudFront / latest / DeveloperGuide / PrivateContent . html ) // in the Amazon CloudFront Developer Guide .
func (c *Client) CreateCloudFrontOriginAccessIdentity(ctx context.Context, params *CreateCloudFrontOriginAccessIdentityInput, optFns ...func(*Options)) (*CreateCloudFrontOriginAccessIdentityOutput, error) {
	if params == nil {
		params = &CreateCloudFrontOriginAccessIdentityInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "CreateCloudFrontOriginAccessIdentity", params, optFns, addOperationCreateCloudFrontOriginAccessIdentityMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*CreateCloudFrontOriginAccessIdentityOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) CreateCloudFrontOriginAccessIdentity ( ctx context . Context , params * CreateCloudFrontOriginAccessIdentityInput , optFns ... func ( * Options ) ) ( * CreateCloudFrontOriginAccessIdentityOutput , error ) { if params == nil { params = & CreateCloudFrontOriginAccessIdentityInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationCreateCloudFrontOriginAccessIdentityMiddlewares ) if err != nil { return nil , err } out := result . ( * CreateCloudFrontOriginAccessIdentityOutput ) out . ResultMetadata = metadata return out , nil }
Creates a new origin access identity.
Creates a new origin access identity .