Domain
Provides a CodeArtifact Domain Resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.codeartifact.Domain("example", {domain: "example"});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.codeartifact.Domain("example", domain="example")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.CodeArtifact.Domain("example", new()
{
DomainName = "example",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/codeartifact"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := codeartifact.NewDomain(ctx, "example", &codeartifact.DomainArgs{
Domain: pulumi.String("example"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.codeartifact.Domain;
import com.pulumi.aws.codeartifact.DomainArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Domain("example", DomainArgs.builder()
.domain("example")
.build());
}
}
Content copied to clipboard
resources:
example:
type: aws:codeartifact:Domain
properties:
domain: example
Content copied to clipboard
Import
Using pulumi import
, import CodeArtifact Domain using the CodeArtifact Domain arn. For example:
$ pulumi import aws:codeartifact/domain:Domain example arn:aws:codeartifact:us-west-2:012345678912:domain/tf-acc-test-8593714120730241305
Content copied to clipboard
Properties
Link copied to clipboard
The total size of all assets in the domain.
Link copied to clipboard
A timestamp that represents the date and time the domain was created in RFC3339 format.
Link copied to clipboard
Link copied to clipboard
The encryption key for the domain. This is used to encrypt content stored in a domain. The KMS Key Amazon Resource Name (ARN). The default aws/codeartifact AWS KMS master key is used if this element is absent.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The number of repositories in the domain.
Link copied to clipboard
The ARN of the Amazon S3 bucket that is used to store package assets in the domain.