ContainerResource
Handle TypeScript
interface ContainerResource extends IComputeResource, IResource, IResourceWithArgs, IResourceWithEndpoints, IResourceWithEnvironment, IResourceWithProbes, IResourceWithWaitSupport { publishAsConnectionString(): ContainerResource; publishAsContainer(): ContainerResource; withBindMount( source: string, target: string, isReadOnly?: boolean): ContainerResource; withBuildArg( name: string, value: ParameterResource): ContainerResource; withBuildSecret( name: string, value: ParameterResource): ContainerResource; withContainerName(name: string): ContainerResource; withContainerNetworkAlias(alias: string): ContainerResource; withContainerRuntimeArgs(args: string[]): ContainerResource; withDockerfile( contextPath: string, dockerfilePath?: string, stage?: string): ContainerResource; withEndpointProxySupport(proxyEnabled: boolean): ContainerResource; withEntrypoint(entrypoint: string): ContainerResource; withImage( image: string, tag?: string): ContainerResource; withImagePullPolicy(pullPolicy: ImagePullPolicy): ContainerResource; withImageRegistry(registry: string): ContainerResource; withImageSHA256(sha256: string): ContainerResource; withImageTag(tag: string): ContainerResource; withLifetime(lifetime: ContainerLifetime): ContainerResource; withVolume( target: string, name?: string, isReadOnly?: boolean): ContainerResource;} 18 members
Methods
method
publishAsConnectionString builder Publishes the resource as a connection string
publishAsConnectionString(): ContainerResourceReturns
ContainerResource method
publishAsContainer builder Configures the resource to be published as a container
publishAsContainer(): ContainerResourceReturns
ContainerResource method
withBindMount builder Adds a bind mount
withBindMount( source: string, target: string, isReadOnly?: boolean): ContainerResourceParameters
source string target string isReadOnly boolean optional = False Returns
ContainerResource method
withBuildArg builder Adds a build argument from a parameter resource
withBuildArg( name: string, value: ParameterResource): ContainerResourceParameters
name string value ParameterResource Returns
ContainerResource method
withBuildSecret builder Adds a build secret from a parameter resource
withBuildSecret( name: string, value: ParameterResource): ContainerResourceParameters
name string value ParameterResource Returns
ContainerResource method
withContainerName builder Sets the container name
withContainerName(name: string): ContainerResourceParameters
name string Returns
ContainerResource method
withContainerNetworkAlias builder Adds a network alias for the container
withContainerNetworkAlias(alias: string): ContainerResourceParameters
alias string Returns
ContainerResource method
withContainerRuntimeArgs builder Adds runtime arguments for the container
withContainerRuntimeArgs(args: string[]): ContainerResourceParameters
args string[] Returns
ContainerResource method
withDockerfile builder Configures the resource to use a Dockerfile
withDockerfile( contextPath: string, dockerfilePath?: string, stage?: string): ContainerResourceParameters
contextPath string dockerfilePath string optional stage string optional Returns
ContainerResource method
withEndpointProxySupport builder Configures endpoint proxy support
withEndpointProxySupport(proxyEnabled: boolean): ContainerResourceParameters
proxyEnabled boolean Returns
ContainerResource method
withEntrypoint builder Sets the container entrypoint
withEntrypoint(entrypoint: string): ContainerResourceParameters
entrypoint string Returns
ContainerResource method
withImage builder Sets the container image
withImage( image: string, tag?: string): ContainerResourceParameters
image string tag string optional Returns
ContainerResource method
withImagePullPolicy builder Sets the container image pull policy
withImagePullPolicy(pullPolicy: ImagePullPolicy): ContainerResourceParameters
pullPolicy ImagePullPolicy Returns
ContainerResource method
withImageRegistry builder Sets the container image registry
withImageRegistry(registry: string): ContainerResourceParameters
registry string Returns
ContainerResource method
withImageSHA256 builder Sets the image SHA256 digest
withImageSHA256(sha256: string): ContainerResourceParameters
sha256 string Returns
ContainerResource method
withImageTag builder Sets the container image tag
withImageTag(tag: string): ContainerResourceParameters
tag string Returns
ContainerResource method
withLifetime builder Sets the lifetime behavior of the container resource
withLifetime(lifetime: ContainerLifetime): ContainerResourceParameters
lifetime ContainerLifetime Returns
ContainerResource method
withVolume builder Adds a volume
withVolume( target: string, name?: string, isReadOnly?: boolean): ContainerResourceParameters
target string name string optional isReadOnly boolean optional = False Returns
ContainerResource