This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [@pulumi/pulumi](https://redirect.github.com/pulumi/pulumi) ([source](https://redirect.github.com/pulumi/pulumi/tree/HEAD/sdk/nodejs)) | dependencies | minor | [`3.221.0` -> `3.224.0`](https://renovatebot.com/diffs/npm/@pulumi%2fpulumi/3.221.0/3.224.0) | | [github.com/pulumi/pulumi-docker-build/sdk/go/dockerbuild](https://redirect.github.com/pulumi/pulumi-docker-build) | require | patch | `v0.0.12` -> `v0.0.15` | | [github.com/pulumi/pulumi-dotnet/pulumi-language-dotnet/v3](https://redirect.github.com/pulumi/pulumi-dotnet) | require | patch | `v3.101.0` -> `v3.101.2` | | [github.com/pulumi/pulumi-java/pkg](https://redirect.github.com/pulumi/pulumi-java) | require | minor | `v1.16.0` -> `v1.21.2` | | [github.com/pulumi/pulumi/pkg/v3](https://redirect.github.com/pulumi/pulumi) | require | minor | `v3.220.0` -> `v3.223.0` | --- ### Release Notes <details> <summary>pulumi/pulumi (@​pulumi/pulumi)</summary> ### [`v3.224.0`](https://redirect.github.com/pulumi/pulumi/releases/tag/v3.224.0) [Compare Source](https://redirect.github.com/pulumi/pulumi/compare/v3.223.0...v3.224.0) ##### 3.224.0 (2026-02-26) ##### Features - \[backend/diy] Add zstd compression option for DIY backend state files [#​21877](https://redirect.github.com/pulumi/pulumi/pull/21877) - \[engine] Automatically make invoke outputs secret when there is a secret input, and the invoke provider does not support secrets - \[cli/package] Support source-based packages in `pulumi schema check`, not just schema files [#​21897](https://redirect.github.com/pulumi/pulumi/pull/21897) ##### Bug Fixes - \[pkg] Correct the schema for "pulumi:pulumi:StackReference" [#​21895](https://redirect.github.com/pulumi/pulumi/pull/21895) - \[programgen/nodejs] Correct the semantics of singleOrNone in generated files [#​21947](https://redirect.github.com/pulumi/pulumi/pull/21947) - \[sdk/python] Fix `StepEventMetadata.from_json` reading `detailed_diff` (snake_case) instead of `detailedDiff` (camelCase), and `PolicyEvent.from_json` reading `resource_urn` instead of `resourceUrn`, causing both fields to always be `None` [#​21714](https://redirect.github.com/pulumi/pulumi/pull/21714) - \[sdk/python] Convert integer component inputs to `int` [#​21944](https://redirect.github.com/pulumi/pulumi/pull/21944) - \[sdk/python] Fix crash in forked processes using automation API [#​21937](https://redirect.github.com/pulumi/pulumi/pull/21937) - \[engine] Fix panic when a new component resource in the program is not targeted [#​21957](https://redirect.github.com/pulumi/pulumi/pull/21957) ##### Miscellaneous - \[sdk] Update java, dotnet & yaml [#​21961](https://redirect.github.com/pulumi/pulumi/pull/21961) - \[sdk/python] Improve the performance of `contains_unknowns` for large objects [#​21893](https://redirect.github.com/pulumi/pulumi/pull/21893) ### [`v3.223.0`](https://redirect.github.com/pulumi/pulumi/blob/HEAD/CHANGELOG.md#32230-2026-02-19) [Compare Source](https://redirect.github.com/pulumi/pulumi/compare/v3.222.0...v3.223.0) ##### Bug Fixes - \[engine] Report policy pack installation errors [#​21882](https://redirect.github.com/pulumi/pulumi/pull/21882) ### [`v3.222.0`](https://redirect.github.com/pulumi/pulumi/blob/HEAD/CHANGELOG.md#32220-2026-02-18) [Compare Source](https://redirect.github.com/pulumi/pulumi/compare/v3.221.0...v3.222.0) ##### Features - \[programgen/go] Generate Call requests [#​21836](https://redirect.github.com/pulumi/pulumi/pull/21836) ##### Bug Fixes - \[sdk/{nodejs,python}] Fix hang when loading policy packs that use v1.18.1 or older of the policy SDK [#​21866](https://redirect.github.com/pulumi/pulumi/pull/21866) </details> <details> <summary>pulumi/pulumi-docker-build (github.com/pulumi/pulumi-docker-build/sdk/go/dockerbuild)</summary> ### [`v0.0.15`](https://redirect.github.com/pulumi/pulumi-docker-build/compare/v0.0.14...v0.0.15) [Compare Source](https://redirect.github.com/pulumi/pulumi-docker-build/compare/v0.0.14...v0.0.15) ### [`v0.0.14`](https://redirect.github.com/pulumi/pulumi-docker-build/compare/v0.0.13...v0.0.14) [Compare Source](https://redirect.github.com/pulumi/pulumi-docker-build/compare/v0.0.13...v0.0.14) ### [`v0.0.13`](https://redirect.github.com/pulumi/pulumi-docker-build/releases/tag/v0.0.13) [Compare Source](https://redirect.github.com/pulumi/pulumi-docker-build/compare/v0.0.12...v0.0.13) #### What's Changed - Improve exec error messages by [@​blampe](https://redirect.github.com/blampe) in [https://github.com/pulumi/pulumi-docker-build/pull/553](https://redirect.github.com/pulumi/pulumi-docker-build/pull/553) - Update p-go-provider to fix version replacement behavior by [@​blampe](https://redirect.github.com/blampe) in [https://github.com/pulumi/pulumi-docker-build/pull/584](https://redirect.github.com/pulumi/pulumi-docker-build/pull/584) **Full Changelog**: https://github.com/pulumi/pulumi-docker-build/compare/v0.0.12...v0.0.13 </details> <details> <summary>pulumi/pulumi-dotnet (github.com/pulumi/pulumi-dotnet/pulumi-language-dotnet/v3)</summary> ### [`v3.101.2`](https://redirect.github.com/pulumi/pulumi-dotnet/blob/HEAD/CHANGELOG.md#v31012---2026-02-25) [Compare Source](https://redirect.github.com/pulumi/pulumi-dotnet/compare/v3.101.0...v3.101.2) </details> <details> <summary>pulumi/pulumi-java (github.com/pulumi/pulumi-java/pkg)</summary> ### [`v1.21.2`](https://redirect.github.com/pulumi/pulumi-java/blob/HEAD/CHANGELOG.md#vv1212---2026-02-25) [Compare Source](https://redirect.github.com/pulumi/pulumi-java/compare/v1.21.1...v1.21.2) ### [`v1.21.1`](https://redirect.github.com/pulumi/pulumi-java/blob/HEAD/CHANGELOG.md#vv1211---2026-02-25) [Compare Source](https://redirect.github.com/pulumi/pulumi-java/compare/v1.21.0...v1.21.1) ##### Bug Fixes - \[runtime] Fix `unknown provider package` error in automation API and correctly propagate errors from inline programs. [#​2029](https://redirect.github.com/pulumi/pulumi-java/pull/2029) ### [`v1.21.0`](https://redirect.github.com/pulumi/pulumi-java/blob/HEAD/CHANGELOG.md#vv1210---2026-01-28) [Compare Source](https://redirect.github.com/pulumi/pulumi-java/compare/v1.20.0...v1.21.0) ##### Improvements - \[sdk] Add Deployment.requirePulumiVersion [#​1979](https://redirect.github.com/pulumi/pulumi-java/pull/1979) - \[codegen] Implement alias resource options generation [#​1982](https://redirect.github.com/pulumi/pulumi-java/pull/1982) ##### Bug Fixes - \[codegen] Use config.require in codegen when there is no default value [#​1983](https://redirect.github.com/pulumi/pulumi-java/pull/1983) ### [`v1.20.0`](https://redirect.github.com/pulumi/pulumi-java/blob/HEAD/CHANGELOG.md#vv1200---2025-12-29) [Compare Source](https://redirect.github.com/pulumi/pulumi-java/compare/v1.19.0...v1.20.0) ##### Improvements - \[sdk] Add support for the `replacementTrigger` resource option [#​1958](https://redirect.github.com/pulumi/pulumi-java/pull/1958) ### [`v1.19.0`](https://redirect.github.com/pulumi/pulumi-java/blob/HEAD/CHANGELOG.md#v1190---2025-12-10) [Compare Source](https://redirect.github.com/pulumi/pulumi-java/compare/v1.18.0...v1.19.0) ##### Improvements - \[codegen] Add .gitattributes file to generated SDKs [#​1949](https://redirect.github.com/pulumi/pulumi-java/pull/1949) ##### Bug Fixes - \[language] Stop parsing runtime options at startup [#​1947](https://redirect.github.com/pulumi/pulumi-java/pull/1947) ### [`v1.18.0`](https://redirect.github.com/pulumi/pulumi-java/blob/HEAD/CHANGELOG.md#v1180---2025-12-03) [Compare Source](https://redirect.github.com/pulumi/pulumi-java/compare/v1.17.1...v1.18.0) ##### Improvements - \[sdk] Add `ReplaceWith` as a resource option ### [`v1.17.1`](https://redirect.github.com/pulumi/pulumi-java/blob/HEAD/CHANGELOG.md#v1171---2025-11-26) [Compare Source](https://redirect.github.com/pulumi/pulumi-java/compare/v1.17.0...v1.17.1) ##### Improvements - \[sdk] Dependency bumps ### [`v1.17.0`](https://redirect.github.com/pulumi/pulumi-java/blob/HEAD/CHANGELOG.md#v1170---2025-11-12) [Compare Source](https://redirect.github.com/pulumi/pulumi-java/compare/v1.16.3...v1.17.0) ##### Improvements - \[sdk] Get the event log in the automation API over gRPC, instead of through a text file ### [`v1.16.3`](https://redirect.github.com/pulumi/pulumi-java/blob/HEAD/CHANGELOG.md#v1163---2025-11-05) [Compare Source](https://redirect.github.com/pulumi/pulumi-java/compare/v1.16.2...v1.16.3) ##### Improvements - \[sdk] Update pulumi pkg & sdk to 3.205.0 - \[runtime] Implement `Language.Link` ### [`v1.16.2`](https://redirect.github.com/pulumi/pulumi-java/blob/HEAD/CHANGELOG.md#v1162---2025-10-10) [Compare Source](https://redirect.github.com/pulumi/pulumi-java/compare/v1.16.1...v1.16.2) ##### Bug Fixes - \[sdk] Add `hideDiffs` as a new resource option. See details ### [`v1.16.1`](https://redirect.github.com/pulumi/pulumi-java/blob/HEAD/CHANGELOG.md#v1161---2025-07-31) [Compare Source](https://redirect.github.com/pulumi/pulumi-java/compare/v1.16.0...v1.16.1) ##### Bug Fixes - \[codegen] Fix generated 'plan' argument of 'preview' command </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - Monday through Friday ( * * * * 1-5 ) (UTC). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://redirect.github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yNjQuMCIsInVwZGF0ZWRJblZlciI6IjM5LjI2NC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJpbXBhY3Qvbm8tY2hhbmdlbG9nLXJlcXVpcmVkIl19--> --------- Co-authored-by: pulumi-renovate[bot] <189166143+pulumi-renovate[bot]@users.noreply.github.com> Co-authored-by: pulumi-bot <bot@pulumi.com>
386 lines
14 KiB
Python
Generated
386 lines
14 KiB
Python
Generated
# coding=utf-8
|
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
|
|
import builtins as _builtins
|
|
import warnings
|
|
import sys
|
|
import pulumi
|
|
import pulumi.runtime
|
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
if sys.version_info >= (3, 11):
|
|
from typing import NotRequired, TypedDict, TypeAlias
|
|
else:
|
|
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
from . import _utilities
|
|
from . import outputs
|
|
from ._inputs import *
|
|
|
|
__all__ = ['IndexArgs', 'Index']
|
|
|
|
@pulumi.input_type
|
|
class IndexArgs:
|
|
def __init__(__self__, *,
|
|
sources: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]],
|
|
tag: pulumi.Input[_builtins.str],
|
|
push: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
registry: Optional[pulumi.Input['RegistryArgs']] = None):
|
|
"""
|
|
The set of arguments for constructing a Index resource.
|
|
|
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] sources: Existing images to include in the index.
|
|
:param pulumi.Input[_builtins.str] tag: The tag to apply to the index.
|
|
:param pulumi.Input[_builtins.bool] push: If true, push the index to the target registry.
|
|
|
|
Defaults to `true`.
|
|
:param pulumi.Input['RegistryArgs'] registry: Authentication for the registry where the tagged index will be pushed.
|
|
|
|
Credentials can also be included with the provider's configuration.
|
|
"""
|
|
pulumi.set(__self__, "sources", sources)
|
|
pulumi.set(__self__, "tag", tag)
|
|
if push is None:
|
|
push = True
|
|
if push is not None:
|
|
pulumi.set(__self__, "push", push)
|
|
if registry is not None:
|
|
pulumi.set(__self__, "registry", registry)
|
|
|
|
@_builtins.property
|
|
@pulumi.getter
|
|
def sources(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]:
|
|
"""
|
|
Existing images to include in the index.
|
|
"""
|
|
return pulumi.get(self, "sources")
|
|
|
|
@sources.setter
|
|
def sources(self, value: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]):
|
|
pulumi.set(self, "sources", value)
|
|
|
|
@_builtins.property
|
|
@pulumi.getter
|
|
def tag(self) -> pulumi.Input[_builtins.str]:
|
|
"""
|
|
The tag to apply to the index.
|
|
"""
|
|
return pulumi.get(self, "tag")
|
|
|
|
@tag.setter
|
|
def tag(self, value: pulumi.Input[_builtins.str]):
|
|
pulumi.set(self, "tag", value)
|
|
|
|
@_builtins.property
|
|
@pulumi.getter
|
|
def push(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
"""
|
|
If true, push the index to the target registry.
|
|
|
|
Defaults to `true`.
|
|
"""
|
|
return pulumi.get(self, "push")
|
|
|
|
@push.setter
|
|
def push(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
pulumi.set(self, "push", value)
|
|
|
|
@_builtins.property
|
|
@pulumi.getter
|
|
def registry(self) -> Optional[pulumi.Input['RegistryArgs']]:
|
|
"""
|
|
Authentication for the registry where the tagged index will be pushed.
|
|
|
|
Credentials can also be included with the provider's configuration.
|
|
"""
|
|
return pulumi.get(self, "registry")
|
|
|
|
@registry.setter
|
|
def registry(self, value: Optional[pulumi.Input['RegistryArgs']]):
|
|
pulumi.set(self, "registry", value)
|
|
|
|
|
|
@pulumi.type_token("docker-build:index:Index")
|
|
class Index(pulumi.CustomResource):
|
|
@overload
|
|
def __init__(__self__,
|
|
resource_name: str,
|
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
push: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
registry: Optional[pulumi.Input[Union['RegistryArgs', 'RegistryArgsDict']]] = None,
|
|
sources: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
tag: Optional[pulumi.Input[_builtins.str]] = None,
|
|
__props__=None):
|
|
"""
|
|
A wrapper around `docker buildx imagetools create` to create an index
|
|
(or manifest list) referencing one or more existing images.
|
|
|
|
In most cases you do not need an `Index` to build a multi-platform
|
|
image -- specifying multiple platforms on the `Image` will handle this
|
|
for you automatically.
|
|
|
|
However, as of April 2024, building multi-platform images _with
|
|
caching_ will only export a cache for one platform at a time (see [this
|
|
discussion](https://github.com/docker/buildx/discussions/1382) for more
|
|
details).
|
|
|
|
Therefore this resource can be helpful if you are building
|
|
multi-platform images with caching: each platform can be built and
|
|
cached separately, and an `Index` can join them all together. An
|
|
example of this is shown below.
|
|
|
|
This resource creates an OCI image index or a Docker manifest list
|
|
depending on the media types of the source images.
|
|
|
|
## Example Usage
|
|
### Multi-platform registry caching
|
|
```python
|
|
import pulumi
|
|
import pulumi_docker_build as docker_build
|
|
|
|
amd64 = docker_build.Image("amd64",
|
|
cache_from=[{
|
|
"registry": {
|
|
"ref": "docker.io/pulumi/pulumi:cache-amd64",
|
|
},
|
|
}],
|
|
cache_to=[{
|
|
"registry": {
|
|
"mode": docker_build.CacheMode.MAX,
|
|
"ref": "docker.io/pulumi/pulumi:cache-amd64",
|
|
},
|
|
}],
|
|
context={
|
|
"location": "app",
|
|
},
|
|
platforms=[docker_build.Platform.LINUX_AMD64],
|
|
tags=["docker.io/pulumi/pulumi:3.107.0-amd64"])
|
|
arm64 = docker_build.Image("arm64",
|
|
cache_from=[{
|
|
"registry": {
|
|
"ref": "docker.io/pulumi/pulumi:cache-arm64",
|
|
},
|
|
}],
|
|
cache_to=[{
|
|
"registry": {
|
|
"mode": docker_build.CacheMode.MAX,
|
|
"ref": "docker.io/pulumi/pulumi:cache-arm64",
|
|
},
|
|
}],
|
|
context={
|
|
"location": "app",
|
|
},
|
|
platforms=[docker_build.Platform.LINUX_ARM64],
|
|
tags=["docker.io/pulumi/pulumi:3.107.0-arm64"])
|
|
index = docker_build.Index("index",
|
|
sources=[
|
|
amd64.ref,
|
|
arm64.ref,
|
|
],
|
|
tag="docker.io/pulumi/pulumi:3.107.0")
|
|
pulumi.export("ref", index.ref)
|
|
```
|
|
|
|
|
|
:param str resource_name: The name of the resource.
|
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
:param pulumi.Input[_builtins.bool] push: If true, push the index to the target registry.
|
|
|
|
Defaults to `true`.
|
|
:param pulumi.Input[Union['RegistryArgs', 'RegistryArgsDict']] registry: Authentication for the registry where the tagged index will be pushed.
|
|
|
|
Credentials can also be included with the provider's configuration.
|
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] sources: Existing images to include in the index.
|
|
:param pulumi.Input[_builtins.str] tag: The tag to apply to the index.
|
|
"""
|
|
...
|
|
@overload
|
|
def __init__(__self__,
|
|
resource_name: str,
|
|
args: IndexArgs,
|
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
"""
|
|
A wrapper around `docker buildx imagetools create` to create an index
|
|
(or manifest list) referencing one or more existing images.
|
|
|
|
In most cases you do not need an `Index` to build a multi-platform
|
|
image -- specifying multiple platforms on the `Image` will handle this
|
|
for you automatically.
|
|
|
|
However, as of April 2024, building multi-platform images _with
|
|
caching_ will only export a cache for one platform at a time (see [this
|
|
discussion](https://github.com/docker/buildx/discussions/1382) for more
|
|
details).
|
|
|
|
Therefore this resource can be helpful if you are building
|
|
multi-platform images with caching: each platform can be built and
|
|
cached separately, and an `Index` can join them all together. An
|
|
example of this is shown below.
|
|
|
|
This resource creates an OCI image index or a Docker manifest list
|
|
depending on the media types of the source images.
|
|
|
|
## Example Usage
|
|
### Multi-platform registry caching
|
|
```python
|
|
import pulumi
|
|
import pulumi_docker_build as docker_build
|
|
|
|
amd64 = docker_build.Image("amd64",
|
|
cache_from=[{
|
|
"registry": {
|
|
"ref": "docker.io/pulumi/pulumi:cache-amd64",
|
|
},
|
|
}],
|
|
cache_to=[{
|
|
"registry": {
|
|
"mode": docker_build.CacheMode.MAX,
|
|
"ref": "docker.io/pulumi/pulumi:cache-amd64",
|
|
},
|
|
}],
|
|
context={
|
|
"location": "app",
|
|
},
|
|
platforms=[docker_build.Platform.LINUX_AMD64],
|
|
tags=["docker.io/pulumi/pulumi:3.107.0-amd64"])
|
|
arm64 = docker_build.Image("arm64",
|
|
cache_from=[{
|
|
"registry": {
|
|
"ref": "docker.io/pulumi/pulumi:cache-arm64",
|
|
},
|
|
}],
|
|
cache_to=[{
|
|
"registry": {
|
|
"mode": docker_build.CacheMode.MAX,
|
|
"ref": "docker.io/pulumi/pulumi:cache-arm64",
|
|
},
|
|
}],
|
|
context={
|
|
"location": "app",
|
|
},
|
|
platforms=[docker_build.Platform.LINUX_ARM64],
|
|
tags=["docker.io/pulumi/pulumi:3.107.0-arm64"])
|
|
index = docker_build.Index("index",
|
|
sources=[
|
|
amd64.ref,
|
|
arm64.ref,
|
|
],
|
|
tag="docker.io/pulumi/pulumi:3.107.0")
|
|
pulumi.export("ref", index.ref)
|
|
```
|
|
|
|
|
|
:param str resource_name: The name of the resource.
|
|
:param IndexArgs args: The arguments to use to populate this resource's properties.
|
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
"""
|
|
...
|
|
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
resource_args, opts = _utilities.get_resource_args_opts(IndexArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
if resource_args is not None:
|
|
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
else:
|
|
__self__._internal_init(resource_name, *args, **kwargs)
|
|
|
|
def _internal_init(__self__,
|
|
resource_name: str,
|
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
push: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
registry: Optional[pulumi.Input[Union['RegistryArgs', 'RegistryArgsDict']]] = None,
|
|
sources: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
tag: Optional[pulumi.Input[_builtins.str]] = None,
|
|
__props__=None):
|
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
if opts.id is None:
|
|
if __props__ is not None:
|
|
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
__props__ = IndexArgs.__new__(IndexArgs)
|
|
|
|
if push is None:
|
|
push = True
|
|
__props__.__dict__["push"] = push
|
|
__props__.__dict__["registry"] = registry
|
|
if sources is None and not opts.urn:
|
|
raise TypeError("Missing required property 'sources'")
|
|
__props__.__dict__["sources"] = sources
|
|
if tag is None and not opts.urn:
|
|
raise TypeError("Missing required property 'tag'")
|
|
__props__.__dict__["tag"] = tag
|
|
__props__.__dict__["ref"] = None
|
|
super(Index, __self__).__init__(
|
|
'docker-build:index:Index',
|
|
resource_name,
|
|
__props__,
|
|
opts)
|
|
|
|
@staticmethod
|
|
def get(resource_name: str,
|
|
id: pulumi.Input[str],
|
|
opts: Optional[pulumi.ResourceOptions] = None) -> 'Index':
|
|
"""
|
|
Get an existing Index resource's state with the given name, id, and optional extra
|
|
properties used to qualify the lookup.
|
|
|
|
:param str resource_name: The unique name of the resulting resource.
|
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
"""
|
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
|
|
__props__ = IndexArgs.__new__(IndexArgs)
|
|
|
|
__props__.__dict__["push"] = None
|
|
__props__.__dict__["ref"] = None
|
|
__props__.__dict__["registry"] = None
|
|
__props__.__dict__["sources"] = None
|
|
__props__.__dict__["tag"] = None
|
|
return Index(resource_name, opts=opts, __props__=__props__)
|
|
|
|
@_builtins.property
|
|
@pulumi.getter
|
|
def push(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
"""
|
|
If true, push the index to the target registry.
|
|
|
|
Defaults to `true`.
|
|
"""
|
|
return pulumi.get(self, "push")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter
|
|
def ref(self) -> pulumi.Output[_builtins.str]:
|
|
"""
|
|
The pushed tag with digest.
|
|
|
|
Identical to the tag if the index was not pushed.
|
|
"""
|
|
return pulumi.get(self, "ref")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter
|
|
def registry(self) -> pulumi.Output[Optional['outputs.Registry']]:
|
|
"""
|
|
Authentication for the registry where the tagged index will be pushed.
|
|
|
|
Credentials can also be included with the provider's configuration.
|
|
"""
|
|
return pulumi.get(self, "registry")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter
|
|
def sources(self) -> pulumi.Output[Sequence[_builtins.str]]:
|
|
"""
|
|
Existing images to include in the index.
|
|
"""
|
|
return pulumi.get(self, "sources")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter
|
|
def tag(self) -> pulumi.Output[_builtins.str]:
|
|
"""
|
|
The tag to apply to the index.
|
|
"""
|
|
return pulumi.get(self, "tag")
|
|
|