com.pulumi.aws.ecrpublic.kotlin.RepositoryArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.ecrpublic.kotlin
import com.pulumi.aws.ecrpublic.RepositoryArgs.builder
import com.pulumi.aws.ecrpublic.kotlin.inputs.RepositoryCatalogDataArgs
import com.pulumi.aws.ecrpublic.kotlin.inputs.RepositoryCatalogDataArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Provides a Public Elastic Container Registry Repository.
* > **NOTE:** This resource can only be used in the `us-east-1` region.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* import * as std from "@pulumi/std";
* const foo = new aws.ecrpublic.Repository("foo", {
* repositoryName: "bar",
* catalogData: {
* aboutText: "About Text",
* architectures: ["ARM"],
* description: "Description",
* logoImageBlob: std.filebase64({
* input: png,
* }).then(invoke => invoke.result),
* operatingSystems: ["Linux"],
* usageText: "Usage Text",
* },
* tags: {
* env: "production",
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* import pulumi_std as std
* foo = aws.ecrpublic.Repository("foo",
* repository_name="bar",
* catalog_data={
* "about_text": "About Text",
* "architectures": ["ARM"],
* "description": "Description",
* "logo_image_blob": std.filebase64(input=png).result,
* "operating_systems": ["Linux"],
* "usage_text": "Usage Text",
* },
* tags={
* "env": "production",
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* using Std = Pulumi.Std;
* return await Deployment.RunAsync(() =>
* {
* var foo = new Aws.EcrPublic.Repository("foo", new()
* {
* RepositoryName = "bar",
* CatalogData = new Aws.EcrPublic.Inputs.RepositoryCatalogDataArgs
* {
* AboutText = "About Text",
* Architectures = new[]
* {
* "ARM",
* },
* Description = "Description",
* LogoImageBlob = Std.Filebase64.Invoke(new()
* {
* Input = png,
* }).Apply(invoke => invoke.Result),
* OperatingSystems = new[]
* {
* "Linux",
* },
* UsageText = "Usage Text",
* },
* Tags =
* {
* { "env", "production" },
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ecrpublic"
* "github.com/pulumi/pulumi-std/sdk/go/std"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* invokeFilebase64, err := std.Filebase64(ctx, &std.Filebase64Args{
* Input: png,
* }, nil)
* if err != nil {
* return err
* }
* _, err = ecrpublic.NewRepository(ctx, "foo", &ecrpublic.RepositoryArgs{
* RepositoryName: pulumi.String("bar"),
* CatalogData: &ecrpublic.RepositoryCatalogDataArgs{
* AboutText: pulumi.String("About Text"),
* Architectures: pulumi.StringArray{
* pulumi.String("ARM"),
* },
* Description: pulumi.String("Description"),
* LogoImageBlob: pulumi.String(invokeFilebase64.Result),
* OperatingSystems: pulumi.StringArray{
* pulumi.String("Linux"),
* },
* UsageText: pulumi.String("Usage Text"),
* },
* Tags: pulumi.StringMap{
* "env": pulumi.String("production"),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.ecrpublic.Repository;
* import com.pulumi.aws.ecrpublic.RepositoryArgs;
* import com.pulumi.aws.ecrpublic.inputs.RepositoryCatalogDataArgs;
* 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 foo = new Repository("foo", RepositoryArgs.builder()
* .repositoryName("bar")
* .catalogData(RepositoryCatalogDataArgs.builder()
* .aboutText("About Text")
* .architectures("ARM")
* .description("Description")
* .logoImageBlob(StdFunctions.filebase64(Filebase64Args.builder()
* .input(png)
* .build()).result())
* .operatingSystems("Linux")
* .usageText("Usage Text")
* .build())
* .tags(Map.of("env", "production"))
* .build());
* }
* }
* ```
* ```yaml
* resources:
* foo:
* type: aws:ecrpublic:Repository
* properties:
* repositoryName: bar
* catalogData:
* aboutText: About Text
* architectures:
* - ARM
* description: Description
* logoImageBlob:
* fn::invoke:
* Function: std:filebase64
* Arguments:
* input: ${png}
* Return: result
* operatingSystems:
* - Linux
* usageText: Usage Text
* tags:
* env: production
* ```
*
* ## Import
* Using `pulumi import`, import ECR Public Repositories using the `repository_name`. For example:
* ```sh
* $ pulumi import aws:ecrpublic/repository:Repository example example
* ```
* @property catalogData Catalog data configuration for the repository. See below for schema.
* @property forceDestroy
* @property repositoryName Name of the repository.
* @property tags Key-value mapping of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*/
public data class RepositoryArgs(
public val catalogData: Output? = null,
public val forceDestroy: Output? = null,
public val repositoryName: Output? = null,
public val tags: Output
© 2015 - 2024 Weber Informatics LLC | Privacy Policy