We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 28, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 28, 2026 by Pulumi
Resource Type definition for AWS::SageMaker::CodeRepository
Create CodeRepository Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CodeRepository(name: string, args: CodeRepositoryArgs, opts?: CustomResourceOptions);@overload
def CodeRepository(resource_name: str,
args: CodeRepositoryArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CodeRepository(resource_name: str,
opts: Optional[ResourceOptions] = None,
git_config: Optional[CodeRepositoryGitConfigArgs] = None,
code_repository_name: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)func NewCodeRepository(ctx *Context, name string, args CodeRepositoryArgs, opts ...ResourceOption) (*CodeRepository, error)public CodeRepository(string name, CodeRepositoryArgs args, CustomResourceOptions? opts = null)
public CodeRepository(String name, CodeRepositoryArgs args)
public CodeRepository(String name, CodeRepositoryArgs args, CustomResourceOptions options)
type: aws-native:sagemaker:CodeRepository
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_sagemaker_code_repository" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args CodeRepositoryArgs
- 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 CodeRepositoryArgs
- 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 CodeRepositoryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CodeRepositoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CodeRepositoryArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CodeRepository 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 CodeRepository resource accepts the following input properties:
- Git
Config Pulumi.Aws Native. Sage Maker. Inputs. Code Repository Git Config - Configuration details for the Git repository, including the URL where it is located and the ARN of the AWS Secrets Manager secret that contains the credentials used to access the repository.
- Code
Repository stringName - The name of the Git repository.
-
List<Pulumi.
Aws Native. Inputs. Tag> - An array of key-value pairs.
- Git
Config CodeRepository Git Config Args - Configuration details for the Git repository, including the URL where it is located and the ARN of the AWS Secrets Manager secret that contains the credentials used to access the repository.
- Code
Repository stringName - The name of the Git repository.
-
Tag
Args - An array of key-value pairs.
- git_
config object - Configuration details for the Git repository, including the URL where it is located and the ARN of the AWS Secrets Manager secret that contains the credentials used to access the repository.
- code_
repository_ stringname - The name of the Git repository.
- list(object)
- An array of key-value pairs.
- git
Config CodeRepository Git Config - Configuration details for the Git repository, including the URL where it is located and the ARN of the AWS Secrets Manager secret that contains the credentials used to access the repository.
- code
Repository StringName - The name of the Git repository.
- List<Tag>
- An array of key-value pairs.
- git
Config CodeRepository Git Config - Configuration details for the Git repository, including the URL where it is located and the ARN of the AWS Secrets Manager secret that contains the credentials used to access the repository.
- code
Repository stringName - The name of the Git repository.
- Tag[]
- An array of key-value pairs.
- git_
config CodeRepository Git Config Args - Configuration details for the Git repository, including the URL where it is located and the ARN of the AWS Secrets Manager secret that contains the credentials used to access the repository.
- code_
repository_ strname - The name of the Git repository.
-
Sequence[Tag
Args] - An array of key-value pairs.
- git
Config Property Map - Configuration details for the Git repository, including the URL where it is located and the ARN of the AWS Secrets Manager secret that contains the credentials used to access the repository.
- code
Repository StringName - The name of the Git repository.
- List<Property Map>
- An array of key-value pairs.
Outputs
All input properties are implicitly available as output properties. Additionally, the CodeRepository resource produces the following output properties:
- Code
Repository stringArn - The Amazon Resource Name (ARN) of the code repository.
- Id string
- The provider-assigned unique ID for this managed resource.
- Code
Repository stringArn - The Amazon Resource Name (ARN) of the code repository.
- Id string
- The provider-assigned unique ID for this managed resource.
- code_
repository_ stringarn - The Amazon Resource Name (ARN) of the code repository.
- id string
- The provider-assigned unique ID for this managed resource.
- code
Repository StringArn - The Amazon Resource Name (ARN) of the code repository.
- id String
- The provider-assigned unique ID for this managed resource.
- code
Repository stringArn - The Amazon Resource Name (ARN) of the code repository.
- id string
- The provider-assigned unique ID for this managed resource.
- code_
repository_ strarn - The Amazon Resource Name (ARN) of the code repository.
- id str
- The provider-assigned unique ID for this managed resource.
- code
Repository StringArn - The Amazon Resource Name (ARN) of the code repository.
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
CodeRepositoryGitConfig, CodeRepositoryGitConfigArgs
- Repository
Url string - The URL where the Git repository is located.
- Branch string
- The default branch for the Git repository.
- Secret
Arn string - The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials used to access the git repository.
- Repository
Url string - The URL where the Git repository is located.
- Branch string
- The default branch for the Git repository.
- Secret
Arn string - The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials used to access the git repository.
- repository_
url string - The URL where the Git repository is located.
- branch string
- The default branch for the Git repository.
- secret_
arn string - The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials used to access the git repository.
- repository
Url String - The URL where the Git repository is located.
- branch String
- The default branch for the Git repository.
- secret
Arn String - The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials used to access the git repository.
- repository
Url string - The URL where the Git repository is located.
- branch string
- The default branch for the Git repository.
- secret
Arn string - The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials used to access the git repository.
- repository_
url str - The URL where the Git repository is located.
- branch str
- The default branch for the Git repository.
- secret_
arn str - The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials used to access the git repository.
- repository
Url String - The URL where the Git repository is located.
- branch String
- The default branch for the Git repository.
- secret
Arn String - The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials used to access the git repository.
Tag, TagArgs
A set of tags to apply to the resource.Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 28, 2026 by Pulumi