> ## Documentation Index
> Fetch the complete documentation index at: https://infisical.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create AWS Secrets Manager PKI Sync

> Create a AWS Secrets Manager PKI Sync for the specified project.



## OpenAPI

````yaml POST /api/v1/cert-manager/syncs/aws-secrets-manager
openapi: 3.0.3
info:
  title: Infisical API
  description: List of all available APIs that can be consumed
  version: 0.0.1
servers:
  - url: https://us.infisical.com
    description: Production server (US)
  - url: https://eu.infisical.com
    description: Production server (EU)
  - url: http://localhost:8080
    description: Local server
security: []
paths:
  /api/v1/cert-manager/syncs/aws-secrets-manager:
    post:
      tags:
        - PKI Syncs
      description: Create a AWS Secrets Manager PKI Sync for the specified project.
      operationId: createAwsSecretsManagerPkiSync
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 256
                description:
                  type: string
                isAutoSyncEnabled:
                  type: boolean
                  default: true
                destinationConfig:
                  type: object
                  properties:
                    region:
                      type: string
                      enum:
                        - us-east-1
                        - us-east-2
                        - us-west-1
                        - us-west-2
                        - us-gov-east-1
                        - us-gov-west-1
                        - af-south-1
                        - ap-east-1
                        - ap-south-1
                        - ap-south-2
                        - ap-northeast-1
                        - ap-northeast-2
                        - ap-northeast-3
                        - ap-southeast-1
                        - ap-southeast-2
                        - ap-southeast-3
                        - ap-southeast-4
                        - ca-central-1
                        - eu-central-1
                        - eu-central-2
                        - eu-west-1
                        - eu-west-2
                        - eu-west-3
                        - eu-south-1
                        - eu-south-2
                        - eu-north-1
                        - me-south-1
                        - me-central-1
                        - sa-east-1
                    keyId:
                      type: string
                  required:
                    - region
                  additionalProperties: false
                syncOptions:
                  type: object
                  properties:
                    canImportCertificates:
                      type: boolean
                      default: false
                    canRemoveCertificates:
                      type: boolean
                      default: true
                    includeRootCa:
                      type: boolean
                      default: false
                    preserveSecretOnRenewal:
                      type: boolean
                      default: true
                    updateExistingCertificates:
                      type: boolean
                      default: true
                    certificateNameSchema:
                      type: string
                    fieldMappings:
                      type: object
                      properties:
                        certificate:
                          type: string
                          minLength: 1
                          default: certificate
                        privateKey:
                          type: string
                          minLength: 1
                          default: private_key
                        certificateChain:
                          type: string
                          minLength: 1
                          default: certificate_chain
                        caCertificate:
                          type: string
                          minLength: 1
                          default: ca_certificate
                      additionalProperties: false
                      default:
                        certificate: certificate
                        privateKey: private_key
                        certificateChain: certificate_chain
                        caCertificate: ca_certificate
                  additionalProperties: false
                  default: {}
                subscriberId:
                  type: string
                  nullable: true
                connectionId:
                  type: string
                applicationId:
                  type: string
                  format: uuid
                certificateIds:
                  type: array
                  items:
                    type: string
                    format: uuid
              required:
                - name
                - destinationConfig
                - connectionId
              additionalProperties: false
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  name:
                    type: string
                    maxLength: 256
                  description:
                    type: string
                    nullable: true
                  destination:
                    type: string
                    enum:
                      - aws-secrets-manager
                  isAutoSyncEnabled:
                    type: boolean
                  destinationConfig:
                    type: object
                    properties:
                      region:
                        type: string
                        enum:
                          - us-east-1
                          - us-east-2
                          - us-west-1
                          - us-west-2
                          - us-gov-east-1
                          - us-gov-west-1
                          - af-south-1
                          - ap-east-1
                          - ap-south-1
                          - ap-south-2
                          - ap-northeast-1
                          - ap-northeast-2
                          - ap-northeast-3
                          - ap-southeast-1
                          - ap-southeast-2
                          - ap-southeast-3
                          - ap-southeast-4
                          - ca-central-1
                          - eu-central-1
                          - eu-central-2
                          - eu-west-1
                          - eu-west-2
                          - eu-west-3
                          - eu-south-1
                          - eu-south-2
                          - eu-north-1
                          - me-south-1
                          - me-central-1
                          - sa-east-1
                      keyId:
                        type: string
                    required:
                      - region
                    additionalProperties: false
                  syncOptions:
                    type: object
                    properties:
                      canImportCertificates:
                        type: boolean
                        default: false
                      canRemoveCertificates:
                        type: boolean
                        default: true
                      includeRootCa:
                        type: boolean
                        default: false
                      preserveSecretOnRenewal:
                        type: boolean
                        default: true
                      updateExistingCertificates:
                        type: boolean
                        default: true
                      certificateNameSchema:
                        type: string
                      fieldMappings:
                        type: object
                        properties:
                          certificate:
                            type: string
                            minLength: 1
                            default: certificate
                          privateKey:
                            type: string
                            minLength: 1
                            default: private_key
                          certificateChain:
                            type: string
                            minLength: 1
                            default: certificate_chain
                          caCertificate:
                            type: string
                            minLength: 1
                            default: ca_certificate
                        additionalProperties: false
                        default:
                          certificate: certificate
                          privateKey: private_key
                          certificateChain: certificate_chain
                          caCertificate: ca_certificate
                    additionalProperties: false
                  subscriberId:
                    type: string
                    format: uuid
                    nullable: true
                  connectionId:
                    type: string
                    format: uuid
                  createdAt:
                    type: string
                    format: date-time
                  updatedAt:
                    type: string
                    format: date-time
                  syncStatus:
                    type: string
                    nullable: true
                  lastSyncedAt:
                    type: string
                    format: date-time
                    nullable: true
                required:
                  - id
                  - name
                  - destination
                  - isAutoSyncEnabled
                  - destinationConfig
                  - syncOptions
                  - connectionId
                  - createdAt
                  - updatedAt
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 400
                  message:
                    type: string
                  error:
                    type: string
                  details: {}
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 401
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 403
                  message:
                    type: string
                  details: {}
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 404
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '422':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 422
                  message: {}
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - error
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 500
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false

````