We recommend new projects start with resources from the AWS provider.
aws-native.cloudfront.OriginAccessControl
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::CloudFront::OriginAccessControl
Create OriginAccessControl Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OriginAccessControl(name: string, args: OriginAccessControlArgs, opts?: CustomResourceOptions);
@overload
def OriginAccessControl(resource_name: str,
args: OriginAccessControlArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OriginAccessControl(resource_name: str,
opts: Optional[ResourceOptions] = None,
origin_access_control_config: Optional[OriginAccessControlConfigArgs] = None)
func NewOriginAccessControl(ctx *Context, name string, args OriginAccessControlArgs, opts ...ResourceOption) (*OriginAccessControl, error)
public OriginAccessControl(string name, OriginAccessControlArgs args, CustomResourceOptions? opts = null)
public OriginAccessControl(String name, OriginAccessControlArgs args)
public OriginAccessControl(String name, OriginAccessControlArgs args, CustomResourceOptions options)
type: aws-native:cloudfront:OriginAccessControl
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args OriginAccessControlArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args OriginAccessControlArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args OriginAccessControlArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OriginAccessControlArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OriginAccessControlArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
OriginAccessControl Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The OriginAccessControl resource accepts the following input properties:
- Origin
Access Pulumi.Control Config Aws Native. Cloud Front. Inputs. Origin Access Control Config - The origin access control.
- Origin
Access OriginControl Config Access Control Config Args - The origin access control.
- origin
Access OriginControl Config Access Control Config - The origin access control.
- origin
Access OriginControl Config Access Control Config - The origin access control.
- origin_
access_ Origincontrol_ config Access Control Config Args - The origin access control.
- origin
Access Property MapControl Config - The origin access control.
Outputs
All input properties are implicitly available as output properties. Additionally, the OriginAccessControl resource produces the following output properties:
Supporting Types
OriginAccessControlConfig, OriginAccessControlConfigArgs
- Name string
- A name to identify the origin access control. You can specify up to 64 characters.
- Origin
Access stringControl Origin Type - The type of origin that this origin access control is for.
- Signing
Behavior string Specifies which requests CloudFront signs (adds authentication information to). Specify
always
for the most common use case. For more information, see origin access control advanced settings in the Amazon CloudFront Developer Guide .This field can have one of the following values:
always
– CloudFront signs all origin requests, overwriting theAuthorization
header from the viewer request if one exists.never
– CloudFront doesn't sign any origin requests. This value turns off origin access control for all origins in all distributions that use this origin access control.no-override
– If the viewer request doesn't contain theAuthorization
header, then CloudFront signs the origin request. If the viewer request contains theAuthorization
header, then CloudFront doesn't sign the origin request and instead passes along theAuthorization
header from the viewer request. WARNING: To pass along theAuthorization
header from the viewer request, you must add theAuthorization
header to a cache policy for all cache behaviors that use origins associated with this origin access control.
- Signing
Protocol string - The signing protocol of the origin access control, which determines how CloudFront signs (authenticates) requests. The only valid value is
sigv4
. - Description string
- A description of the origin access control.
- Name string
- A name to identify the origin access control. You can specify up to 64 characters.
- Origin
Access stringControl Origin Type - The type of origin that this origin access control is for.
- Signing
Behavior string Specifies which requests CloudFront signs (adds authentication information to). Specify
always
for the most common use case. For more information, see origin access control advanced settings in the Amazon CloudFront Developer Guide .This field can have one of the following values:
always
– CloudFront signs all origin requests, overwriting theAuthorization
header from the viewer request if one exists.never
– CloudFront doesn't sign any origin requests. This value turns off origin access control for all origins in all distributions that use this origin access control.no-override
– If the viewer request doesn't contain theAuthorization
header, then CloudFront signs the origin request. If the viewer request contains theAuthorization
header, then CloudFront doesn't sign the origin request and instead passes along theAuthorization
header from the viewer request. WARNING: To pass along theAuthorization
header from the viewer request, you must add theAuthorization
header to a cache policy for all cache behaviors that use origins associated with this origin access control.
- Signing
Protocol string - The signing protocol of the origin access control, which determines how CloudFront signs (authenticates) requests. The only valid value is
sigv4
. - Description string
- A description of the origin access control.
- name String
- A name to identify the origin access control. You can specify up to 64 characters.
- origin
Access StringControl Origin Type - The type of origin that this origin access control is for.
- signing
Behavior String Specifies which requests CloudFront signs (adds authentication information to). Specify
always
for the most common use case. For more information, see origin access control advanced settings in the Amazon CloudFront Developer Guide .This field can have one of the following values:
always
– CloudFront signs all origin requests, overwriting theAuthorization
header from the viewer request if one exists.never
– CloudFront doesn't sign any origin requests. This value turns off origin access control for all origins in all distributions that use this origin access control.no-override
– If the viewer request doesn't contain theAuthorization
header, then CloudFront signs the origin request. If the viewer request contains theAuthorization
header, then CloudFront doesn't sign the origin request and instead passes along theAuthorization
header from the viewer request. WARNING: To pass along theAuthorization
header from the viewer request, you must add theAuthorization
header to a cache policy for all cache behaviors that use origins associated with this origin access control.
- signing
Protocol String - The signing protocol of the origin access control, which determines how CloudFront signs (authenticates) requests. The only valid value is
sigv4
. - description String
- A description of the origin access control.
- name string
- A name to identify the origin access control. You can specify up to 64 characters.
- origin
Access stringControl Origin Type - The type of origin that this origin access control is for.
- signing
Behavior string Specifies which requests CloudFront signs (adds authentication information to). Specify
always
for the most common use case. For more information, see origin access control advanced settings in the Amazon CloudFront Developer Guide .This field can have one of the following values:
always
– CloudFront signs all origin requests, overwriting theAuthorization
header from the viewer request if one exists.never
– CloudFront doesn't sign any origin requests. This value turns off origin access control for all origins in all distributions that use this origin access control.no-override
– If the viewer request doesn't contain theAuthorization
header, then CloudFront signs the origin request. If the viewer request contains theAuthorization
header, then CloudFront doesn't sign the origin request and instead passes along theAuthorization
header from the viewer request. WARNING: To pass along theAuthorization
header from the viewer request, you must add theAuthorization
header to a cache policy for all cache behaviors that use origins associated with this origin access control.
- signing
Protocol string - The signing protocol of the origin access control, which determines how CloudFront signs (authenticates) requests. The only valid value is
sigv4
. - description string
- A description of the origin access control.
- name str
- A name to identify the origin access control. You can specify up to 64 characters.
- origin_
access_ strcontrol_ origin_ type - The type of origin that this origin access control is for.
- signing_
behavior str Specifies which requests CloudFront signs (adds authentication information to). Specify
always
for the most common use case. For more information, see origin access control advanced settings in the Amazon CloudFront Developer Guide .This field can have one of the following values:
always
– CloudFront signs all origin requests, overwriting theAuthorization
header from the viewer request if one exists.never
– CloudFront doesn't sign any origin requests. This value turns off origin access control for all origins in all distributions that use this origin access control.no-override
– If the viewer request doesn't contain theAuthorization
header, then CloudFront signs the origin request. If the viewer request contains theAuthorization
header, then CloudFront doesn't sign the origin request and instead passes along theAuthorization
header from the viewer request. WARNING: To pass along theAuthorization
header from the viewer request, you must add theAuthorization
header to a cache policy for all cache behaviors that use origins associated with this origin access control.
- signing_
protocol str - The signing protocol of the origin access control, which determines how CloudFront signs (authenticates) requests. The only valid value is
sigv4
. - description str
- A description of the origin access control.
- name String
- A name to identify the origin access control. You can specify up to 64 characters.
- origin
Access StringControl Origin Type - The type of origin that this origin access control is for.
- signing
Behavior String Specifies which requests CloudFront signs (adds authentication information to). Specify
always
for the most common use case. For more information, see origin access control advanced settings in the Amazon CloudFront Developer Guide .This field can have one of the following values:
always
– CloudFront signs all origin requests, overwriting theAuthorization
header from the viewer request if one exists.never
– CloudFront doesn't sign any origin requests. This value turns off origin access control for all origins in all distributions that use this origin access control.no-override
– If the viewer request doesn't contain theAuthorization
header, then CloudFront signs the origin request. If the viewer request contains theAuthorization
header, then CloudFront doesn't sign the origin request and instead passes along theAuthorization
header from the viewer request. WARNING: To pass along theAuthorization
header from the viewer request, you must add theAuthorization
header to a cache policy for all cache behaviors that use origins associated with this origin access control.
- signing
Protocol String - The signing protocol of the origin access control, which determines how CloudFront signs (authenticates) requests. The only valid value is
sigv4
. - description String
- A description of the origin access control.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.