We recommend new projects start with resources from the AWS provider.
aws-native.codeartifact.getRepository
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
The resource schema to create a CodeArtifact repository.
Using getRepository
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 getRepository(args: GetRepositoryArgs, opts?: InvokeOptions): Promise<GetRepositoryResult>
function getRepositoryOutput(args: GetRepositoryOutputArgs, opts?: InvokeOptions): Output<GetRepositoryResult>def get_repository(arn: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetRepositoryResult
def get_repository_output(arn: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetRepositoryResult]func LookupRepository(ctx *Context, args *LookupRepositoryArgs, opts ...InvokeOption) (*LookupRepositoryResult, error)
func LookupRepositoryOutput(ctx *Context, args *LookupRepositoryOutputArgs, opts ...InvokeOption) LookupRepositoryResultOutput> Note: This function is named LookupRepository in the Go SDK.
public static class GetRepository 
{
    public static Task<GetRepositoryResult> InvokeAsync(GetRepositoryArgs args, InvokeOptions? opts = null)
    public static Output<GetRepositoryResult> Invoke(GetRepositoryInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRepositoryResult> getRepository(GetRepositoryArgs args, InvokeOptions options)
public static Output<GetRepositoryResult> getRepository(GetRepositoryArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:codeartifact:getRepository
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Arn string
- The ARN of the repository.
- Arn string
- The ARN of the repository.
- arn String
- The ARN of the repository.
- arn string
- The ARN of the repository.
- arn str
- The ARN of the repository.
- arn String
- The ARN of the repository.
getRepository Result
The following output properties are available:
- Arn string
- The ARN of the repository.
- Description string
- A text description of the repository.
- ExternalConnections List<string>
- A list of external connections associated with the repository.
- Name string
- The name of the repository. This is used for GetAtt
- PermissionsPolicy objectDocument 
- The access control resource policy on the provided repository. - Search the CloudFormation User Guide for - AWS::CodeArtifact::Repositoryfor more information about the expected schema for this property.
- 
List<Pulumi.Aws Native. Outputs. Tag> 
- An array of key-value pairs to apply to this resource.
- Upstreams List<string>
- A list of upstream repositories associated with the repository.
- Arn string
- The ARN of the repository.
- Description string
- A text description of the repository.
- ExternalConnections []string
- A list of external connections associated with the repository.
- Name string
- The name of the repository. This is used for GetAtt
- PermissionsPolicy interface{}Document 
- The access control resource policy on the provided repository. - Search the CloudFormation User Guide for - AWS::CodeArtifact::Repositoryfor more information about the expected schema for this property.
- Tag
- An array of key-value pairs to apply to this resource.
- Upstreams []string
- A list of upstream repositories associated with the repository.
- arn String
- The ARN of the repository.
- description String
- A text description of the repository.
- externalConnections List<String>
- A list of external connections associated with the repository.
- name String
- The name of the repository. This is used for GetAtt
- permissionsPolicy ObjectDocument 
- The access control resource policy on the provided repository. - Search the CloudFormation User Guide for - AWS::CodeArtifact::Repositoryfor more information about the expected schema for this property.
- List<Tag>
- An array of key-value pairs to apply to this resource.
- upstreams List<String>
- A list of upstream repositories associated with the repository.
- arn string
- The ARN of the repository.
- description string
- A text description of the repository.
- externalConnections string[]
- A list of external connections associated with the repository.
- name string
- The name of the repository. This is used for GetAtt
- permissionsPolicy anyDocument 
- The access control resource policy on the provided repository. - Search the CloudFormation User Guide for - AWS::CodeArtifact::Repositoryfor more information about the expected schema for this property.
- Tag[]
- An array of key-value pairs to apply to this resource.
- upstreams string[]
- A list of upstream repositories associated with the repository.
- arn str
- The ARN of the repository.
- description str
- A text description of the repository.
- external_connections Sequence[str]
- A list of external connections associated with the repository.
- name str
- The name of the repository. This is used for GetAtt
- permissions_policy_ Anydocument 
- The access control resource policy on the provided repository. - Search the CloudFormation User Guide for - AWS::CodeArtifact::Repositoryfor more information about the expected schema for this property.
- Sequence[root_Tag]
- An array of key-value pairs to apply to this resource.
- upstreams Sequence[str]
- A list of upstream repositories associated with the repository.
- arn String
- The ARN of the repository.
- description String
- A text description of the repository.
- externalConnections List<String>
- A list of external connections associated with the repository.
- name String
- The name of the repository. This is used for GetAtt
- permissionsPolicy AnyDocument 
- The access control resource policy on the provided repository. - Search the CloudFormation User Guide for - AWS::CodeArtifact::Repositoryfor more information about the expected schema for this property.
- List<Property Map>
- An array of key-value pairs to apply to this resource.
- upstreams List<String>
- A list of upstream repositories associated with the repository.
Supporting Types
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.