We recommend new projects start with resources from the AWS provider.
Viewing docs for AWS Cloud Control v1.81.0
published on Monday, Sep 28, 2026 by Pulumi
published on Monday, Sep 28, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
Viewing docs for AWS Cloud Control v1.81.0
published on Monday, Sep 28, 2026 by Pulumi
published on Monday, Sep 28, 2026 by Pulumi
Resource Type definition for AWS::SageMaker::CodeRepository
Using getCodeRepository
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getCodeRepository(args: GetCodeRepositoryArgs, opts?: InvokeOptions): Promise<GetCodeRepositoryResult>
function getCodeRepositoryOutput(args: GetCodeRepositoryOutputArgs, opts?: InvokeOutputOptions): Output<GetCodeRepositoryResult>def get_code_repository(code_repository_arn: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCodeRepositoryResult
def get_code_repository_output(code_repository_arn: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetCodeRepositoryResult]func LookupCodeRepository(ctx *Context, args *LookupCodeRepositoryArgs, opts ...InvokeOption) (*LookupCodeRepositoryResult, error)
func LookupCodeRepositoryOutput(ctx *Context, args *LookupCodeRepositoryOutputArgs, opts ...InvokeOption) LookupCodeRepositoryResultOutput> Note: This function is named LookupCodeRepository in the Go SDK.
public static class GetCodeRepository
{
public static Task<GetCodeRepositoryResult> InvokeAsync(GetCodeRepositoryArgs args, InvokeOptions? opts = null)
public static Output<GetCodeRepositoryResult> Invoke(GetCodeRepositoryInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetCodeRepositoryResult> Invoke(GetCodeRepositoryInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetCodeRepositoryResult> getCodeRepository(GetCodeRepositoryArgs args, InvokeOptions options)
public static Output<GetCodeRepositoryResult> getCodeRepository(GetCodeRepositoryArgs args, InvokeOptions options)
public static Output<GetCodeRepositoryResult> getCodeRepository(GetCodeRepositoryArgs args, InvokeOutputOptions options)
fn::invoke:
function: aws-native:sagemaker:getCodeRepository
arguments:
# arguments dictionarydata "aws-native_sagemaker_get_code_repository" "name" {
# arguments
}The following arguments are supported:
- Code
Repository stringArn - The Amazon Resource Name (ARN) of the code repository.
- Code
Repository stringArn - The Amazon Resource Name (ARN) of the code repository.
- code_
repository_ stringarn - The Amazon Resource Name (ARN) of the code repository.
- code
Repository StringArn - The Amazon Resource Name (ARN) of the code repository.
- code
Repository stringArn - The Amazon Resource Name (ARN) of the code repository.
- code_
repository_ strarn - The Amazon Resource Name (ARN) of the code repository.
- code
Repository StringArn - The Amazon Resource Name (ARN) of the code repository.
getCodeRepository Result
The following output properties are available:
- Code
Repository stringArn - The Amazon Resource Name (ARN) of the code repository.
- Git
Config Pulumi.Aws Native. Sage Maker. Outputs. 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.
-
List<Pulumi.
Aws Native. Outputs. Tag> - An array of key-value pairs.
- Code
Repository stringArn - The Amazon Resource Name (ARN) of the code repository.
- 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.
- Tag
- An array of key-value pairs.
- code_
repository_ stringarn - The Amazon Resource Name (ARN) of the code repository.
- 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.
- list(object)
- An array of key-value pairs.
- code
Repository StringArn - The Amazon Resource Name (ARN) of the code repository.
- 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.
- List<Tag>
- An array of key-value pairs.
- code
Repository stringArn - The Amazon Resource Name (ARN) of the code repository.
- 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.
- Tag[]
- An array of key-value pairs.
- code_
repository_ strarn - The Amazon Resource Name (ARN) of the code repository.
- 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.
- Sequence[root_Tag]
- An array of key-value pairs.
- code
Repository StringArn - The Amazon Resource Name (ARN) of the code repository.
- 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.
- List<Property Map>
- An array of key-value pairs.
Supporting Types
CodeRepositoryGitConfig
- 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
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
Viewing docs for AWS Cloud Control v1.81.0
published on Monday, Sep 28, 2026 by Pulumi
published on Monday, Sep 28, 2026 by Pulumi