spectrocloud.AddonDeployment
Explore with Pulumi AI
Create AddonDeployment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AddonDeployment(name: string, args: AddonDeploymentArgs, opts?: CustomResourceOptions);
@overload
def AddonDeployment(resource_name: str,
args: AddonDeploymentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AddonDeployment(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_uid: Optional[str] = None,
addon_deployment_id: Optional[str] = None,
apply_setting: Optional[str] = None,
cluster_profiles: Optional[Sequence[AddonDeploymentClusterProfileArgs]] = None,
context: Optional[str] = None,
timeouts: Optional[AddonDeploymentTimeoutsArgs] = None)
func NewAddonDeployment(ctx *Context, name string, args AddonDeploymentArgs, opts ...ResourceOption) (*AddonDeployment, error)
public AddonDeployment(string name, AddonDeploymentArgs args, CustomResourceOptions? opts = null)
public AddonDeployment(String name, AddonDeploymentArgs args)
public AddonDeployment(String name, AddonDeploymentArgs args, CustomResourceOptions options)
type: spectrocloud:AddonDeployment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AddonDeploymentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AddonDeploymentArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AddonDeploymentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AddonDeploymentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AddonDeploymentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var addonDeploymentResource = new Spectrocloud.AddonDeployment("addonDeploymentResource", new()
{
ClusterUid = "string",
AddonDeploymentId = "string",
ApplySetting = "string",
ClusterProfiles = new[]
{
new Spectrocloud.Inputs.AddonDeploymentClusterProfileArgs
{
Id = "string",
Packs = new[]
{
new Spectrocloud.Inputs.AddonDeploymentClusterProfilePackArgs
{
Name = "string",
Manifests = new[]
{
new Spectrocloud.Inputs.AddonDeploymentClusterProfilePackManifestArgs
{
Content = "string",
Name = "string",
Uid = "string",
},
},
RegistryUid = "string",
Tag = "string",
Type = "string",
Uid = "string",
Values = "string",
},
},
Variables =
{
{ "string", "string" },
},
},
},
Context = "string",
Timeouts = new Spectrocloud.Inputs.AddonDeploymentTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := spectrocloud.NewAddonDeployment(ctx, "addonDeploymentResource", &spectrocloud.AddonDeploymentArgs{
ClusterUid: pulumi.String("string"),
AddonDeploymentId: pulumi.String("string"),
ApplySetting: pulumi.String("string"),
ClusterProfiles: spectrocloud.AddonDeploymentClusterProfileArray{
&spectrocloud.AddonDeploymentClusterProfileArgs{
Id: pulumi.String("string"),
Packs: spectrocloud.AddonDeploymentClusterProfilePackArray{
&spectrocloud.AddonDeploymentClusterProfilePackArgs{
Name: pulumi.String("string"),
Manifests: spectrocloud.AddonDeploymentClusterProfilePackManifestArray{
&spectrocloud.AddonDeploymentClusterProfilePackManifestArgs{
Content: pulumi.String("string"),
Name: pulumi.String("string"),
Uid: pulumi.String("string"),
},
},
RegistryUid: pulumi.String("string"),
Tag: pulumi.String("string"),
Type: pulumi.String("string"),
Uid: pulumi.String("string"),
Values: pulumi.String("string"),
},
},
Variables: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
Context: pulumi.String("string"),
Timeouts: &spectrocloud.AddonDeploymentTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var addonDeploymentResource = new AddonDeployment("addonDeploymentResource", AddonDeploymentArgs.builder()
.clusterUid("string")
.addonDeploymentId("string")
.applySetting("string")
.clusterProfiles(AddonDeploymentClusterProfileArgs.builder()
.id("string")
.packs(AddonDeploymentClusterProfilePackArgs.builder()
.name("string")
.manifests(AddonDeploymentClusterProfilePackManifestArgs.builder()
.content("string")
.name("string")
.uid("string")
.build())
.registryUid("string")
.tag("string")
.type("string")
.uid("string")
.values("string")
.build())
.variables(Map.of("string", "string"))
.build())
.context("string")
.timeouts(AddonDeploymentTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
addon_deployment_resource = spectrocloud.AddonDeployment("addonDeploymentResource",
cluster_uid="string",
addon_deployment_id="string",
apply_setting="string",
cluster_profiles=[{
"id": "string",
"packs": [{
"name": "string",
"manifests": [{
"content": "string",
"name": "string",
"uid": "string",
}],
"registry_uid": "string",
"tag": "string",
"type": "string",
"uid": "string",
"values": "string",
}],
"variables": {
"string": "string",
},
}],
context="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const addonDeploymentResource = new spectrocloud.AddonDeployment("addonDeploymentResource", {
clusterUid: "string",
addonDeploymentId: "string",
applySetting: "string",
clusterProfiles: [{
id: "string",
packs: [{
name: "string",
manifests: [{
content: "string",
name: "string",
uid: "string",
}],
registryUid: "string",
tag: "string",
type: "string",
uid: "string",
values: "string",
}],
variables: {
string: "string",
},
}],
context: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: spectrocloud:AddonDeployment
properties:
addonDeploymentId: string
applySetting: string
clusterProfiles:
- id: string
packs:
- manifests:
- content: string
name: string
uid: string
name: string
registryUid: string
tag: string
type: string
uid: string
values: string
variables:
string: string
clusterUid: string
context: string
timeouts:
create: string
delete: string
update: string
AddonDeployment 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 AddonDeployment resource accepts the following input properties:
- Cluster
Uid string - Addon
Deployment stringId - The ID of this resource.
- Apply
Setting string - The setting to apply the cluster profile.
DownloadAndInstall
will download and install packs in one action.DownloadAndInstallLater
will only download artifact and postpone install for later. Default value isDownloadAndInstall
. - Cluster
Profiles List<AddonDeployment Cluster Profile> - Context string
- Specifies cluster context where addon profile is attached. Allowed values are
project
ortenant
. Defaults toproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - Timeouts
Addon
Deployment Timeouts
- Cluster
Uid string - Addon
Deployment stringId - The ID of this resource.
- Apply
Setting string - The setting to apply the cluster profile.
DownloadAndInstall
will download and install packs in one action.DownloadAndInstallLater
will only download artifact and postpone install for later. Default value isDownloadAndInstall
. - Cluster
Profiles []AddonDeployment Cluster Profile Args - Context string
- Specifies cluster context where addon profile is attached. Allowed values are
project
ortenant
. Defaults toproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - Timeouts
Addon
Deployment Timeouts Args
- cluster
Uid String - addon
Deployment StringId - The ID of this resource.
- apply
Setting String - The setting to apply the cluster profile.
DownloadAndInstall
will download and install packs in one action.DownloadAndInstallLater
will only download artifact and postpone install for later. Default value isDownloadAndInstall
. - cluster
Profiles List<AddonDeployment Cluster Profile> - context String
- Specifies cluster context where addon profile is attached. Allowed values are
project
ortenant
. Defaults toproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - timeouts
Addon
Deployment Timeouts
- cluster
Uid string - addon
Deployment stringId - The ID of this resource.
- apply
Setting string - The setting to apply the cluster profile.
DownloadAndInstall
will download and install packs in one action.DownloadAndInstallLater
will only download artifact and postpone install for later. Default value isDownloadAndInstall
. - cluster
Profiles AddonDeployment Cluster Profile[] - context string
- Specifies cluster context where addon profile is attached. Allowed values are
project
ortenant
. Defaults toproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - timeouts
Addon
Deployment Timeouts
- cluster_
uid str - addon_
deployment_ strid - The ID of this resource.
- apply_
setting str - The setting to apply the cluster profile.
DownloadAndInstall
will download and install packs in one action.DownloadAndInstallLater
will only download artifact and postpone install for later. Default value isDownloadAndInstall
. - cluster_
profiles Sequence[AddonDeployment Cluster Profile Args] - context str
- Specifies cluster context where addon profile is attached. Allowed values are
project
ortenant
. Defaults toproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - timeouts
Addon
Deployment Timeouts Args
- cluster
Uid String - addon
Deployment StringId - The ID of this resource.
- apply
Setting String - The setting to apply the cluster profile.
DownloadAndInstall
will download and install packs in one action.DownloadAndInstallLater
will only download artifact and postpone install for later. Default value isDownloadAndInstall
. - cluster
Profiles List<Property Map> - context String
- Specifies cluster context where addon profile is attached. Allowed values are
project
ortenant
. Defaults toproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the AddonDeployment resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AddonDeployment Resource
Get an existing AddonDeployment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AddonDeploymentState, opts?: CustomResourceOptions): AddonDeployment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
addon_deployment_id: Optional[str] = None,
apply_setting: Optional[str] = None,
cluster_profiles: Optional[Sequence[AddonDeploymentClusterProfileArgs]] = None,
cluster_uid: Optional[str] = None,
context: Optional[str] = None,
timeouts: Optional[AddonDeploymentTimeoutsArgs] = None) -> AddonDeployment
func GetAddonDeployment(ctx *Context, name string, id IDInput, state *AddonDeploymentState, opts ...ResourceOption) (*AddonDeployment, error)
public static AddonDeployment Get(string name, Input<string> id, AddonDeploymentState? state, CustomResourceOptions? opts = null)
public static AddonDeployment get(String name, Output<String> id, AddonDeploymentState state, CustomResourceOptions options)
resources: _: type: spectrocloud:AddonDeployment get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Addon
Deployment stringId - The ID of this resource.
- Apply
Setting string - The setting to apply the cluster profile.
DownloadAndInstall
will download and install packs in one action.DownloadAndInstallLater
will only download artifact and postpone install for later. Default value isDownloadAndInstall
. - Cluster
Profiles List<AddonDeployment Cluster Profile> - Cluster
Uid string - Context string
- Specifies cluster context where addon profile is attached. Allowed values are
project
ortenant
. Defaults toproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - Timeouts
Addon
Deployment Timeouts
- Addon
Deployment stringId - The ID of this resource.
- Apply
Setting string - The setting to apply the cluster profile.
DownloadAndInstall
will download and install packs in one action.DownloadAndInstallLater
will only download artifact and postpone install for later. Default value isDownloadAndInstall
. - Cluster
Profiles []AddonDeployment Cluster Profile Args - Cluster
Uid string - Context string
- Specifies cluster context where addon profile is attached. Allowed values are
project
ortenant
. Defaults toproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - Timeouts
Addon
Deployment Timeouts Args
- addon
Deployment StringId - The ID of this resource.
- apply
Setting String - The setting to apply the cluster profile.
DownloadAndInstall
will download and install packs in one action.DownloadAndInstallLater
will only download artifact and postpone install for later. Default value isDownloadAndInstall
. - cluster
Profiles List<AddonDeployment Cluster Profile> - cluster
Uid String - context String
- Specifies cluster context where addon profile is attached. Allowed values are
project
ortenant
. Defaults toproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - timeouts
Addon
Deployment Timeouts
- addon
Deployment stringId - The ID of this resource.
- apply
Setting string - The setting to apply the cluster profile.
DownloadAndInstall
will download and install packs in one action.DownloadAndInstallLater
will only download artifact and postpone install for later. Default value isDownloadAndInstall
. - cluster
Profiles AddonDeployment Cluster Profile[] - cluster
Uid string - context string
- Specifies cluster context where addon profile is attached. Allowed values are
project
ortenant
. Defaults toproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - timeouts
Addon
Deployment Timeouts
- addon_
deployment_ strid - The ID of this resource.
- apply_
setting str - The setting to apply the cluster profile.
DownloadAndInstall
will download and install packs in one action.DownloadAndInstallLater
will only download artifact and postpone install for later. Default value isDownloadAndInstall
. - cluster_
profiles Sequence[AddonDeployment Cluster Profile Args] - cluster_
uid str - context str
- Specifies cluster context where addon profile is attached. Allowed values are
project
ortenant
. Defaults toproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - timeouts
Addon
Deployment Timeouts Args
- addon
Deployment StringId - The ID of this resource.
- apply
Setting String - The setting to apply the cluster profile.
DownloadAndInstall
will download and install packs in one action.DownloadAndInstallLater
will only download artifact and postpone install for later. Default value isDownloadAndInstall
. - cluster
Profiles List<Property Map> - cluster
Uid String - context String
- Specifies cluster context where addon profile is attached. Allowed values are
project
ortenant
. Defaults toproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - timeouts Property Map
Supporting Types
AddonDeploymentClusterProfile, AddonDeploymentClusterProfileArgs
- Id string
- The ID of the cluster profile.
- Packs
List<Addon
Deployment Cluster Profile Pack> - For packs of type
spectro
,helm
, andmanifest
, at least one pack must be specified. - Variables Dictionary<string, string>
- A map of cluster profile variables, specified as key-value pairs. For example:
priority = "5"
.
- Id string
- The ID of the cluster profile.
- Packs
[]Addon
Deployment Cluster Profile Pack - For packs of type
spectro
,helm
, andmanifest
, at least one pack must be specified. - Variables map[string]string
- A map of cluster profile variables, specified as key-value pairs. For example:
priority = "5"
.
- id String
- The ID of the cluster profile.
- packs
List<Addon
Deployment Cluster Profile Pack> - For packs of type
spectro
,helm
, andmanifest
, at least one pack must be specified. - variables Map<String,String>
- A map of cluster profile variables, specified as key-value pairs. For example:
priority = "5"
.
- id string
- The ID of the cluster profile.
- packs
Addon
Deployment Cluster Profile Pack[] - For packs of type
spectro
,helm
, andmanifest
, at least one pack must be specified. - variables {[key: string]: string}
- A map of cluster profile variables, specified as key-value pairs. For example:
priority = "5"
.
- id str
- The ID of the cluster profile.
- packs
Sequence[Addon
Deployment Cluster Profile Pack] - For packs of type
spectro
,helm
, andmanifest
, at least one pack must be specified. - variables Mapping[str, str]
- A map of cluster profile variables, specified as key-value pairs. For example:
priority = "5"
.
- id String
- The ID of the cluster profile.
- packs List<Property Map>
- For packs of type
spectro
,helm
, andmanifest
, at least one pack must be specified. - variables Map<String>
- A map of cluster profile variables, specified as key-value pairs. For example:
priority = "5"
.
AddonDeploymentClusterProfilePack, AddonDeploymentClusterProfilePackArgs
- Name string
- The name of the pack. The name must be unique within the cluster profile.
- Manifests
List<Addon
Deployment Cluster Profile Pack Manifest> - Registry
Uid string - The registry UID of the pack. The registry UID is the unique identifier of the registry. This attribute is required if there is more than one registry that contains a pack with the same name.
- Tag string
- The tag of the pack. The tag is the version of the pack. This attribute is required if the pack type is
spectro
orhelm
. - Type string
- The type of the pack. Allowed values are
spectro
,manifest
,helm
, oroci
. The default value is spectro. If using an OCI registry for pack, set the type tooci
. - Uid string
- The unique identifier of the pack. The value can be looked up using the
spectrocloud.getPack
data source. This value is required if the pack type isspectro
and forhelm
if the chart is from a public helm registry. - Values string
- The values of the pack. The values are the configuration values of the pack. The values are specified in YAML format.
- Name string
- The name of the pack. The name must be unique within the cluster profile.
- Manifests
[]Addon
Deployment Cluster Profile Pack Manifest - Registry
Uid string - The registry UID of the pack. The registry UID is the unique identifier of the registry. This attribute is required if there is more than one registry that contains a pack with the same name.
- Tag string
- The tag of the pack. The tag is the version of the pack. This attribute is required if the pack type is
spectro
orhelm
. - Type string
- The type of the pack. Allowed values are
spectro
,manifest
,helm
, oroci
. The default value is spectro. If using an OCI registry for pack, set the type tooci
. - Uid string
- The unique identifier of the pack. The value can be looked up using the
spectrocloud.getPack
data source. This value is required if the pack type isspectro
and forhelm
if the chart is from a public helm registry. - Values string
- The values of the pack. The values are the configuration values of the pack. The values are specified in YAML format.
- name String
- The name of the pack. The name must be unique within the cluster profile.
- manifests
List<Addon
Deployment Cluster Profile Pack Manifest> - registry
Uid String - The registry UID of the pack. The registry UID is the unique identifier of the registry. This attribute is required if there is more than one registry that contains a pack with the same name.
- tag String
- The tag of the pack. The tag is the version of the pack. This attribute is required if the pack type is
spectro
orhelm
. - type String
- The type of the pack. Allowed values are
spectro
,manifest
,helm
, oroci
. The default value is spectro. If using an OCI registry for pack, set the type tooci
. - uid String
- The unique identifier of the pack. The value can be looked up using the
spectrocloud.getPack
data source. This value is required if the pack type isspectro
and forhelm
if the chart is from a public helm registry. - values String
- The values of the pack. The values are the configuration values of the pack. The values are specified in YAML format.
- name string
- The name of the pack. The name must be unique within the cluster profile.
- manifests
Addon
Deployment Cluster Profile Pack Manifest[] - registry
Uid string - The registry UID of the pack. The registry UID is the unique identifier of the registry. This attribute is required if there is more than one registry that contains a pack with the same name.
- tag string
- The tag of the pack. The tag is the version of the pack. This attribute is required if the pack type is
spectro
orhelm
. - type string
- The type of the pack. Allowed values are
spectro
,manifest
,helm
, oroci
. The default value is spectro. If using an OCI registry for pack, set the type tooci
. - uid string
- The unique identifier of the pack. The value can be looked up using the
spectrocloud.getPack
data source. This value is required if the pack type isspectro
and forhelm
if the chart is from a public helm registry. - values string
- The values of the pack. The values are the configuration values of the pack. The values are specified in YAML format.
- name str
- The name of the pack. The name must be unique within the cluster profile.
- manifests
Sequence[Addon
Deployment Cluster Profile Pack Manifest] - registry_
uid str - The registry UID of the pack. The registry UID is the unique identifier of the registry. This attribute is required if there is more than one registry that contains a pack with the same name.
- tag str
- The tag of the pack. The tag is the version of the pack. This attribute is required if the pack type is
spectro
orhelm
. - type str
- The type of the pack. Allowed values are
spectro
,manifest
,helm
, oroci
. The default value is spectro. If using an OCI registry for pack, set the type tooci
. - uid str
- The unique identifier of the pack. The value can be looked up using the
spectrocloud.getPack
data source. This value is required if the pack type isspectro
and forhelm
if the chart is from a public helm registry. - values str
- The values of the pack. The values are the configuration values of the pack. The values are specified in YAML format.
- name String
- The name of the pack. The name must be unique within the cluster profile.
- manifests List<Property Map>
- registry
Uid String - The registry UID of the pack. The registry UID is the unique identifier of the registry. This attribute is required if there is more than one registry that contains a pack with the same name.
- tag String
- The tag of the pack. The tag is the version of the pack. This attribute is required if the pack type is
spectro
orhelm
. - type String
- The type of the pack. Allowed values are
spectro
,manifest
,helm
, oroci
. The default value is spectro. If using an OCI registry for pack, set the type tooci
. - uid String
- The unique identifier of the pack. The value can be looked up using the
spectrocloud.getPack
data source. This value is required if the pack type isspectro
and forhelm
if the chart is from a public helm registry. - values String
- The values of the pack. The values are the configuration values of the pack. The values are specified in YAML format.
AddonDeploymentClusterProfilePackManifest, AddonDeploymentClusterProfilePackManifestArgs
AddonDeploymentTimeouts, AddonDeploymentTimeoutsArgs
Package Details
- Repository
- spectrocloud spectrocloud/terraform-provider-spectrocloud
- License
- Notes
- This Pulumi package is based on the
spectrocloud
Terraform Provider.