1. Packages
  2. Azure Justrun
  3. API Docs
  4. Containerapp
azure-justrun v0.2.3 published on Tuesday, Aug 2, 2022 by Pulumi

azure-justrun.Containerapp

Explore with Pulumi AI

This represents a container app component resource

Create Containerapp Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Containerapp(name: string, args?: ContainerappArgs, opts?: ComponentResourceOptions);
@overload
def Containerapp(resource_name: str,
                 args: Optional[ContainerappArgs] = None,
                 opts: Optional[ResourceOptions] = None)

@overload
def Containerapp(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 docker_image_name: Optional[str] = None,
                 image_directory: Optional[str] = None,
                 name_prefix: Optional[str] = None,
                 registry_name: Optional[str] = None,
                 resource_group_name: Optional[str] = None,
                 storage_account_name: Optional[str] = None,
                 version: Optional[str] = None)
func NewContainerapp(ctx *Context, name string, args *ContainerappArgs, opts ...ResourceOption) (*Containerapp, error)
public Containerapp(string name, ContainerappArgs? args = null, ComponentResourceOptions? opts = null)
public Containerapp(String name, ContainerappArgs args)
public Containerapp(String name, ContainerappArgs args, ComponentResourceOptions options)
type: azure-justrun:containerapp
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args ContainerappArgs
The arguments to resource properties.
opts ComponentResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args ContainerappArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args ContainerappArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args ContainerappArgs
The arguments to resource properties.
opts ComponentResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ContainerappArgs
The arguments to resource properties.
options ComponentResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var containerappResource = new AzureJustrun.Containerapp("containerappResource", new()
{
    DockerImageName = "string",
    ImageDirectory = "string",
    NamePrefix = "string",
    RegistryName = "string",
    ResourceGroupName = "string",
    StorageAccountName = "string",
    Version = "string",
});
Copy
example, err := azurejustrun.Newcontainerapp(ctx, "containerappResource", &azurejustrun.containerappArgs{
	DockerImageName:    pulumi.String("string"),
	ImageDirectory:     pulumi.String("string"),
	NamePrefix:         pulumi.String("string"),
	RegistryName:       pulumi.String("string"),
	ResourceGroupName:  pulumi.String("string"),
	StorageAccountName: pulumi.String("string"),
	Version:            pulumi.String("string"),
})
Copy
var containerappResource = new Containerapp("containerappResource", ContainerappArgs.builder()
    .dockerImageName("string")
    .imageDirectory("string")
    .namePrefix("string")
    .registryName("string")
    .resourceGroupName("string")
    .storageAccountName("string")
    .version("string")
    .build());
Copy
containerapp_resource = azure_justrun.Containerapp("containerappResource",
    docker_image_name="string",
    image_directory="string",
    name_prefix="string",
    registry_name="string",
    resource_group_name="string",
    storage_account_name="string",
    version="string")
Copy
const containerappResource = new azure_justrun.Containerapp("containerappResource", {
    dockerImageName: "string",
    imageDirectory: "string",
    namePrefix: "string",
    registryName: "string",
    resourceGroupName: "string",
    storageAccountName: "string",
    version: "string",
});
Copy
type: azure-justrun:containerapp
properties:
    dockerImageName: string
    imageDirectory: string
    namePrefix: string
    registryName: string
    resourceGroupName: string
    storageAccountName: string
    version: string
Copy

Containerapp 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 Containerapp resource accepts the following input properties:

DockerImageName string
The name of the docker image. One will be created if not provided
ImageDirectory string
The name of the directory where the docker image to be created is. NOT the actual directory, i.e. 'nodeapp' instead of './nodeapp'
NamePrefix string
The name prefix given to child resources of this component. Should not contain dashes.
RegistryName string
The name of the image registry. Must belong to the resource group specified in ResourceGroupName. One will be created if not provided.
ResourceGroupName string
The resource group to use. One will be created if not provided.
StorageAccountName string
The name of the storage account to use. One will be created if not provided.
Version string
The version of the created docker image
DockerImageName string
The name of the docker image. One will be created if not provided
ImageDirectory string
The name of the directory where the docker image to be created is. NOT the actual directory, i.e. 'nodeapp' instead of './nodeapp'
NamePrefix string
The name prefix given to child resources of this component. Should not contain dashes.
RegistryName string
The name of the image registry. Must belong to the resource group specified in ResourceGroupName. One will be created if not provided.
ResourceGroupName string
The resource group to use. One will be created if not provided.
StorageAccountName string
The name of the storage account to use. One will be created if not provided.
Version string
The version of the created docker image
dockerImageName String
The name of the docker image. One will be created if not provided
imageDirectory String
The name of the directory where the docker image to be created is. NOT the actual directory, i.e. 'nodeapp' instead of './nodeapp'
namePrefix String
The name prefix given to child resources of this component. Should not contain dashes.
registryName String
The name of the image registry. Must belong to the resource group specified in ResourceGroupName. One will be created if not provided.
resourceGroupName String
The resource group to use. One will be created if not provided.
storageAccountName String
The name of the storage account to use. One will be created if not provided.
version String
The version of the created docker image
dockerImageName string
The name of the docker image. One will be created if not provided
imageDirectory string
The name of the directory where the docker image to be created is. NOT the actual directory, i.e. 'nodeapp' instead of './nodeapp'
namePrefix string
The name prefix given to child resources of this component. Should not contain dashes.
registryName string
The name of the image registry. Must belong to the resource group specified in ResourceGroupName. One will be created if not provided.
resourceGroupName string
The resource group to use. One will be created if not provided.
storageAccountName string
The name of the storage account to use. One will be created if not provided.
version string
The version of the created docker image
docker_image_name str
The name of the docker image. One will be created if not provided
image_directory str
The name of the directory where the docker image to be created is. NOT the actual directory, i.e. 'nodeapp' instead of './nodeapp'
name_prefix str
The name prefix given to child resources of this component. Should not contain dashes.
registry_name str
The name of the image registry. Must belong to the resource group specified in ResourceGroupName. One will be created if not provided.
resource_group_name str
The resource group to use. One will be created if not provided.
storage_account_name str
The name of the storage account to use. One will be created if not provided.
version str
The version of the created docker image
dockerImageName String
The name of the docker image. One will be created if not provided
imageDirectory String
The name of the directory where the docker image to be created is. NOT the actual directory, i.e. 'nodeapp' instead of './nodeapp'
namePrefix String
The name prefix given to child resources of this component. Should not contain dashes.
registryName String
The name of the image registry. Must belong to the resource group specified in ResourceGroupName. One will be created if not provided.
resourceGroupName String
The resource group to use. One will be created if not provided.
storageAccountName String
The name of the storage account to use. One will be created if not provided.
version String
The version of the created docker image

Outputs

All input properties are implicitly available as output properties. Additionally, the Containerapp resource produces the following output properties:

Url string
The URL of the container app
Url string
The URL of the container app
url String
The URL of the container app
url string
The URL of the container app
url str
The URL of the container app
url String
The URL of the container app

Package Details

Repository
Azure Justrun pulumi/pulumi-azure-justrun
License
Apache-2.0