1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. codestarconnections
  6. SyncConfiguration

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi

    Schema for AWS::CodeStarConnections::SyncConfiguration resource which is used to enables an AWS resource to be synchronized from a source-provider.

    Create SyncConfiguration Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SyncConfiguration(name: string, args: SyncConfigurationArgs, opts?: CustomResourceOptions);
    @overload
    def SyncConfiguration(resource_name: str,
                          args: SyncConfigurationArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def SyncConfiguration(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          branch: Optional[str] = None,
                          config_file: Optional[str] = None,
                          repository_link_id: Optional[str] = None,
                          resource_name_: Optional[str] = None,
                          role_arn: Optional[str] = None,
                          sync_type: Optional[str] = None,
                          publish_deployment_status: Optional[SyncConfigurationPublishDeploymentStatus] = None,
                          trigger_resource_update_on: Optional[SyncConfigurationTriggerResourceUpdateOn] = None)
    func NewSyncConfiguration(ctx *Context, name string, args SyncConfigurationArgs, opts ...ResourceOption) (*SyncConfiguration, error)
    public SyncConfiguration(string name, SyncConfigurationArgs args, CustomResourceOptions? opts = null)
    public SyncConfiguration(String name, SyncConfigurationArgs args)
    public SyncConfiguration(String name, SyncConfigurationArgs args, CustomResourceOptions options)
    
    type: aws-native:codestarconnections:SyncConfiguration
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_codestarconnections_sync_configuration" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args SyncConfigurationArgs
    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 SyncConfigurationArgs
    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 SyncConfigurationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SyncConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SyncConfigurationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    SyncConfiguration Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SyncConfiguration resource accepts the following input properties:

    Branch string
    The name of the branch of the repository from which resources are to be synchronized,
    ConfigFile string
    The source provider repository path of the sync configuration file of the respective SyncType.
    RepositoryLinkId string
    A UUID that uniquely identifies the RepositoryLink that the SyncConfig is associated with.
    ResourceName string
    The name of the resource that is being synchronized to the repository.
    RoleArn string
    The IAM Role that allows AWS to update CloudFormation stacks based on content in the specified repository.
    SyncType string
    The type of resource synchronization service that is to be configured, for example, CFN_STACK_SYNC.
    PublishDeploymentStatus Pulumi.AwsNative.CodeStarConnections.SyncConfigurationPublishDeploymentStatus
    Whether to enable or disable publishing of deployment status to source providers.
    TriggerResourceUpdateOn Pulumi.AwsNative.CodeStarConnections.SyncConfigurationTriggerResourceUpdateOn
    When to trigger Git sync to begin the stack update.
    Branch string
    The name of the branch of the repository from which resources are to be synchronized,
    ConfigFile string
    The source provider repository path of the sync configuration file of the respective SyncType.
    RepositoryLinkId string
    A UUID that uniquely identifies the RepositoryLink that the SyncConfig is associated with.
    ResourceName string
    The name of the resource that is being synchronized to the repository.
    RoleArn string
    The IAM Role that allows AWS to update CloudFormation stacks based on content in the specified repository.
    SyncType string
    The type of resource synchronization service that is to be configured, for example, CFN_STACK_SYNC.
    PublishDeploymentStatus SyncConfigurationPublishDeploymentStatus
    Whether to enable or disable publishing of deployment status to source providers.
    TriggerResourceUpdateOn SyncConfigurationTriggerResourceUpdateOn
    When to trigger Git sync to begin the stack update.
    branch string
    The name of the branch of the repository from which resources are to be synchronized,
    config_file string
    The source provider repository path of the sync configuration file of the respective SyncType.
    repository_link_id string
    A UUID that uniquely identifies the RepositoryLink that the SyncConfig is associated with.
    resource_name string
    The name of the resource that is being synchronized to the repository.
    role_arn string
    The IAM Role that allows AWS to update CloudFormation stacks based on content in the specified repository.
    sync_type string
    The type of resource synchronization service that is to be configured, for example, CFN_STACK_SYNC.
    publish_deployment_status "ENABLED" | "DISABLED"
    Whether to enable or disable publishing of deployment status to source providers.
    trigger_resource_update_on "ANY_CHANGE" | "FILE_CHANGE"
    When to trigger Git sync to begin the stack update.
    branch String
    The name of the branch of the repository from which resources are to be synchronized,
    configFile String
    The source provider repository path of the sync configuration file of the respective SyncType.
    repositoryLinkId String
    A UUID that uniquely identifies the RepositoryLink that the SyncConfig is associated with.
    resourceName String
    The name of the resource that is being synchronized to the repository.
    roleArn String
    The IAM Role that allows AWS to update CloudFormation stacks based on content in the specified repository.
    syncType String
    The type of resource synchronization service that is to be configured, for example, CFN_STACK_SYNC.
    publishDeploymentStatus SyncConfigurationPublishDeploymentStatus
    Whether to enable or disable publishing of deployment status to source providers.
    triggerResourceUpdateOn SyncConfigurationTriggerResourceUpdateOn
    When to trigger Git sync to begin the stack update.
    branch string
    The name of the branch of the repository from which resources are to be synchronized,
    configFile string
    The source provider repository path of the sync configuration file of the respective SyncType.
    repositoryLinkId string
    A UUID that uniquely identifies the RepositoryLink that the SyncConfig is associated with.
    resourceName string
    The name of the resource that is being synchronized to the repository.
    roleArn string
    The IAM Role that allows AWS to update CloudFormation stacks based on content in the specified repository.
    syncType string
    The type of resource synchronization service that is to be configured, for example, CFN_STACK_SYNC.
    publishDeploymentStatus SyncConfigurationPublishDeploymentStatus
    Whether to enable or disable publishing of deployment status to source providers.
    triggerResourceUpdateOn SyncConfigurationTriggerResourceUpdateOn
    When to trigger Git sync to begin the stack update.
    branch str
    The name of the branch of the repository from which resources are to be synchronized,
    config_file str
    The source provider repository path of the sync configuration file of the respective SyncType.
    repository_link_id str
    A UUID that uniquely identifies the RepositoryLink that the SyncConfig is associated with.
    resource_name str
    The name of the resource that is being synchronized to the repository.
    role_arn str
    The IAM Role that allows AWS to update CloudFormation stacks based on content in the specified repository.
    sync_type str
    The type of resource synchronization service that is to be configured, for example, CFN_STACK_SYNC.
    publish_deployment_status SyncConfigurationPublishDeploymentStatus
    Whether to enable or disable publishing of deployment status to source providers.
    trigger_resource_update_on SyncConfigurationTriggerResourceUpdateOn
    When to trigger Git sync to begin the stack update.
    branch String
    The name of the branch of the repository from which resources are to be synchronized,
    configFile String
    The source provider repository path of the sync configuration file of the respective SyncType.
    repositoryLinkId String
    A UUID that uniquely identifies the RepositoryLink that the SyncConfig is associated with.
    resourceName String
    The name of the resource that is being synchronized to the repository.
    roleArn String
    The IAM Role that allows AWS to update CloudFormation stacks based on content in the specified repository.
    syncType String
    The type of resource synchronization service that is to be configured, for example, CFN_STACK_SYNC.
    publishDeploymentStatus "ENABLED" | "DISABLED"
    Whether to enable or disable publishing of deployment status to source providers.
    triggerResourceUpdateOn "ANY_CHANGE" | "FILE_CHANGE"
    When to trigger Git sync to begin the stack update.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SyncConfiguration resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    OwnerId string
    the ID of the entity that owns the repository.
    ProviderType Pulumi.AwsNative.CodeStarConnections.SyncConfigurationProviderType
    The name of the external provider where your third-party code repository is configured.
    RepositoryName string
    The name of the repository that is being synced to.
    Id string
    The provider-assigned unique ID for this managed resource.
    OwnerId string
    the ID of the entity that owns the repository.
    ProviderType SyncConfigurationProviderType
    The name of the external provider where your third-party code repository is configured.
    RepositoryName string
    The name of the repository that is being synced to.
    id string
    The provider-assigned unique ID for this managed resource.
    owner_id string
    the ID of the entity that owns the repository.
    provider_type "GitHub" | "Bitbucket" | "GitHubEnterprise" | "GitLab" | "GitLabSelfManaged"
    The name of the external provider where your third-party code repository is configured.
    repository_name string
    The name of the repository that is being synced to.
    id String
    The provider-assigned unique ID for this managed resource.
    ownerId String
    the ID of the entity that owns the repository.
    providerType SyncConfigurationProviderType
    The name of the external provider where your third-party code repository is configured.
    repositoryName String
    The name of the repository that is being synced to.
    id string
    The provider-assigned unique ID for this managed resource.
    ownerId string
    the ID of the entity that owns the repository.
    providerType SyncConfigurationProviderType
    The name of the external provider where your third-party code repository is configured.
    repositoryName string
    The name of the repository that is being synced to.
    id str
    The provider-assigned unique ID for this managed resource.
    owner_id str
    the ID of the entity that owns the repository.
    provider_type SyncConfigurationProviderType
    The name of the external provider where your third-party code repository is configured.
    repository_name str
    The name of the repository that is being synced to.
    id String
    The provider-assigned unique ID for this managed resource.
    ownerId String
    the ID of the entity that owns the repository.
    providerType "GitHub" | "Bitbucket" | "GitHubEnterprise" | "GitLab" | "GitLabSelfManaged"
    The name of the external provider where your third-party code repository is configured.
    repositoryName String
    The name of the repository that is being synced to.

    Look up Existing SyncConfiguration Resource

    Get an existing SyncConfiguration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): SyncConfiguration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> SyncConfiguration
    func GetSyncConfiguration(ctx *Context, name string, id IDInput, state *SyncConfigurationState, opts ...ResourceOption) (*SyncConfiguration, error)
    public static SyncConfiguration Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static SyncConfiguration get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingSyncConfiguration:    type: aws-native:codestarconnections:SyncConfiguration    get:      id: ${id}
    import {
      to = aws-native_codestarconnections_sync_configuration.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    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 resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state SyncConfigurationState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Supporting Types

    SyncConfigurationProviderType

    The name of the external provider where your third-party code repository is configured.

    NameValue
    GitHubGitHub
    BitbucketBitbucket
    GitHubEnterpriseGitHubEnterprise
    GitLabGitLab
    GitLabSelfManagedGitLabSelfManaged
    NameValue
    SyncConfigurationProviderTypeGitHubGitHub
    SyncConfigurationProviderTypeBitbucketBitbucket
    SyncConfigurationProviderTypeGitHubEnterpriseGitHubEnterprise
    SyncConfigurationProviderTypeGitLabGitLab
    SyncConfigurationProviderTypeGitLabSelfManagedGitLabSelfManaged
    Value
    GitHub
    Bitbucket
    GitHubEnterprise
    GitLab
    GitLabSelfManaged
    NameValue
    GitHubGitHub
    BitbucketBitbucket
    GitHubEnterpriseGitHubEnterprise
    GitLabGitLab
    GitLabSelfManagedGitLabSelfManaged
    NameValue
    GitHubGitHub
    BitbucketBitbucket
    GitHubEnterpriseGitHubEnterprise
    GitLabGitLab
    GitLabSelfManagedGitLabSelfManaged
    NameValue
    GIT_HUBGitHub
    BITBUCKETBitbucket
    GIT_HUB_ENTERPRISEGitHubEnterprise
    GIT_LABGitLab
    GIT_LAB_SELF_MANAGEDGitLabSelfManaged
    Value
    GitHub
    Bitbucket
    GitHubEnterprise
    GitLab
    GitLabSelfManaged

    SyncConfigurationPublishDeploymentStatus

    Whether to enable or disable publishing of deployment status to source providers.

    NameValue
    EnabledENABLED
    DisabledDISABLED
    NameValue
    SyncConfigurationPublishDeploymentStatusEnabledENABLED
    SyncConfigurationPublishDeploymentStatusDisabledDISABLED
    Value
    ENABLED
    DISABLED
    NameValue
    EnabledENABLED
    DisabledDISABLED
    NameValue
    EnabledENABLED
    DisabledDISABLED
    NameValue
    ENABLEDENABLED
    DISABLEDDISABLED
    Value
    ENABLED
    DISABLED

    SyncConfigurationTriggerResourceUpdateOn

    When to trigger Git sync to begin the stack update.

    NameValue
    AnyChangeANY_CHANGE
    FileChangeFILE_CHANGE
    NameValue
    SyncConfigurationTriggerResourceUpdateOnAnyChangeANY_CHANGE
    SyncConfigurationTriggerResourceUpdateOnFileChangeFILE_CHANGE
    Value
    ANY_CHANGE
    FILE_CHANGE
    NameValue
    AnyChangeANY_CHANGE
    FileChangeFILE_CHANGE
    NameValue
    AnyChangeANY_CHANGE
    FileChangeFILE_CHANGE
    NameValue
    ANY_CHANGEANY_CHANGE
    FILE_CHANGEFILE_CHANGE
    Value
    ANY_CHANGE
    FILE_CHANGE

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial