# OriginAccessControlBaseProps

Common properties for creating a Origin Access Control resource.

- Source: [`aws-cloudfront/lib/origin-access-control.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/aws-cdk-lib/aws-cloudfront/lib/origin-access-control.ts#L23)
- Type last changed: v2.156.0 · 6 Sep 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';

declare const signing: cloudfront.Signing;
const originAccessControlBaseProps: cloudfront.OriginAccessControlBaseProps = {
  description: 'description',
  originAccessControlName: 'originAccessControlName',
  signing: signing,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cloudfront as cloudfront

# signing: cloudfront.Signing

origin_access_control_base_props = cloudfront.OriginAccessControlBaseProps(
    description="description",
    origin_access_control_name="originAccessControlName",
    signing=signing
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudfront.*;

Signing signing;

OriginAccessControlBaseProps originAccessControlBaseProps = OriginAccessControlBaseProps.builder()
        .description("description")
        .originAccessControlName("originAccessControlName")
        .signing(signing)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;

Signing signing;

var originAccessControlBaseProps = new OriginAccessControlBaseProps {
    Description = "description",
    OriginAccessControlName = "originAccessControlName",
    Signing = signing
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var signing Signing

originAccessControlBaseProps := &OriginAccessControlBaseProps{
	Description: jsii.String("description"),
	OriginAccessControlName: jsii.String("originAccessControlName"),
	Signing: signing,
}
```

## Properties

- `description`: string — A description of the origin access control.

  **Default:** no description

- `originAccessControlName`: string — A name to identify the origin access control, with a maximum length of 64 characters.

  **Default:** a generated name

- `signing`: [Signing](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront.Signing.html) = SIGV4_ALWAYS — Specifies which requests CloudFront signs and the signing protocol.
