Documentation
¶
Index ¶
- type Application
- type ApplicationArgs
- type ApplicationArray
- type ApplicationArrayInput
- type ApplicationArrayOutput
- func (ApplicationArrayOutput) ElementType() reflect.Type
- func (o ApplicationArrayOutput) Index(i pulumi.IntInput) ApplicationOutput
- func (o ApplicationArrayOutput) ToApplicationArrayOutput() ApplicationArrayOutput
- func (o ApplicationArrayOutput) ToApplicationArrayOutputWithContext(ctx context.Context) ApplicationArrayOutput
- type ApplicationDeployment
- type ApplicationDeploymentArgs
- type ApplicationDeploymentArray
- func (ApplicationDeploymentArray) ElementType() reflect.Type
- func (i ApplicationDeploymentArray) ToApplicationDeploymentArrayOutput() ApplicationDeploymentArrayOutput
- func (i ApplicationDeploymentArray) ToApplicationDeploymentArrayOutputWithContext(ctx context.Context) ApplicationDeploymentArrayOutput
- type ApplicationDeploymentArrayInput
- type ApplicationDeploymentArrayOutput
- func (ApplicationDeploymentArrayOutput) ElementType() reflect.Type
- func (o ApplicationDeploymentArrayOutput) Index(i pulumi.IntInput) ApplicationDeploymentOutput
- func (o ApplicationDeploymentArrayOutput) ToApplicationDeploymentArrayOutput() ApplicationDeploymentArrayOutput
- func (o ApplicationDeploymentArrayOutput) ToApplicationDeploymentArrayOutputWithContext(ctx context.Context) ApplicationDeploymentArrayOutput
- type ApplicationDeploymentInput
- type ApplicationDeploymentMap
- type ApplicationDeploymentMapInput
- type ApplicationDeploymentMapOutput
- func (ApplicationDeploymentMapOutput) ElementType() reflect.Type
- func (o ApplicationDeploymentMapOutput) MapIndex(k pulumi.StringInput) ApplicationDeploymentOutput
- func (o ApplicationDeploymentMapOutput) ToApplicationDeploymentMapOutput() ApplicationDeploymentMapOutput
- func (o ApplicationDeploymentMapOutput) ToApplicationDeploymentMapOutputWithContext(ctx context.Context) ApplicationDeploymentMapOutput
- type ApplicationDeploymentOutput
- func (o ApplicationDeploymentOutput) AppId() pulumi.StringOutput
- func (ApplicationDeploymentOutput) ElementType() reflect.Type
- func (o ApplicationDeploymentOutput) GroupId() pulumi.StringOutput
- func (o ApplicationDeploymentOutput) LastPackageVersion() pulumi.StringOutput
- func (o ApplicationDeploymentOutput) PackageVersion() pulumi.StringPtrOutput
- func (o ApplicationDeploymentOutput) ToApplicationDeploymentOutput() ApplicationDeploymentOutput
- func (o ApplicationDeploymentOutput) ToApplicationDeploymentOutputWithContext(ctx context.Context) ApplicationDeploymentOutput
- func (o ApplicationDeploymentOutput) WarUrl() pulumi.StringOutput
- type ApplicationDeploymentState
- type ApplicationInput
- type ApplicationMap
- type ApplicationMapInput
- type ApplicationMapOutput
- func (ApplicationMapOutput) ElementType() reflect.Type
- func (o ApplicationMapOutput) MapIndex(k pulumi.StringInput) ApplicationOutput
- func (o ApplicationMapOutput) ToApplicationMapOutput() ApplicationMapOutput
- func (o ApplicationMapOutput) ToApplicationMapOutputWithContext(ctx context.Context) ApplicationMapOutput
- type ApplicationOutput
- func (o ApplicationOutput) ApplicationName() pulumi.StringOutput
- func (o ApplicationOutput) BuildPackId() pulumi.IntPtrOutput
- func (o ApplicationOutput) ClusterId() pulumi.StringOutput
- func (o ApplicationOutput) Descriotion() pulumi.StringPtrOutput
- func (o ApplicationOutput) EcuInfos() pulumi.StringArrayOutput
- func (ApplicationOutput) ElementType() reflect.Type
- func (o ApplicationOutput) GroupId() pulumi.StringPtrOutput
- func (o ApplicationOutput) HealthCheckUrl() pulumi.StringPtrOutput
- func (o ApplicationOutput) LogicalRegionId() pulumi.StringPtrOutput
- func (o ApplicationOutput) PackageType() pulumi.StringOutput
- func (o ApplicationOutput) PackageVersion() pulumi.StringPtrOutput
- func (o ApplicationOutput) ToApplicationOutput() ApplicationOutput
- func (o ApplicationOutput) ToApplicationOutputWithContext(ctx context.Context) ApplicationOutput
- func (o ApplicationOutput) WarUrl() pulumi.StringPtrOutput
- type ApplicationScale
- type ApplicationScaleArgs
- type ApplicationScaleArray
- type ApplicationScaleArrayInput
- type ApplicationScaleArrayOutput
- func (ApplicationScaleArrayOutput) ElementType() reflect.Type
- func (o ApplicationScaleArrayOutput) Index(i pulumi.IntInput) ApplicationScaleOutput
- func (o ApplicationScaleArrayOutput) ToApplicationScaleArrayOutput() ApplicationScaleArrayOutput
- func (o ApplicationScaleArrayOutput) ToApplicationScaleArrayOutputWithContext(ctx context.Context) ApplicationScaleArrayOutput
- type ApplicationScaleInput
- type ApplicationScaleMap
- type ApplicationScaleMapInput
- type ApplicationScaleMapOutput
- func (ApplicationScaleMapOutput) ElementType() reflect.Type
- func (o ApplicationScaleMapOutput) MapIndex(k pulumi.StringInput) ApplicationScaleOutput
- func (o ApplicationScaleMapOutput) ToApplicationScaleMapOutput() ApplicationScaleMapOutput
- func (o ApplicationScaleMapOutput) ToApplicationScaleMapOutputWithContext(ctx context.Context) ApplicationScaleMapOutput
- type ApplicationScaleOutput
- func (o ApplicationScaleOutput) AppId() pulumi.StringOutput
- func (o ApplicationScaleOutput) DeployGroup() pulumi.StringOutput
- func (o ApplicationScaleOutput) EccInfo() pulumi.StringOutput
- func (o ApplicationScaleOutput) EcuInfos() pulumi.StringArrayOutput
- func (ApplicationScaleOutput) ElementType() reflect.Type
- func (o ApplicationScaleOutput) ForceStatus() pulumi.BoolPtrOutput
- func (o ApplicationScaleOutput) ToApplicationScaleOutput() ApplicationScaleOutput
- func (o ApplicationScaleOutput) ToApplicationScaleOutputWithContext(ctx context.Context) ApplicationScaleOutput
- type ApplicationScaleState
- type ApplicationState
- type Cluster
- type ClusterArgs
- type ClusterArray
- type ClusterArrayInput
- type ClusterArrayOutput
- type ClusterInput
- type ClusterMap
- type ClusterMapInput
- type ClusterMapOutput
- type ClusterOutput
- func (o ClusterOutput) ClusterName() pulumi.StringOutput
- func (o ClusterOutput) ClusterType() pulumi.IntOutput
- func (ClusterOutput) ElementType() reflect.Type
- func (o ClusterOutput) LogicalRegionId() pulumi.StringPtrOutput
- func (o ClusterOutput) NetworkMode() pulumi.IntOutput
- func (o ClusterOutput) ToClusterOutput() ClusterOutput
- func (o ClusterOutput) ToClusterOutputWithContext(ctx context.Context) ClusterOutput
- func (o ClusterOutput) VpcId() pulumi.StringPtrOutput
- type ClusterState
- type DeployGroup
- type DeployGroupArgs
- type DeployGroupArray
- type DeployGroupArrayInput
- type DeployGroupArrayOutput
- func (DeployGroupArrayOutput) ElementType() reflect.Type
- func (o DeployGroupArrayOutput) Index(i pulumi.IntInput) DeployGroupOutput
- func (o DeployGroupArrayOutput) ToDeployGroupArrayOutput() DeployGroupArrayOutput
- func (o DeployGroupArrayOutput) ToDeployGroupArrayOutputWithContext(ctx context.Context) DeployGroupArrayOutput
- type DeployGroupInput
- type DeployGroupMap
- type DeployGroupMapInput
- type DeployGroupMapOutput
- func (DeployGroupMapOutput) ElementType() reflect.Type
- func (o DeployGroupMapOutput) MapIndex(k pulumi.StringInput) DeployGroupOutput
- func (o DeployGroupMapOutput) ToDeployGroupMapOutput() DeployGroupMapOutput
- func (o DeployGroupMapOutput) ToDeployGroupMapOutputWithContext(ctx context.Context) DeployGroupMapOutput
- type DeployGroupOutput
- func (o DeployGroupOutput) AppId() pulumi.StringOutput
- func (DeployGroupOutput) ElementType() reflect.Type
- func (o DeployGroupOutput) GroupName() pulumi.StringOutput
- func (o DeployGroupOutput) GroupType() pulumi.IntOutput
- func (o DeployGroupOutput) ToDeployGroupOutput() DeployGroupOutput
- func (o DeployGroupOutput) ToDeployGroupOutputWithContext(ctx context.Context) DeployGroupOutput
- type DeployGroupState
- type GetApplicationsApplication
- type GetApplicationsApplicationArgs
- func (GetApplicationsApplicationArgs) ElementType() reflect.Type
- func (i GetApplicationsApplicationArgs) ToGetApplicationsApplicationOutput() GetApplicationsApplicationOutput
- func (i GetApplicationsApplicationArgs) ToGetApplicationsApplicationOutputWithContext(ctx context.Context) GetApplicationsApplicationOutput
- type GetApplicationsApplicationArray
- func (GetApplicationsApplicationArray) ElementType() reflect.Type
- func (i GetApplicationsApplicationArray) ToGetApplicationsApplicationArrayOutput() GetApplicationsApplicationArrayOutput
- func (i GetApplicationsApplicationArray) ToGetApplicationsApplicationArrayOutputWithContext(ctx context.Context) GetApplicationsApplicationArrayOutput
- type GetApplicationsApplicationArrayInput
- type GetApplicationsApplicationArrayOutput
- func (GetApplicationsApplicationArrayOutput) ElementType() reflect.Type
- func (o GetApplicationsApplicationArrayOutput) Index(i pulumi.IntInput) GetApplicationsApplicationOutput
- func (o GetApplicationsApplicationArrayOutput) ToGetApplicationsApplicationArrayOutput() GetApplicationsApplicationArrayOutput
- func (o GetApplicationsApplicationArrayOutput) ToGetApplicationsApplicationArrayOutputWithContext(ctx context.Context) GetApplicationsApplicationArrayOutput
- type GetApplicationsApplicationInput
- type GetApplicationsApplicationOutput
- func (o GetApplicationsApplicationOutput) AppId() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) AppName() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) ApplicationType() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) BuildPackageId() pulumi.IntOutput
- func (o GetApplicationsApplicationOutput) ClusterId() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) ClusterType() pulumi.IntOutput
- func (GetApplicationsApplicationOutput) ElementType() reflect.Type
- func (o GetApplicationsApplicationOutput) RegionId() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) ToGetApplicationsApplicationOutput() GetApplicationsApplicationOutput
- func (o GetApplicationsApplicationOutput) ToGetApplicationsApplicationOutputWithContext(ctx context.Context) GetApplicationsApplicationOutput
- type GetApplicationsArgs
- type GetApplicationsOutputArgs
- type GetApplicationsResult
- type GetApplicationsResultOutput
- func (o GetApplicationsResultOutput) Applications() GetApplicationsApplicationArrayOutput
- func (GetApplicationsResultOutput) ElementType() reflect.Type
- func (o GetApplicationsResultOutput) Id() pulumi.StringOutput
- func (o GetApplicationsResultOutput) Ids() pulumi.StringArrayOutput
- func (o GetApplicationsResultOutput) NameRegex() pulumi.StringPtrOutput
- func (o GetApplicationsResultOutput) Names() pulumi.StringArrayOutput
- func (o GetApplicationsResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GetApplicationsResultOutput) ToGetApplicationsResultOutput() GetApplicationsResultOutput
- func (o GetApplicationsResultOutput) ToGetApplicationsResultOutputWithContext(ctx context.Context) GetApplicationsResultOutput
- type GetClustersArgs
- type GetClustersCluster
- type GetClustersClusterArgs
- type GetClustersClusterArray
- type GetClustersClusterArrayInput
- type GetClustersClusterArrayOutput
- func (GetClustersClusterArrayOutput) ElementType() reflect.Type
- func (o GetClustersClusterArrayOutput) Index(i pulumi.IntInput) GetClustersClusterOutput
- func (o GetClustersClusterArrayOutput) ToGetClustersClusterArrayOutput() GetClustersClusterArrayOutput
- func (o GetClustersClusterArrayOutput) ToGetClustersClusterArrayOutputWithContext(ctx context.Context) GetClustersClusterArrayOutput
- type GetClustersClusterInput
- type GetClustersClusterOutput
- func (o GetClustersClusterOutput) ClusterId() pulumi.StringOutput
- func (o GetClustersClusterOutput) ClusterName() pulumi.StringOutput
- func (o GetClustersClusterOutput) ClusterType() pulumi.IntOutput
- func (o GetClustersClusterOutput) Cpu() pulumi.IntOutput
- func (o GetClustersClusterOutput) CpuUsed() pulumi.IntOutput
- func (o GetClustersClusterOutput) CreateTime() pulumi.IntOutput
- func (GetClustersClusterOutput) ElementType() reflect.Type
- func (o GetClustersClusterOutput) Mem() pulumi.IntOutput
- func (o GetClustersClusterOutput) MemUsed() pulumi.IntOutput
- func (o GetClustersClusterOutput) NetworkMode() pulumi.IntOutput
- func (o GetClustersClusterOutput) NodeNum() pulumi.IntOutput
- func (o GetClustersClusterOutput) RegionId() pulumi.StringOutput
- func (o GetClustersClusterOutput) ToGetClustersClusterOutput() GetClustersClusterOutput
- func (o GetClustersClusterOutput) ToGetClustersClusterOutputWithContext(ctx context.Context) GetClustersClusterOutput
- func (o GetClustersClusterOutput) UpdateTime() pulumi.IntOutput
- func (o GetClustersClusterOutput) VpcId() pulumi.StringOutput
- type GetClustersOutputArgs
- type GetClustersResult
- type GetClustersResultOutput
- func (o GetClustersResultOutput) Clusters() GetClustersClusterArrayOutput
- func (GetClustersResultOutput) ElementType() reflect.Type
- func (o GetClustersResultOutput) Id() pulumi.StringOutput
- func (o GetClustersResultOutput) Ids() pulumi.StringArrayOutput
- func (o GetClustersResultOutput) LogicalRegionId() pulumi.StringOutput
- func (o GetClustersResultOutput) NameRegex() pulumi.StringPtrOutput
- func (o GetClustersResultOutput) Names() pulumi.StringArrayOutput
- func (o GetClustersResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GetClustersResultOutput) ToGetClustersResultOutput() GetClustersResultOutput
- func (o GetClustersResultOutput) ToGetClustersResultOutputWithContext(ctx context.Context) GetClustersResultOutput
- type GetDeployGroupsArgs
- type GetDeployGroupsGroup
- type GetDeployGroupsGroupArgs
- type GetDeployGroupsGroupArray
- type GetDeployGroupsGroupArrayInput
- type GetDeployGroupsGroupArrayOutput
- func (GetDeployGroupsGroupArrayOutput) ElementType() reflect.Type
- func (o GetDeployGroupsGroupArrayOutput) Index(i pulumi.IntInput) GetDeployGroupsGroupOutput
- func (o GetDeployGroupsGroupArrayOutput) ToGetDeployGroupsGroupArrayOutput() GetDeployGroupsGroupArrayOutput
- func (o GetDeployGroupsGroupArrayOutput) ToGetDeployGroupsGroupArrayOutputWithContext(ctx context.Context) GetDeployGroupsGroupArrayOutput
- type GetDeployGroupsGroupInput
- type GetDeployGroupsGroupOutput
- func (o GetDeployGroupsGroupOutput) AppId() pulumi.StringOutput
- func (o GetDeployGroupsGroupOutput) AppVersionId() pulumi.StringOutput
- func (o GetDeployGroupsGroupOutput) ClusterId() pulumi.StringOutput
- func (o GetDeployGroupsGroupOutput) CreateTime() pulumi.IntOutput
- func (GetDeployGroupsGroupOutput) ElementType() reflect.Type
- func (o GetDeployGroupsGroupOutput) GroupId() pulumi.StringOutput
- func (o GetDeployGroupsGroupOutput) GroupName() pulumi.StringOutput
- func (o GetDeployGroupsGroupOutput) GroupType() pulumi.IntOutput
- func (o GetDeployGroupsGroupOutput) PackageVersionId() pulumi.StringOutput
- func (o GetDeployGroupsGroupOutput) ToGetDeployGroupsGroupOutput() GetDeployGroupsGroupOutput
- func (o GetDeployGroupsGroupOutput) ToGetDeployGroupsGroupOutputWithContext(ctx context.Context) GetDeployGroupsGroupOutput
- func (o GetDeployGroupsGroupOutput) UpdateTime() pulumi.IntOutput
- type GetDeployGroupsOutputArgs
- type GetDeployGroupsResult
- type GetDeployGroupsResultOutput
- func (o GetDeployGroupsResultOutput) AppId() pulumi.StringOutput
- func (GetDeployGroupsResultOutput) ElementType() reflect.Type
- func (o GetDeployGroupsResultOutput) Groups() GetDeployGroupsGroupArrayOutput
- func (o GetDeployGroupsResultOutput) Id() pulumi.StringOutput
- func (o GetDeployGroupsResultOutput) NameRegex() pulumi.StringPtrOutput
- func (o GetDeployGroupsResultOutput) Names() pulumi.StringArrayOutput
- func (o GetDeployGroupsResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GetDeployGroupsResultOutput) ToGetDeployGroupsResultOutput() GetDeployGroupsResultOutput
- func (o GetDeployGroupsResultOutput) ToGetDeployGroupsResultOutputWithContext(ctx context.Context) GetDeployGroupsResultOutput
- type GetNamespacesArgs
- type GetNamespacesNamespace
- type GetNamespacesNamespaceArgs
- type GetNamespacesNamespaceArray
- func (GetNamespacesNamespaceArray) ElementType() reflect.Type
- func (i GetNamespacesNamespaceArray) ToGetNamespacesNamespaceArrayOutput() GetNamespacesNamespaceArrayOutput
- func (i GetNamespacesNamespaceArray) ToGetNamespacesNamespaceArrayOutputWithContext(ctx context.Context) GetNamespacesNamespaceArrayOutput
- type GetNamespacesNamespaceArrayInput
- type GetNamespacesNamespaceArrayOutput
- func (GetNamespacesNamespaceArrayOutput) ElementType() reflect.Type
- func (o GetNamespacesNamespaceArrayOutput) Index(i pulumi.IntInput) GetNamespacesNamespaceOutput
- func (o GetNamespacesNamespaceArrayOutput) ToGetNamespacesNamespaceArrayOutput() GetNamespacesNamespaceArrayOutput
- func (o GetNamespacesNamespaceArrayOutput) ToGetNamespacesNamespaceArrayOutputWithContext(ctx context.Context) GetNamespacesNamespaceArrayOutput
- type GetNamespacesNamespaceInput
- type GetNamespacesNamespaceOutput
- func (o GetNamespacesNamespaceOutput) BelongRegion() pulumi.StringOutput
- func (o GetNamespacesNamespaceOutput) DebugEnable() pulumi.BoolOutput
- func (o GetNamespacesNamespaceOutput) Description() pulumi.StringOutput
- func (GetNamespacesNamespaceOutput) ElementType() reflect.Type
- func (o GetNamespacesNamespaceOutput) Id() pulumi.StringOutput
- func (o GetNamespacesNamespaceOutput) NamespaceId() pulumi.StringOutput
- func (o GetNamespacesNamespaceOutput) NamespaceLogicalId() pulumi.StringOutput
- func (o GetNamespacesNamespaceOutput) NamespaceName() pulumi.StringOutput
- func (o GetNamespacesNamespaceOutput) ToGetNamespacesNamespaceOutput() GetNamespacesNamespaceOutput
- func (o GetNamespacesNamespaceOutput) ToGetNamespacesNamespaceOutputWithContext(ctx context.Context) GetNamespacesNamespaceOutput
- func (o GetNamespacesNamespaceOutput) UserId() pulumi.StringOutput
- type GetNamespacesOutputArgs
- type GetNamespacesResult
- type GetNamespacesResultOutput
- func (GetNamespacesResultOutput) ElementType() reflect.Type
- func (o GetNamespacesResultOutput) Id() pulumi.StringOutput
- func (o GetNamespacesResultOutput) Ids() pulumi.StringArrayOutput
- func (o GetNamespacesResultOutput) NameRegex() pulumi.StringPtrOutput
- func (o GetNamespacesResultOutput) Names() pulumi.StringArrayOutput
- func (o GetNamespacesResultOutput) Namespaces() GetNamespacesNamespaceArrayOutput
- func (o GetNamespacesResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GetNamespacesResultOutput) ToGetNamespacesResultOutput() GetNamespacesResultOutput
- func (o GetNamespacesResultOutput) ToGetNamespacesResultOutputWithContext(ctx context.Context) GetNamespacesResultOutput
- type GetServiceArgs
- type GetServiceOutputArgs
- type GetServiceResult
- type GetServiceResultOutput
- func (GetServiceResultOutput) ElementType() reflect.Type
- func (o GetServiceResultOutput) Enable() pulumi.StringPtrOutput
- func (o GetServiceResultOutput) Id() pulumi.StringOutput
- func (o GetServiceResultOutput) Status() pulumi.StringOutput
- func (o GetServiceResultOutput) ToGetServiceResultOutput() GetServiceResultOutput
- func (o GetServiceResultOutput) ToGetServiceResultOutputWithContext(ctx context.Context) GetServiceResultOutput
- type InstanceClusterAttachment
- type InstanceClusterAttachmentArgs
- type InstanceClusterAttachmentArray
- func (InstanceClusterAttachmentArray) ElementType() reflect.Type
- func (i InstanceClusterAttachmentArray) ToInstanceClusterAttachmentArrayOutput() InstanceClusterAttachmentArrayOutput
- func (i InstanceClusterAttachmentArray) ToInstanceClusterAttachmentArrayOutputWithContext(ctx context.Context) InstanceClusterAttachmentArrayOutput
- type InstanceClusterAttachmentArrayInput
- type InstanceClusterAttachmentArrayOutput
- func (InstanceClusterAttachmentArrayOutput) ElementType() reflect.Type
- func (o InstanceClusterAttachmentArrayOutput) Index(i pulumi.IntInput) InstanceClusterAttachmentOutput
- func (o InstanceClusterAttachmentArrayOutput) ToInstanceClusterAttachmentArrayOutput() InstanceClusterAttachmentArrayOutput
- func (o InstanceClusterAttachmentArrayOutput) ToInstanceClusterAttachmentArrayOutputWithContext(ctx context.Context) InstanceClusterAttachmentArrayOutput
- type InstanceClusterAttachmentInput
- type InstanceClusterAttachmentMap
- func (InstanceClusterAttachmentMap) ElementType() reflect.Type
- func (i InstanceClusterAttachmentMap) ToInstanceClusterAttachmentMapOutput() InstanceClusterAttachmentMapOutput
- func (i InstanceClusterAttachmentMap) ToInstanceClusterAttachmentMapOutputWithContext(ctx context.Context) InstanceClusterAttachmentMapOutput
- type InstanceClusterAttachmentMapInput
- type InstanceClusterAttachmentMapOutput
- func (InstanceClusterAttachmentMapOutput) ElementType() reflect.Type
- func (o InstanceClusterAttachmentMapOutput) MapIndex(k pulumi.StringInput) InstanceClusterAttachmentOutput
- func (o InstanceClusterAttachmentMapOutput) ToInstanceClusterAttachmentMapOutput() InstanceClusterAttachmentMapOutput
- func (o InstanceClusterAttachmentMapOutput) ToInstanceClusterAttachmentMapOutputWithContext(ctx context.Context) InstanceClusterAttachmentMapOutput
- type InstanceClusterAttachmentOutput
- func (o InstanceClusterAttachmentOutput) ClusterId() pulumi.StringOutput
- func (o InstanceClusterAttachmentOutput) ClusterMemberIds() pulumi.StringMapOutput
- func (o InstanceClusterAttachmentOutput) EcuMap() pulumi.StringMapOutput
- func (InstanceClusterAttachmentOutput) ElementType() reflect.Type
- func (o InstanceClusterAttachmentOutput) InstanceIds() pulumi.StringArrayOutput
- func (o InstanceClusterAttachmentOutput) StatusMap() pulumi.IntMapOutput
- func (o InstanceClusterAttachmentOutput) ToInstanceClusterAttachmentOutput() InstanceClusterAttachmentOutput
- func (o InstanceClusterAttachmentOutput) ToInstanceClusterAttachmentOutputWithContext(ctx context.Context) InstanceClusterAttachmentOutput
- type InstanceClusterAttachmentState
- type K8sApplication
- type K8sApplicationArgs
- type K8sApplicationArray
- type K8sApplicationArrayInput
- type K8sApplicationArrayOutput
- func (K8sApplicationArrayOutput) ElementType() reflect.Type
- func (o K8sApplicationArrayOutput) Index(i pulumi.IntInput) K8sApplicationOutput
- func (o K8sApplicationArrayOutput) ToK8sApplicationArrayOutput() K8sApplicationArrayOutput
- func (o K8sApplicationArrayOutput) ToK8sApplicationArrayOutputWithContext(ctx context.Context) K8sApplicationArrayOutput
- type K8sApplicationInput
- type K8sApplicationMap
- type K8sApplicationMapInput
- type K8sApplicationMapOutput
- func (K8sApplicationMapOutput) ElementType() reflect.Type
- func (o K8sApplicationMapOutput) MapIndex(k pulumi.StringInput) K8sApplicationOutput
- func (o K8sApplicationMapOutput) ToK8sApplicationMapOutput() K8sApplicationMapOutput
- func (o K8sApplicationMapOutput) ToK8sApplicationMapOutputWithContext(ctx context.Context) K8sApplicationMapOutput
- type K8sApplicationOutput
- func (o K8sApplicationOutput) ApplicationDescriotion() pulumi.StringPtrOutput
- func (o K8sApplicationOutput) ApplicationName() pulumi.StringOutput
- func (o K8sApplicationOutput) ClusterId() pulumi.StringOutput
- func (o K8sApplicationOutput) Command() pulumi.StringPtrOutput
- func (o K8sApplicationOutput) CommandArgs() pulumi.StringArrayOutput
- func (o K8sApplicationOutput) EdasContainerVersion() pulumi.StringPtrOutput
- func (K8sApplicationOutput) ElementType() reflect.Type
- func (o K8sApplicationOutput) Envs() pulumi.StringMapOutput
- func (o K8sApplicationOutput) ImageUrl() pulumi.StringPtrOutput
- func (o K8sApplicationOutput) InternetSlbId() pulumi.StringPtrOutputdeprecated
- func (o K8sApplicationOutput) InternetSlbPort() pulumi.IntPtrOutputdeprecated
- func (o K8sApplicationOutput) InternetSlbProtocol() pulumi.StringPtrOutputdeprecated
- func (o K8sApplicationOutput) InternetTargetPort() pulumi.IntPtrOutputdeprecated
- func (o K8sApplicationOutput) Jdk() pulumi.StringPtrOutput
- func (o K8sApplicationOutput) LimitMCpu() pulumi.IntPtrOutput
- func (o K8sApplicationOutput) LimitMem() pulumi.IntPtrOutput
- func (o K8sApplicationOutput) Liveness() pulumi.StringPtrOutput
- func (o K8sApplicationOutput) LocalVolume() pulumi.StringPtrOutput
- func (o K8sApplicationOutput) LogicalRegionId() pulumi.StringPtrOutput
- func (o K8sApplicationOutput) MountDescs() pulumi.StringPtrOutput
- func (o K8sApplicationOutput) Namespace() pulumi.StringPtrOutput
- func (o K8sApplicationOutput) NasId() pulumi.StringPtrOutput
- func (o K8sApplicationOutput) PackageType() pulumi.StringPtrOutput
- func (o K8sApplicationOutput) PackageUrl() pulumi.StringPtrOutput
- func (o K8sApplicationOutput) PackageVersion() pulumi.StringOutput
- func (o K8sApplicationOutput) PostStart() pulumi.StringPtrOutput
- func (o K8sApplicationOutput) PreStop() pulumi.StringPtrOutput
- func (o K8sApplicationOutput) Readiness() pulumi.StringPtrOutput
- func (o K8sApplicationOutput) Replicas() pulumi.IntPtrOutput
- func (o K8sApplicationOutput) RequestsMCpu() pulumi.IntPtrOutput
- func (o K8sApplicationOutput) RequestsMem() pulumi.IntPtrOutput
- func (o K8sApplicationOutput) ToK8sApplicationOutput() K8sApplicationOutput
- func (o K8sApplicationOutput) ToK8sApplicationOutputWithContext(ctx context.Context) K8sApplicationOutput
- func (o K8sApplicationOutput) WebContainer() pulumi.StringPtrOutput
- type K8sApplicationState
- type K8sCluster
- type K8sClusterArgs
- type K8sClusterArray
- type K8sClusterArrayInput
- type K8sClusterArrayOutput
- func (K8sClusterArrayOutput) ElementType() reflect.Type
- func (o K8sClusterArrayOutput) Index(i pulumi.IntInput) K8sClusterOutput
- func (o K8sClusterArrayOutput) ToK8sClusterArrayOutput() K8sClusterArrayOutput
- func (o K8sClusterArrayOutput) ToK8sClusterArrayOutputWithContext(ctx context.Context) K8sClusterArrayOutput
- type K8sClusterInput
- type K8sClusterMap
- type K8sClusterMapInput
- type K8sClusterMapOutput
- func (K8sClusterMapOutput) ElementType() reflect.Type
- func (o K8sClusterMapOutput) MapIndex(k pulumi.StringInput) K8sClusterOutput
- func (o K8sClusterMapOutput) ToK8sClusterMapOutput() K8sClusterMapOutput
- func (o K8sClusterMapOutput) ToK8sClusterMapOutputWithContext(ctx context.Context) K8sClusterMapOutput
- type K8sClusterOutput
- func (o K8sClusterOutput) ClusterImportStatus() pulumi.IntOutput
- func (o K8sClusterOutput) ClusterName() pulumi.StringOutput
- func (o K8sClusterOutput) ClusterType() pulumi.IntOutput
- func (o K8sClusterOutput) CsClusterId() pulumi.StringOutput
- func (K8sClusterOutput) ElementType() reflect.Type
- func (o K8sClusterOutput) NamespaceId() pulumi.StringPtrOutput
- func (o K8sClusterOutput) NetworkMode() pulumi.IntOutput
- func (o K8sClusterOutput) ToK8sClusterOutput() K8sClusterOutput
- func (o K8sClusterOutput) ToK8sClusterOutputWithContext(ctx context.Context) K8sClusterOutput
- func (o K8sClusterOutput) VpcId() pulumi.StringOutput
- type K8sClusterState
- type K8sSlbAttachment
- type K8sSlbAttachmentArgs
- type K8sSlbAttachmentArray
- type K8sSlbAttachmentArrayInput
- type K8sSlbAttachmentArrayOutput
- func (K8sSlbAttachmentArrayOutput) ElementType() reflect.Type
- func (o K8sSlbAttachmentArrayOutput) Index(i pulumi.IntInput) K8sSlbAttachmentOutput
- func (o K8sSlbAttachmentArrayOutput) ToK8sSlbAttachmentArrayOutput() K8sSlbAttachmentArrayOutput
- func (o K8sSlbAttachmentArrayOutput) ToK8sSlbAttachmentArrayOutputWithContext(ctx context.Context) K8sSlbAttachmentArrayOutput
- type K8sSlbAttachmentInput
- type K8sSlbAttachmentMap
- type K8sSlbAttachmentMapInput
- type K8sSlbAttachmentMapOutput
- func (K8sSlbAttachmentMapOutput) ElementType() reflect.Type
- func (o K8sSlbAttachmentMapOutput) MapIndex(k pulumi.StringInput) K8sSlbAttachmentOutput
- func (o K8sSlbAttachmentMapOutput) ToK8sSlbAttachmentMapOutput() K8sSlbAttachmentMapOutput
- func (o K8sSlbAttachmentMapOutput) ToK8sSlbAttachmentMapOutputWithContext(ctx context.Context) K8sSlbAttachmentMapOutput
- type K8sSlbAttachmentOutput
- func (o K8sSlbAttachmentOutput) AppId() pulumi.StringOutput
- func (K8sSlbAttachmentOutput) ElementType() reflect.Type
- func (o K8sSlbAttachmentOutput) SlbConfigs() K8sSlbAttachmentSlbConfigArrayOutput
- func (o K8sSlbAttachmentOutput) ToK8sSlbAttachmentOutput() K8sSlbAttachmentOutput
- func (o K8sSlbAttachmentOutput) ToK8sSlbAttachmentOutputWithContext(ctx context.Context) K8sSlbAttachmentOutput
- type K8sSlbAttachmentSlbConfig
- type K8sSlbAttachmentSlbConfigArgs
- func (K8sSlbAttachmentSlbConfigArgs) ElementType() reflect.Type
- func (i K8sSlbAttachmentSlbConfigArgs) ToK8sSlbAttachmentSlbConfigOutput() K8sSlbAttachmentSlbConfigOutput
- func (i K8sSlbAttachmentSlbConfigArgs) ToK8sSlbAttachmentSlbConfigOutputWithContext(ctx context.Context) K8sSlbAttachmentSlbConfigOutput
- type K8sSlbAttachmentSlbConfigArray
- func (K8sSlbAttachmentSlbConfigArray) ElementType() reflect.Type
- func (i K8sSlbAttachmentSlbConfigArray) ToK8sSlbAttachmentSlbConfigArrayOutput() K8sSlbAttachmentSlbConfigArrayOutput
- func (i K8sSlbAttachmentSlbConfigArray) ToK8sSlbAttachmentSlbConfigArrayOutputWithContext(ctx context.Context) K8sSlbAttachmentSlbConfigArrayOutput
- type K8sSlbAttachmentSlbConfigArrayInput
- type K8sSlbAttachmentSlbConfigArrayOutput
- func (K8sSlbAttachmentSlbConfigArrayOutput) ElementType() reflect.Type
- func (o K8sSlbAttachmentSlbConfigArrayOutput) Index(i pulumi.IntInput) K8sSlbAttachmentSlbConfigOutput
- func (o K8sSlbAttachmentSlbConfigArrayOutput) ToK8sSlbAttachmentSlbConfigArrayOutput() K8sSlbAttachmentSlbConfigArrayOutput
- func (o K8sSlbAttachmentSlbConfigArrayOutput) ToK8sSlbAttachmentSlbConfigArrayOutputWithContext(ctx context.Context) K8sSlbAttachmentSlbConfigArrayOutput
- type K8sSlbAttachmentSlbConfigInput
- type K8sSlbAttachmentSlbConfigOutput
- func (K8sSlbAttachmentSlbConfigOutput) ElementType() reflect.Type
- func (o K8sSlbAttachmentSlbConfigOutput) Name() pulumi.StringPtrOutput
- func (o K8sSlbAttachmentSlbConfigOutput) PortMappings() K8sSlbAttachmentSlbConfigPortMappingArrayOutput
- func (o K8sSlbAttachmentSlbConfigOutput) Scheduler() pulumi.StringOutput
- func (o K8sSlbAttachmentSlbConfigOutput) SlbId() pulumi.StringPtrOutput
- func (o K8sSlbAttachmentSlbConfigOutput) Specification() pulumi.StringPtrOutput
- func (o K8sSlbAttachmentSlbConfigOutput) ToK8sSlbAttachmentSlbConfigOutput() K8sSlbAttachmentSlbConfigOutput
- func (o K8sSlbAttachmentSlbConfigOutput) ToK8sSlbAttachmentSlbConfigOutputWithContext(ctx context.Context) K8sSlbAttachmentSlbConfigOutput
- func (o K8sSlbAttachmentSlbConfigOutput) Type() pulumi.StringOutput
- type K8sSlbAttachmentSlbConfigPortMapping
- type K8sSlbAttachmentSlbConfigPortMappingArgs
- func (K8sSlbAttachmentSlbConfigPortMappingArgs) ElementType() reflect.Type
- func (i K8sSlbAttachmentSlbConfigPortMappingArgs) ToK8sSlbAttachmentSlbConfigPortMappingOutput() K8sSlbAttachmentSlbConfigPortMappingOutput
- func (i K8sSlbAttachmentSlbConfigPortMappingArgs) ToK8sSlbAttachmentSlbConfigPortMappingOutputWithContext(ctx context.Context) K8sSlbAttachmentSlbConfigPortMappingOutput
- type K8sSlbAttachmentSlbConfigPortMappingArray
- func (K8sSlbAttachmentSlbConfigPortMappingArray) ElementType() reflect.Type
- func (i K8sSlbAttachmentSlbConfigPortMappingArray) ToK8sSlbAttachmentSlbConfigPortMappingArrayOutput() K8sSlbAttachmentSlbConfigPortMappingArrayOutput
- func (i K8sSlbAttachmentSlbConfigPortMappingArray) ToK8sSlbAttachmentSlbConfigPortMappingArrayOutputWithContext(ctx context.Context) K8sSlbAttachmentSlbConfigPortMappingArrayOutput
- type K8sSlbAttachmentSlbConfigPortMappingArrayInput
- type K8sSlbAttachmentSlbConfigPortMappingArrayOutput
- func (K8sSlbAttachmentSlbConfigPortMappingArrayOutput) ElementType() reflect.Type
- func (o K8sSlbAttachmentSlbConfigPortMappingArrayOutput) Index(i pulumi.IntInput) K8sSlbAttachmentSlbConfigPortMappingOutput
- func (o K8sSlbAttachmentSlbConfigPortMappingArrayOutput) ToK8sSlbAttachmentSlbConfigPortMappingArrayOutput() K8sSlbAttachmentSlbConfigPortMappingArrayOutput
- func (o K8sSlbAttachmentSlbConfigPortMappingArrayOutput) ToK8sSlbAttachmentSlbConfigPortMappingArrayOutputWithContext(ctx context.Context) K8sSlbAttachmentSlbConfigPortMappingArrayOutput
- type K8sSlbAttachmentSlbConfigPortMappingInput
- type K8sSlbAttachmentSlbConfigPortMappingOutput
- func (o K8sSlbAttachmentSlbConfigPortMappingOutput) CertId() pulumi.StringPtrOutput
- func (K8sSlbAttachmentSlbConfigPortMappingOutput) ElementType() reflect.Type
- func (o K8sSlbAttachmentSlbConfigPortMappingOutput) LoadbalancerProtocol() pulumi.StringOutput
- func (o K8sSlbAttachmentSlbConfigPortMappingOutput) ServicePort() K8sSlbAttachmentSlbConfigPortMappingServicePortOutput
- func (o K8sSlbAttachmentSlbConfigPortMappingOutput) ToK8sSlbAttachmentSlbConfigPortMappingOutput() K8sSlbAttachmentSlbConfigPortMappingOutput
- func (o K8sSlbAttachmentSlbConfigPortMappingOutput) ToK8sSlbAttachmentSlbConfigPortMappingOutputWithContext(ctx context.Context) K8sSlbAttachmentSlbConfigPortMappingOutput
- type K8sSlbAttachmentSlbConfigPortMappingServicePort
- type K8sSlbAttachmentSlbConfigPortMappingServicePortArgs
- func (K8sSlbAttachmentSlbConfigPortMappingServicePortArgs) ElementType() reflect.Type
- func (i K8sSlbAttachmentSlbConfigPortMappingServicePortArgs) ToK8sSlbAttachmentSlbConfigPortMappingServicePortOutput() K8sSlbAttachmentSlbConfigPortMappingServicePortOutput
- func (i K8sSlbAttachmentSlbConfigPortMappingServicePortArgs) ToK8sSlbAttachmentSlbConfigPortMappingServicePortOutputWithContext(ctx context.Context) K8sSlbAttachmentSlbConfigPortMappingServicePortOutput
- type K8sSlbAttachmentSlbConfigPortMappingServicePortInput
- type K8sSlbAttachmentSlbConfigPortMappingServicePortOutput
- func (K8sSlbAttachmentSlbConfigPortMappingServicePortOutput) ElementType() reflect.Type
- func (o K8sSlbAttachmentSlbConfigPortMappingServicePortOutput) Port() pulumi.IntOutput
- func (o K8sSlbAttachmentSlbConfigPortMappingServicePortOutput) Protocol() pulumi.StringOutput
- func (o K8sSlbAttachmentSlbConfigPortMappingServicePortOutput) TargetPort() pulumi.IntOutput
- func (o K8sSlbAttachmentSlbConfigPortMappingServicePortOutput) ToK8sSlbAttachmentSlbConfigPortMappingServicePortOutput() K8sSlbAttachmentSlbConfigPortMappingServicePortOutput
- func (o K8sSlbAttachmentSlbConfigPortMappingServicePortOutput) ToK8sSlbAttachmentSlbConfigPortMappingServicePortOutputWithContext(ctx context.Context) K8sSlbAttachmentSlbConfigPortMappingServicePortOutput
- type K8sSlbAttachmentState
- type Namespace
- type NamespaceArgs
- type NamespaceArray
- type NamespaceArrayInput
- type NamespaceArrayOutput
- func (NamespaceArrayOutput) ElementType() reflect.Type
- func (o NamespaceArrayOutput) Index(i pulumi.IntInput) NamespaceOutput
- func (o NamespaceArrayOutput) ToNamespaceArrayOutput() NamespaceArrayOutput
- func (o NamespaceArrayOutput) ToNamespaceArrayOutputWithContext(ctx context.Context) NamespaceArrayOutput
- type NamespaceInput
- type NamespaceMap
- type NamespaceMapInput
- type NamespaceMapOutput
- type NamespaceOutput
- func (o NamespaceOutput) DebugEnable() pulumi.BoolOutput
- func (o NamespaceOutput) Description() pulumi.StringPtrOutput
- func (NamespaceOutput) ElementType() reflect.Type
- func (o NamespaceOutput) NamespaceLogicalId() pulumi.StringOutput
- func (o NamespaceOutput) NamespaceName() pulumi.StringOutput
- func (o NamespaceOutput) ToNamespaceOutput() NamespaceOutput
- func (o NamespaceOutput) ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput
- type NamespaceState
- type SlbAttachment
- type SlbAttachmentArgs
- type SlbAttachmentArray
- type SlbAttachmentArrayInput
- type SlbAttachmentArrayOutput
- func (SlbAttachmentArrayOutput) ElementType() reflect.Type
- func (o SlbAttachmentArrayOutput) Index(i pulumi.IntInput) SlbAttachmentOutput
- func (o SlbAttachmentArrayOutput) ToSlbAttachmentArrayOutput() SlbAttachmentArrayOutput
- func (o SlbAttachmentArrayOutput) ToSlbAttachmentArrayOutputWithContext(ctx context.Context) SlbAttachmentArrayOutput
- type SlbAttachmentInput
- type SlbAttachmentMap
- type SlbAttachmentMapInput
- type SlbAttachmentMapOutput
- func (SlbAttachmentMapOutput) ElementType() reflect.Type
- func (o SlbAttachmentMapOutput) MapIndex(k pulumi.StringInput) SlbAttachmentOutput
- func (o SlbAttachmentMapOutput) ToSlbAttachmentMapOutput() SlbAttachmentMapOutput
- func (o SlbAttachmentMapOutput) ToSlbAttachmentMapOutputWithContext(ctx context.Context) SlbAttachmentMapOutput
- type SlbAttachmentOutput
- func (o SlbAttachmentOutput) AppId() pulumi.StringOutput
- func (SlbAttachmentOutput) ElementType() reflect.Type
- func (o SlbAttachmentOutput) ListenerPort() pulumi.IntPtrOutput
- func (o SlbAttachmentOutput) SlbId() pulumi.StringOutput
- func (o SlbAttachmentOutput) SlbIp() pulumi.StringOutput
- func (o SlbAttachmentOutput) SlbStatus() pulumi.StringOutput
- func (o SlbAttachmentOutput) ToSlbAttachmentOutput() SlbAttachmentOutput
- func (o SlbAttachmentOutput) ToSlbAttachmentOutputWithContext(ctx context.Context) SlbAttachmentOutput
- func (o SlbAttachmentOutput) Type() pulumi.StringOutput
- func (o SlbAttachmentOutput) VserverGroupId() pulumi.StringPtrOutput
- func (o SlbAttachmentOutput) VswitchId() pulumi.StringOutput
- type SlbAttachmentState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { pulumi.CustomResourceState // Name of your EDAS application. Only letters '-' '_' and numbers are allowed. The length cannot exceed 36 characters. ApplicationName pulumi.StringOutput `pulumi:"applicationName"` // The package ID of Enterprise Distributed Application Service (EDAS) Container, which can be retrieved by calling container version list interface ListBuildPack or the "Pack ID" column in container version list. When creating High-speed Service Framework (HSF) application, this parameter is required. BuildPackId pulumi.IntPtrOutput `pulumi:"buildPackId"` // The ID of the cluster that you want to create the application. The default cluster will be used if you do not specify this parameter. ClusterId pulumi.StringOutput `pulumi:"clusterId"` // The description of the application that you want to create. Descriotion pulumi.StringPtrOutput `pulumi:"descriotion"` // The ID of the Elastic Compute Unit (ECU) where you want to deploy the application. Type: List. EcuInfos pulumi.StringArrayOutput `pulumi:"ecuInfos"` // The ID of the instance group where the application is going to be deployed. Set this parameter to all if you want to deploy the application to all groups. GroupId pulumi.StringPtrOutput `pulumi:"groupId"` // The URL for health checking of the application. HealthCheckUrl pulumi.StringPtrOutput `pulumi:"healthCheckUrl"` // The ID of the namespace where you want to create the application. You can call the ListUserDefineRegion operation to query the namespace ID. LogicalRegionId pulumi.StringPtrOutput `pulumi:"logicalRegionId"` // The type of the package for the deployment of the application that you want to create. The valid values are: WAR and JAR. We strongly recommend you to set this parameter when creating the application. PackageType pulumi.StringOutput `pulumi:"packageType"` // The version of the application that you want to deploy. It must be unique for every application. The length cannot exceed 64 characters. We recommended you to use a timestamp. PackageVersion pulumi.StringPtrOutput `pulumi:"packageVersion"` // The address to store the uploaded web application (WAR) package for application deployment. This parameter is required when the deployType parameter is set as url. WarUrl pulumi.StringPtrOutput `pulumi:"warUrl"` }
Creates an EDAS ecs application on EDAS, see [What is EDAS Application](https://www.alibabacloud.com/help/en/edas/developer-reference/api-edas-2017-08-01-insertapplication). The application will be deployed when `groupId` and `warUrl` are given.
> **NOTE:** Available since v1.82.0.
## Example Usage
Basic Usage ¶
```go package main
import (
"fmt" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/edas" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc" "github.com/pulumi/pulumi-random/sdk/v4/go/random" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") name := "tf-example" if param := cfg.Get("name"); param != "" { name = param } defaultRandomInteger, err := random.NewRandomInteger(ctx, "defaultRandomInteger", &random.RandomIntegerArgs{ Min: pulumi.Int(10000), Max: pulumi.Int(99999), }) if err != nil { return err } defaultRegions, err := alicloud.GetRegions(ctx, &alicloud.GetRegionsArgs{ Current: pulumi.BoolRef(true), }, nil) if err != nil { return err } defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{ VpcName: defaultRandomInteger.Result.ApplyT(func(result int) (string, error) { return fmt.Sprintf("%v-%v", name, result), nil }).(pulumi.StringOutput), CidrBlock: pulumi.String("10.4.0.0/16"), }) if err != nil { return err } defaultCluster, err := edas.NewCluster(ctx, "defaultCluster", &edas.ClusterArgs{ ClusterName: defaultRandomInteger.Result.ApplyT(func(result int) (string, error) { return fmt.Sprintf("%v-%v", name, result), nil }).(pulumi.StringOutput), ClusterType: pulumi.Int(2), NetworkMode: pulumi.Int(2), LogicalRegionId: *pulumi.String(defaultRegions.Regions[0].Id), VpcId: defaultNetwork.ID(), }) if err != nil { return err } _, err = edas.NewApplication(ctx, "defaultApplication", &edas.ApplicationArgs{ ApplicationName: defaultRandomInteger.Result.ApplyT(func(result int) (string, error) { return fmt.Sprintf("%v-%v", name, result), nil }).(pulumi.StringOutput), ClusterId: defaultCluster.ID(), PackageType: pulumi.String("JAR"), }) if err != nil { return err } return nil }) }
```
## Import
EDAS application can be imported using the id, e.g.
```sh $ pulumi import alicloud:edas/application:Application app app_Id ```
func GetApplication ¶
func GetApplication(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ApplicationState, opts ...pulumi.ResourceOption) (*Application, error)
GetApplication gets an existing Application resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewApplication ¶
func NewApplication(ctx *pulumi.Context, name string, args *ApplicationArgs, opts ...pulumi.ResourceOption) (*Application, error)
NewApplication registers a new resource with the given unique name, arguments, and options.
func (*Application) ElementType ¶
func (*Application) ElementType() reflect.Type
func (*Application) ToApplicationOutput ¶
func (i *Application) ToApplicationOutput() ApplicationOutput
func (*Application) ToApplicationOutputWithContext ¶
func (i *Application) ToApplicationOutputWithContext(ctx context.Context) ApplicationOutput
type ApplicationArgs ¶
type ApplicationArgs struct { // Name of your EDAS application. Only letters '-' '_' and numbers are allowed. The length cannot exceed 36 characters. ApplicationName pulumi.StringInput // The package ID of Enterprise Distributed Application Service (EDAS) Container, which can be retrieved by calling container version list interface ListBuildPack or the "Pack ID" column in container version list. When creating High-speed Service Framework (HSF) application, this parameter is required. BuildPackId pulumi.IntPtrInput // The ID of the cluster that you want to create the application. The default cluster will be used if you do not specify this parameter. ClusterId pulumi.StringInput // The description of the application that you want to create. Descriotion pulumi.StringPtrInput // The ID of the Elastic Compute Unit (ECU) where you want to deploy the application. Type: List. EcuInfos pulumi.StringArrayInput // The ID of the instance group where the application is going to be deployed. Set this parameter to all if you want to deploy the application to all groups. GroupId pulumi.StringPtrInput // The URL for health checking of the application. HealthCheckUrl pulumi.StringPtrInput // The ID of the namespace where you want to create the application. You can call the ListUserDefineRegion operation to query the namespace ID. LogicalRegionId pulumi.StringPtrInput // The type of the package for the deployment of the application that you want to create. The valid values are: WAR and JAR. We strongly recommend you to set this parameter when creating the application. PackageType pulumi.StringInput // The version of the application that you want to deploy. It must be unique for every application. The length cannot exceed 64 characters. We recommended you to use a timestamp. PackageVersion pulumi.StringPtrInput // The address to store the uploaded web application (WAR) package for application deployment. This parameter is required when the deployType parameter is set as url. WarUrl pulumi.StringPtrInput }
The set of arguments for constructing a Application resource.
func (ApplicationArgs) ElementType ¶
func (ApplicationArgs) ElementType() reflect.Type
type ApplicationArray ¶
type ApplicationArray []ApplicationInput
func (ApplicationArray) ElementType ¶
func (ApplicationArray) ElementType() reflect.Type
func (ApplicationArray) ToApplicationArrayOutput ¶
func (i ApplicationArray) ToApplicationArrayOutput() ApplicationArrayOutput
func (ApplicationArray) ToApplicationArrayOutputWithContext ¶
func (i ApplicationArray) ToApplicationArrayOutputWithContext(ctx context.Context) ApplicationArrayOutput
type ApplicationArrayInput ¶
type ApplicationArrayInput interface { pulumi.Input ToApplicationArrayOutput() ApplicationArrayOutput ToApplicationArrayOutputWithContext(context.Context) ApplicationArrayOutput }
ApplicationArrayInput is an input type that accepts ApplicationArray and ApplicationArrayOutput values. You can construct a concrete instance of `ApplicationArrayInput` via:
ApplicationArray{ ApplicationArgs{...} }
type ApplicationArrayOutput ¶
type ApplicationArrayOutput struct{ *pulumi.OutputState }
func (ApplicationArrayOutput) ElementType ¶
func (ApplicationArrayOutput) ElementType() reflect.Type
func (ApplicationArrayOutput) Index ¶
func (o ApplicationArrayOutput) Index(i pulumi.IntInput) ApplicationOutput
func (ApplicationArrayOutput) ToApplicationArrayOutput ¶
func (o ApplicationArrayOutput) ToApplicationArrayOutput() ApplicationArrayOutput
func (ApplicationArrayOutput) ToApplicationArrayOutputWithContext ¶
func (o ApplicationArrayOutput) ToApplicationArrayOutputWithContext(ctx context.Context) ApplicationArrayOutput
type ApplicationDeployment ¶
type ApplicationDeployment struct { pulumi.CustomResourceState // The ID of the application that you want to deploy. AppId pulumi.StringOutput `pulumi:"appId"` // The ID of the instance group where the application is going to be deployed. Set this parameter to all if you want to deploy the application to all groups. GroupId pulumi.StringOutput `pulumi:"groupId"` // Last package version deployed. LastPackageVersion pulumi.StringOutput `pulumi:"lastPackageVersion"` // The version of the application that you want to deploy. It must be unique for every application. The length cannot exceed 64 characters. We recommended you to use a timestamp. PackageVersion pulumi.StringPtrOutput `pulumi:"packageVersion"` // The address to store the uploaded web application (WAR) package for application deployment. This parameter is required when the deployType parameter is set as url. WarUrl pulumi.StringOutput `pulumi:"warUrl"` }
Deploys applications on EDAS, see [What is EDAS Application Deployment](https://www.alibabacloud.com/help/en/edas/developer-reference/api-edas-2017-08-01-deployapplication).
> **NOTE:** Available since v1.82.0.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/edas" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") name := "tf-example" if param := cfg.Get("name"); param != "" { name = param } defaultRegions, err := alicloud.GetRegions(ctx, &alicloud.GetRegionsArgs{ Current: pulumi.BoolRef(true), }, nil) if err != nil { return err } defaultZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{ AvailableResourceCreation: pulumi.StringRef("VSwitch"), }, nil) if err != nil { return err } defaultImages, err := ecs.GetImages(ctx, &ecs.GetImagesArgs{ NameRegex: pulumi.StringRef("^ubuntu_[0-9]+_[0-9]+_x64*"), Owners: pulumi.StringRef("system"), }, nil) if err != nil { return err } defaultInstanceTypes, err := ecs.GetInstanceTypes(ctx, &ecs.GetInstanceTypesArgs{ AvailabilityZone: pulumi.StringRef(defaultZones.Zones[0].Id), CpuCoreCount: pulumi.IntRef(1), MemorySize: pulumi.Float64Ref(2), }, nil) if err != nil { return err } defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{ VpcName: pulumi.String(name), CidrBlock: pulumi.String("10.4.0.0/16"), }) if err != nil { return err } defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{ VswitchName: pulumi.String(name), CidrBlock: pulumi.String("10.4.0.0/24"), VpcId: defaultNetwork.ID(), ZoneId: *pulumi.String(defaultZones.Zones[0].Id), }) if err != nil { return err } defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "defaultSecurityGroup", &ecs.SecurityGroupArgs{ VpcId: defaultNetwork.ID(), }) if err != nil { return err } defaultInstance, err := ecs.NewInstance(ctx, "defaultInstance", &ecs.InstanceArgs{ AvailabilityZone: *pulumi.String(defaultZones.Zones[0].Id), InstanceName: pulumi.String(name), ImageId: *pulumi.String(defaultImages.Images[0].Id), InstanceType: *pulumi.String(defaultInstanceTypes.InstanceTypes[0].Id), SecurityGroups: pulumi.StringArray{ defaultSecurityGroup.ID(), }, VswitchId: defaultSwitch.ID(), }) if err != nil { return err } defaultCluster, err := edas.NewCluster(ctx, "defaultCluster", &edas.ClusterArgs{ ClusterName: pulumi.String(name), ClusterType: pulumi.Int(2), NetworkMode: pulumi.Int(2), LogicalRegionId: *pulumi.String(defaultRegions.Regions[0].Id), VpcId: defaultNetwork.ID(), }) if err != nil { return err } _, err = edas.NewInstanceClusterAttachment(ctx, "defaultInstanceClusterAttachment", &edas.InstanceClusterAttachmentArgs{ ClusterId: defaultCluster.ID(), InstanceIds: pulumi.StringArray{ defaultInstance.ID(), }, }) if err != nil { return err } defaultApplication, err := edas.NewApplication(ctx, "defaultApplication", &edas.ApplicationArgs{ ApplicationName: pulumi.String(name), ClusterId: defaultCluster.ID(), PackageType: pulumi.String("JAR"), }) if err != nil { return err } _, err = edas.NewDeployGroup(ctx, "defaultDeployGroup", &edas.DeployGroupArgs{ AppId: defaultApplication.ID(), GroupName: pulumi.String(name), }) if err != nil { return err } _, err = edas.NewApplicationDeployment(ctx, "defaultApplicationDeployment", &edas.ApplicationDeploymentArgs{ AppId: defaultApplication.ID(), GroupId: pulumi.String("all"), WarUrl: pulumi.String("http://edas-sz.oss-cn-shenzhen.aliyuncs.com/prod/demo/SPRING_CLOUD_CONSUMER.jar"), }) if err != nil { return err } return nil }) }
```
func GetApplicationDeployment ¶
func GetApplicationDeployment(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ApplicationDeploymentState, opts ...pulumi.ResourceOption) (*ApplicationDeployment, error)
GetApplicationDeployment gets an existing ApplicationDeployment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewApplicationDeployment ¶
func NewApplicationDeployment(ctx *pulumi.Context, name string, args *ApplicationDeploymentArgs, opts ...pulumi.ResourceOption) (*ApplicationDeployment, error)
NewApplicationDeployment registers a new resource with the given unique name, arguments, and options.
func (*ApplicationDeployment) ElementType ¶
func (*ApplicationDeployment) ElementType() reflect.Type
func (*ApplicationDeployment) ToApplicationDeploymentOutput ¶
func (i *ApplicationDeployment) ToApplicationDeploymentOutput() ApplicationDeploymentOutput
func (*ApplicationDeployment) ToApplicationDeploymentOutputWithContext ¶
func (i *ApplicationDeployment) ToApplicationDeploymentOutputWithContext(ctx context.Context) ApplicationDeploymentOutput
type ApplicationDeploymentArgs ¶
type ApplicationDeploymentArgs struct { // The ID of the application that you want to deploy. AppId pulumi.StringInput // The ID of the instance group where the application is going to be deployed. Set this parameter to all if you want to deploy the application to all groups. GroupId pulumi.StringInput // The version of the application that you want to deploy. It must be unique for every application. The length cannot exceed 64 characters. We recommended you to use a timestamp. PackageVersion pulumi.StringPtrInput // The address to store the uploaded web application (WAR) package for application deployment. This parameter is required when the deployType parameter is set as url. WarUrl pulumi.StringInput }
The set of arguments for constructing a ApplicationDeployment resource.
func (ApplicationDeploymentArgs) ElementType ¶
func (ApplicationDeploymentArgs) ElementType() reflect.Type
type ApplicationDeploymentArray ¶
type ApplicationDeploymentArray []ApplicationDeploymentInput
func (ApplicationDeploymentArray) ElementType ¶
func (ApplicationDeploymentArray) ElementType() reflect.Type
func (ApplicationDeploymentArray) ToApplicationDeploymentArrayOutput ¶
func (i ApplicationDeploymentArray) ToApplicationDeploymentArrayOutput() ApplicationDeploymentArrayOutput
func (ApplicationDeploymentArray) ToApplicationDeploymentArrayOutputWithContext ¶
func (i ApplicationDeploymentArray) ToApplicationDeploymentArrayOutputWithContext(ctx context.Context) ApplicationDeploymentArrayOutput
type ApplicationDeploymentArrayInput ¶
type ApplicationDeploymentArrayInput interface { pulumi.Input ToApplicationDeploymentArrayOutput() ApplicationDeploymentArrayOutput ToApplicationDeploymentArrayOutputWithContext(context.Context) ApplicationDeploymentArrayOutput }
ApplicationDeploymentArrayInput is an input type that accepts ApplicationDeploymentArray and ApplicationDeploymentArrayOutput values. You can construct a concrete instance of `ApplicationDeploymentArrayInput` via:
ApplicationDeploymentArray{ ApplicationDeploymentArgs{...} }
type ApplicationDeploymentArrayOutput ¶
type ApplicationDeploymentArrayOutput struct{ *pulumi.OutputState }
func (ApplicationDeploymentArrayOutput) ElementType ¶
func (ApplicationDeploymentArrayOutput) ElementType() reflect.Type
func (ApplicationDeploymentArrayOutput) Index ¶
func (o ApplicationDeploymentArrayOutput) Index(i pulumi.IntInput) ApplicationDeploymentOutput
func (ApplicationDeploymentArrayOutput) ToApplicationDeploymentArrayOutput ¶
func (o ApplicationDeploymentArrayOutput) ToApplicationDeploymentArrayOutput() ApplicationDeploymentArrayOutput
func (ApplicationDeploymentArrayOutput) ToApplicationDeploymentArrayOutputWithContext ¶
func (o ApplicationDeploymentArrayOutput) ToApplicationDeploymentArrayOutputWithContext(ctx context.Context) ApplicationDeploymentArrayOutput
type ApplicationDeploymentInput ¶
type ApplicationDeploymentInput interface { pulumi.Input ToApplicationDeploymentOutput() ApplicationDeploymentOutput ToApplicationDeploymentOutputWithContext(ctx context.Context) ApplicationDeploymentOutput }
type ApplicationDeploymentMap ¶
type ApplicationDeploymentMap map[string]ApplicationDeploymentInput
func (ApplicationDeploymentMap) ElementType ¶
func (ApplicationDeploymentMap) ElementType() reflect.Type
func (ApplicationDeploymentMap) ToApplicationDeploymentMapOutput ¶
func (i ApplicationDeploymentMap) ToApplicationDeploymentMapOutput() ApplicationDeploymentMapOutput
func (ApplicationDeploymentMap) ToApplicationDeploymentMapOutputWithContext ¶
func (i ApplicationDeploymentMap) ToApplicationDeploymentMapOutputWithContext(ctx context.Context) ApplicationDeploymentMapOutput
type ApplicationDeploymentMapInput ¶
type ApplicationDeploymentMapInput interface { pulumi.Input ToApplicationDeploymentMapOutput() ApplicationDeploymentMapOutput ToApplicationDeploymentMapOutputWithContext(context.Context) ApplicationDeploymentMapOutput }
ApplicationDeploymentMapInput is an input type that accepts ApplicationDeploymentMap and ApplicationDeploymentMapOutput values. You can construct a concrete instance of `ApplicationDeploymentMapInput` via:
ApplicationDeploymentMap{ "key": ApplicationDeploymentArgs{...} }
type ApplicationDeploymentMapOutput ¶
type ApplicationDeploymentMapOutput struct{ *pulumi.OutputState }
func (ApplicationDeploymentMapOutput) ElementType ¶
func (ApplicationDeploymentMapOutput) ElementType() reflect.Type
func (ApplicationDeploymentMapOutput) MapIndex ¶
func (o ApplicationDeploymentMapOutput) MapIndex(k pulumi.StringInput) ApplicationDeploymentOutput
func (ApplicationDeploymentMapOutput) ToApplicationDeploymentMapOutput ¶
func (o ApplicationDeploymentMapOutput) ToApplicationDeploymentMapOutput() ApplicationDeploymentMapOutput
func (ApplicationDeploymentMapOutput) ToApplicationDeploymentMapOutputWithContext ¶
func (o ApplicationDeploymentMapOutput) ToApplicationDeploymentMapOutputWithContext(ctx context.Context) ApplicationDeploymentMapOutput
type ApplicationDeploymentOutput ¶
type ApplicationDeploymentOutput struct{ *pulumi.OutputState }
func (ApplicationDeploymentOutput) AppId ¶ added in v3.27.0
func (o ApplicationDeploymentOutput) AppId() pulumi.StringOutput
The ID of the application that you want to deploy.
func (ApplicationDeploymentOutput) ElementType ¶
func (ApplicationDeploymentOutput) ElementType() reflect.Type
func (ApplicationDeploymentOutput) GroupId ¶ added in v3.27.0
func (o ApplicationDeploymentOutput) GroupId() pulumi.StringOutput
The ID of the instance group where the application is going to be deployed. Set this parameter to all if you want to deploy the application to all groups.
func (ApplicationDeploymentOutput) LastPackageVersion ¶ added in v3.27.0
func (o ApplicationDeploymentOutput) LastPackageVersion() pulumi.StringOutput
Last package version deployed.
func (ApplicationDeploymentOutput) PackageVersion ¶ added in v3.27.0
func (o ApplicationDeploymentOutput) PackageVersion() pulumi.StringPtrOutput
The version of the application that you want to deploy. It must be unique for every application. The length cannot exceed 64 characters. We recommended you to use a timestamp.
func (ApplicationDeploymentOutput) ToApplicationDeploymentOutput ¶
func (o ApplicationDeploymentOutput) ToApplicationDeploymentOutput() ApplicationDeploymentOutput
func (ApplicationDeploymentOutput) ToApplicationDeploymentOutputWithContext ¶
func (o ApplicationDeploymentOutput) ToApplicationDeploymentOutputWithContext(ctx context.Context) ApplicationDeploymentOutput
func (ApplicationDeploymentOutput) WarUrl ¶ added in v3.27.0
func (o ApplicationDeploymentOutput) WarUrl() pulumi.StringOutput
The address to store the uploaded web application (WAR) package for application deployment. This parameter is required when the deployType parameter is set as url.
type ApplicationDeploymentState ¶
type ApplicationDeploymentState struct { // The ID of the application that you want to deploy. AppId pulumi.StringPtrInput // The ID of the instance group where the application is going to be deployed. Set this parameter to all if you want to deploy the application to all groups. GroupId pulumi.StringPtrInput // Last package version deployed. LastPackageVersion pulumi.StringPtrInput // The version of the application that you want to deploy. It must be unique for every application. The length cannot exceed 64 characters. We recommended you to use a timestamp. PackageVersion pulumi.StringPtrInput // The address to store the uploaded web application (WAR) package for application deployment. This parameter is required when the deployType parameter is set as url. WarUrl pulumi.StringPtrInput }
func (ApplicationDeploymentState) ElementType ¶
func (ApplicationDeploymentState) ElementType() reflect.Type
type ApplicationInput ¶
type ApplicationInput interface { pulumi.Input ToApplicationOutput() ApplicationOutput ToApplicationOutputWithContext(ctx context.Context) ApplicationOutput }
type ApplicationMap ¶
type ApplicationMap map[string]ApplicationInput
func (ApplicationMap) ElementType ¶
func (ApplicationMap) ElementType() reflect.Type
func (ApplicationMap) ToApplicationMapOutput ¶
func (i ApplicationMap) ToApplicationMapOutput() ApplicationMapOutput
func (ApplicationMap) ToApplicationMapOutputWithContext ¶
func (i ApplicationMap) ToApplicationMapOutputWithContext(ctx context.Context) ApplicationMapOutput
type ApplicationMapInput ¶
type ApplicationMapInput interface { pulumi.Input ToApplicationMapOutput() ApplicationMapOutput ToApplicationMapOutputWithContext(context.Context) ApplicationMapOutput }
ApplicationMapInput is an input type that accepts ApplicationMap and ApplicationMapOutput values. You can construct a concrete instance of `ApplicationMapInput` via:
ApplicationMap{ "key": ApplicationArgs{...} }
type ApplicationMapOutput ¶
type ApplicationMapOutput struct{ *pulumi.OutputState }
func (ApplicationMapOutput) ElementType ¶
func (ApplicationMapOutput) ElementType() reflect.Type
func (ApplicationMapOutput) MapIndex ¶
func (o ApplicationMapOutput) MapIndex(k pulumi.StringInput) ApplicationOutput
func (ApplicationMapOutput) ToApplicationMapOutput ¶
func (o ApplicationMapOutput) ToApplicationMapOutput() ApplicationMapOutput
func (ApplicationMapOutput) ToApplicationMapOutputWithContext ¶
func (o ApplicationMapOutput) ToApplicationMapOutputWithContext(ctx context.Context) ApplicationMapOutput
type ApplicationOutput ¶
type ApplicationOutput struct{ *pulumi.OutputState }
func (ApplicationOutput) ApplicationName ¶ added in v3.27.0
func (o ApplicationOutput) ApplicationName() pulumi.StringOutput
Name of your EDAS application. Only letters '-' '_' and numbers are allowed. The length cannot exceed 36 characters.
func (ApplicationOutput) BuildPackId ¶ added in v3.27.0
func (o ApplicationOutput) BuildPackId() pulumi.IntPtrOutput
The package ID of Enterprise Distributed Application Service (EDAS) Container, which can be retrieved by calling container version list interface ListBuildPack or the "Pack ID" column in container version list. When creating High-speed Service Framework (HSF) application, this parameter is required.
func (ApplicationOutput) ClusterId ¶ added in v3.27.0
func (o ApplicationOutput) ClusterId() pulumi.StringOutput
The ID of the cluster that you want to create the application. The default cluster will be used if you do not specify this parameter.
func (ApplicationOutput) Descriotion ¶ added in v3.27.0
func (o ApplicationOutput) Descriotion() pulumi.StringPtrOutput
The description of the application that you want to create.
func (ApplicationOutput) EcuInfos ¶ added in v3.27.0
func (o ApplicationOutput) EcuInfos() pulumi.StringArrayOutput
The ID of the Elastic Compute Unit (ECU) where you want to deploy the application. Type: List.
func (ApplicationOutput) ElementType ¶
func (ApplicationOutput) ElementType() reflect.Type
func (ApplicationOutput) GroupId ¶ added in v3.27.0
func (o ApplicationOutput) GroupId() pulumi.StringPtrOutput
The ID of the instance group where the application is going to be deployed. Set this parameter to all if you want to deploy the application to all groups.
func (ApplicationOutput) HealthCheckUrl ¶ added in v3.27.0
func (o ApplicationOutput) HealthCheckUrl() pulumi.StringPtrOutput
The URL for health checking of the application.
func (ApplicationOutput) LogicalRegionId ¶ added in v3.27.0
func (o ApplicationOutput) LogicalRegionId() pulumi.StringPtrOutput
The ID of the namespace where you want to create the application. You can call the ListUserDefineRegion operation to query the namespace ID.
func (ApplicationOutput) PackageType ¶ added in v3.27.0
func (o ApplicationOutput) PackageType() pulumi.StringOutput
The type of the package for the deployment of the application that you want to create. The valid values are: WAR and JAR. We strongly recommend you to set this parameter when creating the application.
func (ApplicationOutput) PackageVersion ¶ added in v3.27.0
func (o ApplicationOutput) PackageVersion() pulumi.StringPtrOutput
The version of the application that you want to deploy. It must be unique for every application. The length cannot exceed 64 characters. We recommended you to use a timestamp.
func (ApplicationOutput) ToApplicationOutput ¶
func (o ApplicationOutput) ToApplicationOutput() ApplicationOutput
func (ApplicationOutput) ToApplicationOutputWithContext ¶
func (o ApplicationOutput) ToApplicationOutputWithContext(ctx context.Context) ApplicationOutput
func (ApplicationOutput) WarUrl ¶ added in v3.27.0
func (o ApplicationOutput) WarUrl() pulumi.StringPtrOutput
The address to store the uploaded web application (WAR) package for application deployment. This parameter is required when the deployType parameter is set as url.
type ApplicationScale ¶
type ApplicationScale struct { pulumi.CustomResourceState // The ID of the application that you want to deploy. AppId pulumi.StringOutput `pulumi:"appId"` // The ID of the instance group to which you want to add ECS instances to scale out the application. DeployGroup pulumi.StringOutput `pulumi:"deployGroup"` // The ecc information of the resource supplied above. The value is formulated as `<ecc1,ecc2>`. EccInfo pulumi.StringOutput `pulumi:"eccInfo"` // The IDs of the Elastic Compute Unit (ECU) where you want to deploy the application. Type: List. EcuInfos pulumi.StringArrayOutput `pulumi:"ecuInfos"` // This parameter specifies whether to forcibly remove an ECS instance where the application is deployed. It is set as true only after the ECS instance expires. In normal cases, this parameter do not need to be specified. ForceStatus pulumi.BoolPtrOutput `pulumi:"forceStatus"` }
This operation is provided to scale out an EDAS application, see [What is EDAS Application Scale](https://www.alibabacloud.com/help/en/edas/developer-reference/api-edas-2017-08-01-scaleoutapplication).
> **NOTE:** Available since v1.82.0.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/edas" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") name := "tf-example" if param := cfg.Get("name"); param != "" { name = param } defaultRegions, err := alicloud.GetRegions(ctx, &alicloud.GetRegionsArgs{ Current: pulumi.BoolRef(true), }, nil) if err != nil { return err } defaultZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{ AvailableResourceCreation: pulumi.StringRef("VSwitch"), }, nil) if err != nil { return err } defaultImages, err := ecs.GetImages(ctx, &ecs.GetImagesArgs{ NameRegex: pulumi.StringRef("^ubuntu_[0-9]+_[0-9]+_x64*"), Owners: pulumi.StringRef("system"), }, nil) if err != nil { return err } defaultInstanceTypes, err := ecs.GetInstanceTypes(ctx, &ecs.GetInstanceTypesArgs{ AvailabilityZone: pulumi.StringRef(defaultZones.Zones[0].Id), CpuCoreCount: pulumi.IntRef(1), MemorySize: pulumi.Float64Ref(2), }, nil) if err != nil { return err } defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{ VpcName: pulumi.String(name), CidrBlock: pulumi.String("10.4.0.0/16"), }) if err != nil { return err } defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{ VswitchName: pulumi.String(name), CidrBlock: pulumi.String("10.4.0.0/24"), VpcId: defaultNetwork.ID(), ZoneId: *pulumi.String(defaultZones.Zones[0].Id), }) if err != nil { return err } defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "defaultSecurityGroup", &ecs.SecurityGroupArgs{ VpcId: defaultNetwork.ID(), }) if err != nil { return err } defaultInstance, err := ecs.NewInstance(ctx, "defaultInstance", &ecs.InstanceArgs{ AvailabilityZone: *pulumi.String(defaultZones.Zones[0].Id), InstanceName: pulumi.String(name), ImageId: *pulumi.String(defaultImages.Images[0].Id), InstanceType: *pulumi.String(defaultInstanceTypes.InstanceTypes[0].Id), SecurityGroups: pulumi.StringArray{ defaultSecurityGroup.ID(), }, VswitchId: defaultSwitch.ID(), InternetMaxBandwidthOut: pulumi.Int(10), InternetChargeType: pulumi.String("PayByTraffic"), InstanceChargeType: pulumi.String("PostPaid"), SystemDiskCategory: pulumi.String("cloud_efficiency"), }) if err != nil { return err } defaultCluster, err := edas.NewCluster(ctx, "defaultCluster", &edas.ClusterArgs{ ClusterName: pulumi.String(name), ClusterType: pulumi.Int(2), NetworkMode: pulumi.Int(2), LogicalRegionId: *pulumi.String(defaultRegions.Regions[0].Id), VpcId: defaultNetwork.ID(), }) if err != nil { return err } defaultInstanceClusterAttachment, err := edas.NewInstanceClusterAttachment(ctx, "defaultInstanceClusterAttachment", &edas.InstanceClusterAttachmentArgs{ ClusterId: defaultCluster.ID(), InstanceIds: pulumi.StringArray{ defaultInstance.ID(), }, }) if err != nil { return err } defaultApplication, err := edas.NewApplication(ctx, "defaultApplication", &edas.ApplicationArgs{ ApplicationName: pulumi.String(name), ClusterId: defaultCluster.ID(), PackageType: pulumi.String("WAR"), }) if err != nil { return err } defaultDeployGroup, err := edas.NewDeployGroup(ctx, "defaultDeployGroup", &edas.DeployGroupArgs{ AppId: defaultApplication.ID(), GroupName: pulumi.String(name), }) if err != nil { return err } defaultDeployGroups := edas.GetDeployGroupsOutput(ctx, edas.GetDeployGroupsOutputArgs{ AppId: defaultDeployGroup.AppId, }, nil) _, err = edas.NewApplicationScale(ctx, "defaultApplicationScale", &edas.ApplicationScaleArgs{ AppId: defaultApplication.ID(), DeployGroup: defaultDeployGroups.ApplyT(func(defaultDeployGroups edas.GetDeployGroupsResult) (*string, error) { return &defaultDeployGroups.Groups[0].GroupId, nil }).(pulumi.StringPtrOutput), EcuInfos: pulumi.StringArray{ pulumi.All(defaultInstanceClusterAttachment.EcuMap, defaultInstance.ID()).ApplyT(func(_args []interface{}) (string, error) { ecuMap := _args[0].(map[string]string) id := _args[1].(string) return ecuMap[id], nil }).(pulumi.StringOutput), }, }) if err != nil { return err } return nil }) }
```
func GetApplicationScale ¶
func GetApplicationScale(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ApplicationScaleState, opts ...pulumi.ResourceOption) (*ApplicationScale, error)
GetApplicationScale gets an existing ApplicationScale resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewApplicationScale ¶
func NewApplicationScale(ctx *pulumi.Context, name string, args *ApplicationScaleArgs, opts ...pulumi.ResourceOption) (*ApplicationScale, error)
NewApplicationScale registers a new resource with the given unique name, arguments, and options.
func (*ApplicationScale) ElementType ¶
func (*ApplicationScale) ElementType() reflect.Type
func (*ApplicationScale) ToApplicationScaleOutput ¶
func (i *ApplicationScale) ToApplicationScaleOutput() ApplicationScaleOutput
func (*ApplicationScale) ToApplicationScaleOutputWithContext ¶
func (i *ApplicationScale) ToApplicationScaleOutputWithContext(ctx context.Context) ApplicationScaleOutput
type ApplicationScaleArgs ¶
type ApplicationScaleArgs struct { // The ID of the application that you want to deploy. AppId pulumi.StringInput // The ID of the instance group to which you want to add ECS instances to scale out the application. DeployGroup pulumi.StringInput // The IDs of the Elastic Compute Unit (ECU) where you want to deploy the application. Type: List. EcuInfos pulumi.StringArrayInput // This parameter specifies whether to forcibly remove an ECS instance where the application is deployed. It is set as true only after the ECS instance expires. In normal cases, this parameter do not need to be specified. ForceStatus pulumi.BoolPtrInput }
The set of arguments for constructing a ApplicationScale resource.
func (ApplicationScaleArgs) ElementType ¶
func (ApplicationScaleArgs) ElementType() reflect.Type
type ApplicationScaleArray ¶
type ApplicationScaleArray []ApplicationScaleInput
func (ApplicationScaleArray) ElementType ¶
func (ApplicationScaleArray) ElementType() reflect.Type
func (ApplicationScaleArray) ToApplicationScaleArrayOutput ¶
func (i ApplicationScaleArray) ToApplicationScaleArrayOutput() ApplicationScaleArrayOutput
func (ApplicationScaleArray) ToApplicationScaleArrayOutputWithContext ¶
func (i ApplicationScaleArray) ToApplicationScaleArrayOutputWithContext(ctx context.Context) ApplicationScaleArrayOutput
type ApplicationScaleArrayInput ¶
type ApplicationScaleArrayInput interface { pulumi.Input ToApplicationScaleArrayOutput() ApplicationScaleArrayOutput ToApplicationScaleArrayOutputWithContext(context.Context) ApplicationScaleArrayOutput }
ApplicationScaleArrayInput is an input type that accepts ApplicationScaleArray and ApplicationScaleArrayOutput values. You can construct a concrete instance of `ApplicationScaleArrayInput` via:
ApplicationScaleArray{ ApplicationScaleArgs{...} }
type ApplicationScaleArrayOutput ¶
type ApplicationScaleArrayOutput struct{ *pulumi.OutputState }
func (ApplicationScaleArrayOutput) ElementType ¶
func (ApplicationScaleArrayOutput) ElementType() reflect.Type
func (ApplicationScaleArrayOutput) Index ¶
func (o ApplicationScaleArrayOutput) Index(i pulumi.IntInput) ApplicationScaleOutput
func (ApplicationScaleArrayOutput) ToApplicationScaleArrayOutput ¶
func (o ApplicationScaleArrayOutput) ToApplicationScaleArrayOutput() ApplicationScaleArrayOutput
func (ApplicationScaleArrayOutput) ToApplicationScaleArrayOutputWithContext ¶
func (o ApplicationScaleArrayOutput) ToApplicationScaleArrayOutputWithContext(ctx context.Context) ApplicationScaleArrayOutput
type ApplicationScaleInput ¶
type ApplicationScaleInput interface { pulumi.Input ToApplicationScaleOutput() ApplicationScaleOutput ToApplicationScaleOutputWithContext(ctx context.Context) ApplicationScaleOutput }
type ApplicationScaleMap ¶
type ApplicationScaleMap map[string]ApplicationScaleInput
func (ApplicationScaleMap) ElementType ¶
func (ApplicationScaleMap) ElementType() reflect.Type
func (ApplicationScaleMap) ToApplicationScaleMapOutput ¶
func (i ApplicationScaleMap) ToApplicationScaleMapOutput() ApplicationScaleMapOutput
func (ApplicationScaleMap) ToApplicationScaleMapOutputWithContext ¶
func (i ApplicationScaleMap) ToApplicationScaleMapOutputWithContext(ctx context.Context) ApplicationScaleMapOutput
type ApplicationScaleMapInput ¶
type ApplicationScaleMapInput interface { pulumi.Input ToApplicationScaleMapOutput() ApplicationScaleMapOutput ToApplicationScaleMapOutputWithContext(context.Context) ApplicationScaleMapOutput }
ApplicationScaleMapInput is an input type that accepts ApplicationScaleMap and ApplicationScaleMapOutput values. You can construct a concrete instance of `ApplicationScaleMapInput` via:
ApplicationScaleMap{ "key": ApplicationScaleArgs{...} }
type ApplicationScaleMapOutput ¶
type ApplicationScaleMapOutput struct{ *pulumi.OutputState }
func (ApplicationScaleMapOutput) ElementType ¶
func (ApplicationScaleMapOutput) ElementType() reflect.Type
func (ApplicationScaleMapOutput) MapIndex ¶
func (o ApplicationScaleMapOutput) MapIndex(k pulumi.StringInput) ApplicationScaleOutput
func (ApplicationScaleMapOutput) ToApplicationScaleMapOutput ¶
func (o ApplicationScaleMapOutput) ToApplicationScaleMapOutput() ApplicationScaleMapOutput
func (ApplicationScaleMapOutput) ToApplicationScaleMapOutputWithContext ¶
func (o ApplicationScaleMapOutput) ToApplicationScaleMapOutputWithContext(ctx context.Context) ApplicationScaleMapOutput
type ApplicationScaleOutput ¶
type ApplicationScaleOutput struct{ *pulumi.OutputState }
func (ApplicationScaleOutput) AppId ¶ added in v3.27.0
func (o ApplicationScaleOutput) AppId() pulumi.StringOutput
The ID of the application that you want to deploy.
func (ApplicationScaleOutput) DeployGroup ¶ added in v3.27.0
func (o ApplicationScaleOutput) DeployGroup() pulumi.StringOutput
The ID of the instance group to which you want to add ECS instances to scale out the application.
func (ApplicationScaleOutput) EccInfo ¶ added in v3.27.0
func (o ApplicationScaleOutput) EccInfo() pulumi.StringOutput
The ecc information of the resource supplied above. The value is formulated as `<ecc1,ecc2>`.
func (ApplicationScaleOutput) EcuInfos ¶ added in v3.27.0
func (o ApplicationScaleOutput) EcuInfos() pulumi.StringArrayOutput
The IDs of the Elastic Compute Unit (ECU) where you want to deploy the application. Type: List.
func (ApplicationScaleOutput) ElementType ¶
func (ApplicationScaleOutput) ElementType() reflect.Type
func (ApplicationScaleOutput) ForceStatus ¶ added in v3.27.0
func (o ApplicationScaleOutput) ForceStatus() pulumi.BoolPtrOutput
This parameter specifies whether to forcibly remove an ECS instance where the application is deployed. It is set as true only after the ECS instance expires. In normal cases, this parameter do not need to be specified.
func (ApplicationScaleOutput) ToApplicationScaleOutput ¶
func (o ApplicationScaleOutput) ToApplicationScaleOutput() ApplicationScaleOutput
func (ApplicationScaleOutput) ToApplicationScaleOutputWithContext ¶
func (o ApplicationScaleOutput) ToApplicationScaleOutputWithContext(ctx context.Context) ApplicationScaleOutput
type ApplicationScaleState ¶
type ApplicationScaleState struct { // The ID of the application that you want to deploy. AppId pulumi.StringPtrInput // The ID of the instance group to which you want to add ECS instances to scale out the application. DeployGroup pulumi.StringPtrInput // The ecc information of the resource supplied above. The value is formulated as `<ecc1,ecc2>`. EccInfo pulumi.StringPtrInput // The IDs of the Elastic Compute Unit (ECU) where you want to deploy the application. Type: List. EcuInfos pulumi.StringArrayInput // This parameter specifies whether to forcibly remove an ECS instance where the application is deployed. It is set as true only after the ECS instance expires. In normal cases, this parameter do not need to be specified. ForceStatus pulumi.BoolPtrInput }
func (ApplicationScaleState) ElementType ¶
func (ApplicationScaleState) ElementType() reflect.Type
type ApplicationState ¶
type ApplicationState struct { // Name of your EDAS application. Only letters '-' '_' and numbers are allowed. The length cannot exceed 36 characters. ApplicationName pulumi.StringPtrInput // The package ID of Enterprise Distributed Application Service (EDAS) Container, which can be retrieved by calling container version list interface ListBuildPack or the "Pack ID" column in container version list. When creating High-speed Service Framework (HSF) application, this parameter is required. BuildPackId pulumi.IntPtrInput // The ID of the cluster that you want to create the application. The default cluster will be used if you do not specify this parameter. ClusterId pulumi.StringPtrInput // The description of the application that you want to create. Descriotion pulumi.StringPtrInput // The ID of the Elastic Compute Unit (ECU) where you want to deploy the application. Type: List. EcuInfos pulumi.StringArrayInput // The ID of the instance group where the application is going to be deployed. Set this parameter to all if you want to deploy the application to all groups. GroupId pulumi.StringPtrInput // The URL for health checking of the application. HealthCheckUrl pulumi.StringPtrInput // The ID of the namespace where you want to create the application. You can call the ListUserDefineRegion operation to query the namespace ID. LogicalRegionId pulumi.StringPtrInput // The type of the package for the deployment of the application that you want to create. The valid values are: WAR and JAR. We strongly recommend you to set this parameter when creating the application. PackageType pulumi.StringPtrInput // The version of the application that you want to deploy. It must be unique for every application. The length cannot exceed 64 characters. We recommended you to use a timestamp. PackageVersion pulumi.StringPtrInput // The address to store the uploaded web application (WAR) package for application deployment. This parameter is required when the deployType parameter is set as url. WarUrl pulumi.StringPtrInput }
func (ApplicationState) ElementType ¶
func (ApplicationState) ElementType() reflect.Type
type Cluster ¶
type Cluster struct { pulumi.CustomResourceState // The name of the cluster that you want to create. ClusterName pulumi.StringOutput `pulumi:"clusterName"` // The type of the cluster that you want to create. Valid values only: 2: ECS cluster. ClusterType pulumi.IntOutput `pulumi:"clusterType"` // The ID of the namespace where you want to create the application. You can call the ListUserDefineRegion operation to query the namespace ID. LogicalRegionId pulumi.StringPtrOutput `pulumi:"logicalRegionId"` // The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC. NetworkMode pulumi.IntOutput `pulumi:"networkMode"` // The ID of the Virtual Private Cloud (VPC) for the cluster. VpcId pulumi.StringPtrOutput `pulumi:"vpcId"` }
Provides an EDAS cluster resource, see [What is EDAS Cluster](https://www.alibabacloud.com/help/en/edas/developer-reference/api-edas-2017-08-01-insertcluster).
> **NOTE:** Available since v1.82.0.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/edas" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") name := "tf-example" if param := cfg.Get("name"); param != "" { name = param } defaultRegions, err := alicloud.GetRegions(ctx, &alicloud.GetRegionsArgs{ Current: pulumi.BoolRef(true), }, nil) if err != nil { return err } defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{ VpcName: pulumi.String(name), CidrBlock: pulumi.String("10.4.0.0/16"), }) if err != nil { return err } _, err = edas.NewCluster(ctx, "defaultCluster", &edas.ClusterArgs{ ClusterName: pulumi.String(name), ClusterType: pulumi.Int(2), NetworkMode: pulumi.Int(2), LogicalRegionId: *pulumi.String(defaultRegions.Regions[0].Id), VpcId: defaultNetwork.ID(), }) if err != nil { return err } return nil }) }
```
## Import
EDAS cluster can be imported using the id, e.g.
```sh $ pulumi import alicloud:edas/cluster:Cluster cluster cluster_id ```
func GetCluster ¶
func GetCluster(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ClusterState, opts ...pulumi.ResourceOption) (*Cluster, error)
GetCluster gets an existing Cluster resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewCluster ¶
func NewCluster(ctx *pulumi.Context, name string, args *ClusterArgs, opts ...pulumi.ResourceOption) (*Cluster, error)
NewCluster registers a new resource with the given unique name, arguments, and options.
func (*Cluster) ElementType ¶
func (*Cluster) ToClusterOutput ¶
func (i *Cluster) ToClusterOutput() ClusterOutput
func (*Cluster) ToClusterOutputWithContext ¶
func (i *Cluster) ToClusterOutputWithContext(ctx context.Context) ClusterOutput
type ClusterArgs ¶
type ClusterArgs struct { // The name of the cluster that you want to create. ClusterName pulumi.StringInput // The type of the cluster that you want to create. Valid values only: 2: ECS cluster. ClusterType pulumi.IntInput // The ID of the namespace where you want to create the application. You can call the ListUserDefineRegion operation to query the namespace ID. LogicalRegionId pulumi.StringPtrInput // The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC. NetworkMode pulumi.IntInput // The ID of the Virtual Private Cloud (VPC) for the cluster. VpcId pulumi.StringPtrInput }
The set of arguments for constructing a Cluster resource.
func (ClusterArgs) ElementType ¶
func (ClusterArgs) ElementType() reflect.Type
type ClusterArray ¶
type ClusterArray []ClusterInput
func (ClusterArray) ElementType ¶
func (ClusterArray) ElementType() reflect.Type
func (ClusterArray) ToClusterArrayOutput ¶
func (i ClusterArray) ToClusterArrayOutput() ClusterArrayOutput
func (ClusterArray) ToClusterArrayOutputWithContext ¶
func (i ClusterArray) ToClusterArrayOutputWithContext(ctx context.Context) ClusterArrayOutput
type ClusterArrayInput ¶
type ClusterArrayInput interface { pulumi.Input ToClusterArrayOutput() ClusterArrayOutput ToClusterArrayOutputWithContext(context.Context) ClusterArrayOutput }
ClusterArrayInput is an input type that accepts ClusterArray and ClusterArrayOutput values. You can construct a concrete instance of `ClusterArrayInput` via:
ClusterArray{ ClusterArgs{...} }
type ClusterArrayOutput ¶
type ClusterArrayOutput struct{ *pulumi.OutputState }
func (ClusterArrayOutput) ElementType ¶
func (ClusterArrayOutput) ElementType() reflect.Type
func (ClusterArrayOutput) Index ¶
func (o ClusterArrayOutput) Index(i pulumi.IntInput) ClusterOutput
func (ClusterArrayOutput) ToClusterArrayOutput ¶
func (o ClusterArrayOutput) ToClusterArrayOutput() ClusterArrayOutput
func (ClusterArrayOutput) ToClusterArrayOutputWithContext ¶
func (o ClusterArrayOutput) ToClusterArrayOutputWithContext(ctx context.Context) ClusterArrayOutput
type ClusterInput ¶
type ClusterInput interface { pulumi.Input ToClusterOutput() ClusterOutput ToClusterOutputWithContext(ctx context.Context) ClusterOutput }
type ClusterMap ¶
type ClusterMap map[string]ClusterInput
func (ClusterMap) ElementType ¶
func (ClusterMap) ElementType() reflect.Type
func (ClusterMap) ToClusterMapOutput ¶
func (i ClusterMap) ToClusterMapOutput() ClusterMapOutput
func (ClusterMap) ToClusterMapOutputWithContext ¶
func (i ClusterMap) ToClusterMapOutputWithContext(ctx context.Context) ClusterMapOutput
type ClusterMapInput ¶
type ClusterMapInput interface { pulumi.Input ToClusterMapOutput() ClusterMapOutput ToClusterMapOutputWithContext(context.Context) ClusterMapOutput }
ClusterMapInput is an input type that accepts ClusterMap and ClusterMapOutput values. You can construct a concrete instance of `ClusterMapInput` via:
ClusterMap{ "key": ClusterArgs{...} }
type ClusterMapOutput ¶
type ClusterMapOutput struct{ *pulumi.OutputState }
func (ClusterMapOutput) ElementType ¶
func (ClusterMapOutput) ElementType() reflect.Type
func (ClusterMapOutput) MapIndex ¶
func (o ClusterMapOutput) MapIndex(k pulumi.StringInput) ClusterOutput
func (ClusterMapOutput) ToClusterMapOutput ¶
func (o ClusterMapOutput) ToClusterMapOutput() ClusterMapOutput
func (ClusterMapOutput) ToClusterMapOutputWithContext ¶
func (o ClusterMapOutput) ToClusterMapOutputWithContext(ctx context.Context) ClusterMapOutput
type ClusterOutput ¶
type ClusterOutput struct{ *pulumi.OutputState }
func (ClusterOutput) ClusterName ¶ added in v3.27.0
func (o ClusterOutput) ClusterName() pulumi.StringOutput
The name of the cluster that you want to create.
func (ClusterOutput) ClusterType ¶ added in v3.27.0
func (o ClusterOutput) ClusterType() pulumi.IntOutput
The type of the cluster that you want to create. Valid values only: 2: ECS cluster.
func (ClusterOutput) ElementType ¶
func (ClusterOutput) ElementType() reflect.Type
func (ClusterOutput) LogicalRegionId ¶ added in v3.27.0
func (o ClusterOutput) LogicalRegionId() pulumi.StringPtrOutput
The ID of the namespace where you want to create the application. You can call the ListUserDefineRegion operation to query the namespace ID.
func (ClusterOutput) NetworkMode ¶ added in v3.27.0
func (o ClusterOutput) NetworkMode() pulumi.IntOutput
The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC.
func (ClusterOutput) ToClusterOutput ¶
func (o ClusterOutput) ToClusterOutput() ClusterOutput
func (ClusterOutput) ToClusterOutputWithContext ¶
func (o ClusterOutput) ToClusterOutputWithContext(ctx context.Context) ClusterOutput
func (ClusterOutput) VpcId ¶ added in v3.27.0
func (o ClusterOutput) VpcId() pulumi.StringPtrOutput
The ID of the Virtual Private Cloud (VPC) for the cluster.
type ClusterState ¶
type ClusterState struct { // The name of the cluster that you want to create. ClusterName pulumi.StringPtrInput // The type of the cluster that you want to create. Valid values only: 2: ECS cluster. ClusterType pulumi.IntPtrInput // The ID of the namespace where you want to create the application. You can call the ListUserDefineRegion operation to query the namespace ID. LogicalRegionId pulumi.StringPtrInput // The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC. NetworkMode pulumi.IntPtrInput // The ID of the Virtual Private Cloud (VPC) for the cluster. VpcId pulumi.StringPtrInput }
func (ClusterState) ElementType ¶
func (ClusterState) ElementType() reflect.Type
type DeployGroup ¶
type DeployGroup struct { pulumi.CustomResourceState // The ID of the application that you want to deploy. AppId pulumi.StringOutput `pulumi:"appId"` // The name of the instance group that you want to create. GroupName pulumi.StringOutput `pulumi:"groupName"` // The type of the instance group that you want to create. Valid values: 0: Default group. 1: Phased release is disabled for traffic management. 2: Phased release is enabled for traffic management. GroupType pulumi.IntOutput `pulumi:"groupType"` }
Provides an EDAS deploy group resource, see [What is EDAS Deploy Group](https://www.alibabacloud.com/help/en/edas/developer-reference/api-edas-2017-08-01-insertdeploygroup).
> **NOTE:** Available since v1.82.0.
## Example Usage
Basic Usage ¶
```go package main
import (
"fmt" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/edas" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc" "github.com/pulumi/pulumi-random/sdk/v4/go/random" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") name := "tf-example" if param := cfg.Get("name"); param != "" { name = param } defaultRandomInteger, err := random.NewRandomInteger(ctx, "defaultRandomInteger", &random.RandomIntegerArgs{ Min: pulumi.Int(10000), Max: pulumi.Int(99999), }) if err != nil { return err } defaultRegions, err := alicloud.GetRegions(ctx, &alicloud.GetRegionsArgs{ Current: pulumi.BoolRef(true), }, nil) if err != nil { return err } defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{ VpcName: defaultRandomInteger.Result.ApplyT(func(result int) (string, error) { return fmt.Sprintf("%v-%v", name, result), nil }).(pulumi.StringOutput), CidrBlock: pulumi.String("10.4.0.0/16"), }) if err != nil { return err } defaultCluster, err := edas.NewCluster(ctx, "defaultCluster", &edas.ClusterArgs{ ClusterName: defaultRandomInteger.Result.ApplyT(func(result int) (string, error) { return fmt.Sprintf("%v-%v", name, result), nil }).(pulumi.StringOutput), ClusterType: pulumi.Int(2), NetworkMode: pulumi.Int(2), LogicalRegionId: *pulumi.String(defaultRegions.Regions[0].Id), VpcId: defaultNetwork.ID(), }) if err != nil { return err } defaultApplication, err := edas.NewApplication(ctx, "defaultApplication", &edas.ApplicationArgs{ ApplicationName: defaultRandomInteger.Result.ApplyT(func(result int) (string, error) { return fmt.Sprintf("%v-%v", name, result), nil }).(pulumi.StringOutput), ClusterId: defaultCluster.ID(), PackageType: pulumi.String("JAR"), }) if err != nil { return err } _, err = edas.NewDeployGroup(ctx, "defaultDeployGroup", &edas.DeployGroupArgs{ AppId: defaultApplication.ID(), GroupName: defaultRandomInteger.Result.ApplyT(func(result int) (string, error) { return fmt.Sprintf("%v-%v", name, result), nil }).(pulumi.StringOutput), }) if err != nil { return err } return nil }) }
```
## Import
EDAS deploy group can be imported using the id, e.g.
```sh $ pulumi import alicloud:edas/deployGroup:DeployGroup group app_id:group_name:group_id ```
func GetDeployGroup ¶
func GetDeployGroup(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DeployGroupState, opts ...pulumi.ResourceOption) (*DeployGroup, error)
GetDeployGroup gets an existing DeployGroup resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewDeployGroup ¶
func NewDeployGroup(ctx *pulumi.Context, name string, args *DeployGroupArgs, opts ...pulumi.ResourceOption) (*DeployGroup, error)
NewDeployGroup registers a new resource with the given unique name, arguments, and options.
func (*DeployGroup) ElementType ¶
func (*DeployGroup) ElementType() reflect.Type
func (*DeployGroup) ToDeployGroupOutput ¶
func (i *DeployGroup) ToDeployGroupOutput() DeployGroupOutput
func (*DeployGroup) ToDeployGroupOutputWithContext ¶
func (i *DeployGroup) ToDeployGroupOutputWithContext(ctx context.Context) DeployGroupOutput
type DeployGroupArgs ¶
type DeployGroupArgs struct { // The ID of the application that you want to deploy. AppId pulumi.StringInput // The name of the instance group that you want to create. GroupName pulumi.StringInput }
The set of arguments for constructing a DeployGroup resource.
func (DeployGroupArgs) ElementType ¶
func (DeployGroupArgs) ElementType() reflect.Type
type DeployGroupArray ¶
type DeployGroupArray []DeployGroupInput
func (DeployGroupArray) ElementType ¶
func (DeployGroupArray) ElementType() reflect.Type
func (DeployGroupArray) ToDeployGroupArrayOutput ¶
func (i DeployGroupArray) ToDeployGroupArrayOutput() DeployGroupArrayOutput
func (DeployGroupArray) ToDeployGroupArrayOutputWithContext ¶
func (i DeployGroupArray) ToDeployGroupArrayOutputWithContext(ctx context.Context) DeployGroupArrayOutput
type DeployGroupArrayInput ¶
type DeployGroupArrayInput interface { pulumi.Input ToDeployGroupArrayOutput() DeployGroupArrayOutput ToDeployGroupArrayOutputWithContext(context.Context) DeployGroupArrayOutput }
DeployGroupArrayInput is an input type that accepts DeployGroupArray and DeployGroupArrayOutput values. You can construct a concrete instance of `DeployGroupArrayInput` via:
DeployGroupArray{ DeployGroupArgs{...} }
type DeployGroupArrayOutput ¶
type DeployGroupArrayOutput struct{ *pulumi.OutputState }
func (DeployGroupArrayOutput) ElementType ¶
func (DeployGroupArrayOutput) ElementType() reflect.Type
func (DeployGroupArrayOutput) Index ¶
func (o DeployGroupArrayOutput) Index(i pulumi.IntInput) DeployGroupOutput
func (DeployGroupArrayOutput) ToDeployGroupArrayOutput ¶
func (o DeployGroupArrayOutput) ToDeployGroupArrayOutput() DeployGroupArrayOutput
func (DeployGroupArrayOutput) ToDeployGroupArrayOutputWithContext ¶
func (o DeployGroupArrayOutput) ToDeployGroupArrayOutputWithContext(ctx context.Context) DeployGroupArrayOutput
type DeployGroupInput ¶
type DeployGroupInput interface { pulumi.Input ToDeployGroupOutput() DeployGroupOutput ToDeployGroupOutputWithContext(ctx context.Context) DeployGroupOutput }
type DeployGroupMap ¶
type DeployGroupMap map[string]DeployGroupInput
func (DeployGroupMap) ElementType ¶
func (DeployGroupMap) ElementType() reflect.Type
func (DeployGroupMap) ToDeployGroupMapOutput ¶
func (i DeployGroupMap) ToDeployGroupMapOutput() DeployGroupMapOutput
func (DeployGroupMap) ToDeployGroupMapOutputWithContext ¶
func (i DeployGroupMap) ToDeployGroupMapOutputWithContext(ctx context.Context) DeployGroupMapOutput
type DeployGroupMapInput ¶
type DeployGroupMapInput interface { pulumi.Input ToDeployGroupMapOutput() DeployGroupMapOutput ToDeployGroupMapOutputWithContext(context.Context) DeployGroupMapOutput }
DeployGroupMapInput is an input type that accepts DeployGroupMap and DeployGroupMapOutput values. You can construct a concrete instance of `DeployGroupMapInput` via:
DeployGroupMap{ "key": DeployGroupArgs{...} }
type DeployGroupMapOutput ¶
type DeployGroupMapOutput struct{ *pulumi.OutputState }
func (DeployGroupMapOutput) ElementType ¶
func (DeployGroupMapOutput) ElementType() reflect.Type
func (DeployGroupMapOutput) MapIndex ¶
func (o DeployGroupMapOutput) MapIndex(k pulumi.StringInput) DeployGroupOutput
func (DeployGroupMapOutput) ToDeployGroupMapOutput ¶
func (o DeployGroupMapOutput) ToDeployGroupMapOutput() DeployGroupMapOutput
func (DeployGroupMapOutput) ToDeployGroupMapOutputWithContext ¶
func (o DeployGroupMapOutput) ToDeployGroupMapOutputWithContext(ctx context.Context) DeployGroupMapOutput
type DeployGroupOutput ¶
type DeployGroupOutput struct{ *pulumi.OutputState }
func (DeployGroupOutput) AppId ¶ added in v3.27.0
func (o DeployGroupOutput) AppId() pulumi.StringOutput
The ID of the application that you want to deploy.
func (DeployGroupOutput) ElementType ¶
func (DeployGroupOutput) ElementType() reflect.Type
func (DeployGroupOutput) GroupName ¶ added in v3.27.0
func (o DeployGroupOutput) GroupName() pulumi.StringOutput
The name of the instance group that you want to create.
func (DeployGroupOutput) GroupType ¶ added in v3.27.0
func (o DeployGroupOutput) GroupType() pulumi.IntOutput
The type of the instance group that you want to create. Valid values: 0: Default group. 1: Phased release is disabled for traffic management. 2: Phased release is enabled for traffic management.
func (DeployGroupOutput) ToDeployGroupOutput ¶
func (o DeployGroupOutput) ToDeployGroupOutput() DeployGroupOutput
func (DeployGroupOutput) ToDeployGroupOutputWithContext ¶
func (o DeployGroupOutput) ToDeployGroupOutputWithContext(ctx context.Context) DeployGroupOutput
type DeployGroupState ¶
type DeployGroupState struct { // The ID of the application that you want to deploy. AppId pulumi.StringPtrInput // The name of the instance group that you want to create. GroupName pulumi.StringPtrInput // The type of the instance group that you want to create. Valid values: 0: Default group. 1: Phased release is disabled for traffic management. 2: Phased release is enabled for traffic management. GroupType pulumi.IntPtrInput }
func (DeployGroupState) ElementType ¶
func (DeployGroupState) ElementType() reflect.Type
type GetApplicationsApplication ¶
type GetApplicationsApplication struct { // The ID of the application that you want to deploy. AppId string `pulumi:"appId"` // The name of your EDAS application. Only letters '-' '_' and numbers are allowed. The length cannot exceed 36 characters. AppName string `pulumi:"appName"` // The type of the package for the deployment of the application that you want to create. The valid values are: WAR and JAR. We strongly recommend you to set this parameter when creating the application. ApplicationType string `pulumi:"applicationType"` // The package ID of Enterprise Distributed Application Service (EDAS) Container. BuildPackageId int `pulumi:"buildPackageId"` // The ID of the cluster that you want to create the application. ClusterId string `pulumi:"clusterId"` // The type of the cluster that you want to create. Valid values: 1: Swarm cluster. 2: ECS cluster. 3: Kubernetes cluster. ClusterType int `pulumi:"clusterType"` // The ID of the namespace the application belongs to. RegionId string `pulumi:"regionId"` }
type GetApplicationsApplicationArgs ¶
type GetApplicationsApplicationArgs struct { // The ID of the application that you want to deploy. AppId pulumi.StringInput `pulumi:"appId"` // The name of your EDAS application. Only letters '-' '_' and numbers are allowed. The length cannot exceed 36 characters. AppName pulumi.StringInput `pulumi:"appName"` // The type of the package for the deployment of the application that you want to create. The valid values are: WAR and JAR. We strongly recommend you to set this parameter when creating the application. ApplicationType pulumi.StringInput `pulumi:"applicationType"` // The package ID of Enterprise Distributed Application Service (EDAS) Container. BuildPackageId pulumi.IntInput `pulumi:"buildPackageId"` // The ID of the cluster that you want to create the application. ClusterId pulumi.StringInput `pulumi:"clusterId"` // The type of the cluster that you want to create. Valid values: 1: Swarm cluster. 2: ECS cluster. 3: Kubernetes cluster. ClusterType pulumi.IntInput `pulumi:"clusterType"` // The ID of the namespace the application belongs to. RegionId pulumi.StringInput `pulumi:"regionId"` }
func (GetApplicationsApplicationArgs) ElementType ¶
func (GetApplicationsApplicationArgs) ElementType() reflect.Type
func (GetApplicationsApplicationArgs) ToGetApplicationsApplicationOutput ¶
func (i GetApplicationsApplicationArgs) ToGetApplicationsApplicationOutput() GetApplicationsApplicationOutput
func (GetApplicationsApplicationArgs) ToGetApplicationsApplicationOutputWithContext ¶
func (i GetApplicationsApplicationArgs) ToGetApplicationsApplicationOutputWithContext(ctx context.Context) GetApplicationsApplicationOutput
type GetApplicationsApplicationArray ¶
type GetApplicationsApplicationArray []GetApplicationsApplicationInput
func (GetApplicationsApplicationArray) ElementType ¶
func (GetApplicationsApplicationArray) ElementType() reflect.Type
func (GetApplicationsApplicationArray) ToGetApplicationsApplicationArrayOutput ¶
func (i GetApplicationsApplicationArray) ToGetApplicationsApplicationArrayOutput() GetApplicationsApplicationArrayOutput
func (GetApplicationsApplicationArray) ToGetApplicationsApplicationArrayOutputWithContext ¶
func (i GetApplicationsApplicationArray) ToGetApplicationsApplicationArrayOutputWithContext(ctx context.Context) GetApplicationsApplicationArrayOutput
type GetApplicationsApplicationArrayInput ¶
type GetApplicationsApplicationArrayInput interface { pulumi.Input ToGetApplicationsApplicationArrayOutput() GetApplicationsApplicationArrayOutput ToGetApplicationsApplicationArrayOutputWithContext(context.Context) GetApplicationsApplicationArrayOutput }
GetApplicationsApplicationArrayInput is an input type that accepts GetApplicationsApplicationArray and GetApplicationsApplicationArrayOutput values. You can construct a concrete instance of `GetApplicationsApplicationArrayInput` via:
GetApplicationsApplicationArray{ GetApplicationsApplicationArgs{...} }
type GetApplicationsApplicationArrayOutput ¶
type GetApplicationsApplicationArrayOutput struct{ *pulumi.OutputState }
func (GetApplicationsApplicationArrayOutput) ElementType ¶
func (GetApplicationsApplicationArrayOutput) ElementType() reflect.Type
func (GetApplicationsApplicationArrayOutput) Index ¶
func (o GetApplicationsApplicationArrayOutput) Index(i pulumi.IntInput) GetApplicationsApplicationOutput
func (GetApplicationsApplicationArrayOutput) ToGetApplicationsApplicationArrayOutput ¶
func (o GetApplicationsApplicationArrayOutput) ToGetApplicationsApplicationArrayOutput() GetApplicationsApplicationArrayOutput
func (GetApplicationsApplicationArrayOutput) ToGetApplicationsApplicationArrayOutputWithContext ¶
func (o GetApplicationsApplicationArrayOutput) ToGetApplicationsApplicationArrayOutputWithContext(ctx context.Context) GetApplicationsApplicationArrayOutput
type GetApplicationsApplicationInput ¶
type GetApplicationsApplicationInput interface { pulumi.Input ToGetApplicationsApplicationOutput() GetApplicationsApplicationOutput ToGetApplicationsApplicationOutputWithContext(context.Context) GetApplicationsApplicationOutput }
GetApplicationsApplicationInput is an input type that accepts GetApplicationsApplicationArgs and GetApplicationsApplicationOutput values. You can construct a concrete instance of `GetApplicationsApplicationInput` via:
GetApplicationsApplicationArgs{...}
type GetApplicationsApplicationOutput ¶
type GetApplicationsApplicationOutput struct{ *pulumi.OutputState }
func (GetApplicationsApplicationOutput) AppId ¶
func (o GetApplicationsApplicationOutput) AppId() pulumi.StringOutput
The ID of the application that you want to deploy.
func (GetApplicationsApplicationOutput) AppName ¶
func (o GetApplicationsApplicationOutput) AppName() pulumi.StringOutput
The name of your EDAS application. Only letters '-' '_' and numbers are allowed. The length cannot exceed 36 characters.
func (GetApplicationsApplicationOutput) ApplicationType ¶
func (o GetApplicationsApplicationOutput) ApplicationType() pulumi.StringOutput
The type of the package for the deployment of the application that you want to create. The valid values are: WAR and JAR. We strongly recommend you to set this parameter when creating the application.
func (GetApplicationsApplicationOutput) BuildPackageId ¶
func (o GetApplicationsApplicationOutput) BuildPackageId() pulumi.IntOutput
The package ID of Enterprise Distributed Application Service (EDAS) Container.
func (GetApplicationsApplicationOutput) ClusterId ¶
func (o GetApplicationsApplicationOutput) ClusterId() pulumi.StringOutput
The ID of the cluster that you want to create the application.
func (GetApplicationsApplicationOutput) ClusterType ¶
func (o GetApplicationsApplicationOutput) ClusterType() pulumi.IntOutput
The type of the cluster that you want to create. Valid values: 1: Swarm cluster. 2: ECS cluster. 3: Kubernetes cluster.
func (GetApplicationsApplicationOutput) ElementType ¶
func (GetApplicationsApplicationOutput) ElementType() reflect.Type
func (GetApplicationsApplicationOutput) RegionId ¶
func (o GetApplicationsApplicationOutput) RegionId() pulumi.StringOutput
The ID of the namespace the application belongs to.
func (GetApplicationsApplicationOutput) ToGetApplicationsApplicationOutput ¶
func (o GetApplicationsApplicationOutput) ToGetApplicationsApplicationOutput() GetApplicationsApplicationOutput
func (GetApplicationsApplicationOutput) ToGetApplicationsApplicationOutputWithContext ¶
func (o GetApplicationsApplicationOutput) ToGetApplicationsApplicationOutputWithContext(ctx context.Context) GetApplicationsApplicationOutput
type GetApplicationsArgs ¶
type GetApplicationsArgs struct { // An ids string to filter results by the application id. Ids []string `pulumi:"ids"` // A regex string to filter results by the application name. NameRegex *string `pulumi:"nameRegex"` // File name where to save data source results (after running `pulumi preview`). OutputFile *string `pulumi:"outputFile"` }
A collection of arguments for invoking getApplications.
type GetApplicationsOutputArgs ¶ added in v3.9.0
type GetApplicationsOutputArgs struct { // An ids string to filter results by the application id. Ids pulumi.StringArrayInput `pulumi:"ids"` // A regex string to filter results by the application name. NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"` // File name where to save data source results (after running `pulumi preview`). OutputFile pulumi.StringPtrInput `pulumi:"outputFile"` }
A collection of arguments for invoking getApplications.
func (GetApplicationsOutputArgs) ElementType ¶ added in v3.9.0
func (GetApplicationsOutputArgs) ElementType() reflect.Type
type GetApplicationsResult ¶
type GetApplicationsResult struct { // A list of applications. Applications []GetApplicationsApplication `pulumi:"applications"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // A list of application IDs. Ids []string `pulumi:"ids"` NameRegex *string `pulumi:"nameRegex"` // A list of applications names. Names []string `pulumi:"names"` OutputFile *string `pulumi:"outputFile"` }
A collection of values returned by getApplications.
func GetApplications ¶
func GetApplications(ctx *pulumi.Context, args *GetApplicationsArgs, opts ...pulumi.InvokeOption) (*GetApplicationsResult, error)
This data source provides a list of EDAS application in an Alibaba Cloud account according to the specified filters.
> **NOTE:** Available in 1.82.0+
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/edas" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { applications, err := edas.GetApplications(ctx, &edas.GetApplicationsArgs{ Ids: []string{ "xxx", }, OutputFile: pulumi.StringRef("application.txt"), }, nil) if err != nil { return err } ctx.Export("firstApplicationName", applications.Applications[0].AppName) return nil }) }
```
type GetApplicationsResultOutput ¶ added in v3.9.0
type GetApplicationsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getApplications.
func GetApplicationsOutput ¶ added in v3.9.0
func GetApplicationsOutput(ctx *pulumi.Context, args GetApplicationsOutputArgs, opts ...pulumi.InvokeOption) GetApplicationsResultOutput
func (GetApplicationsResultOutput) Applications ¶ added in v3.9.0
func (o GetApplicationsResultOutput) Applications() GetApplicationsApplicationArrayOutput
A list of applications.
func (GetApplicationsResultOutput) ElementType ¶ added in v3.9.0
func (GetApplicationsResultOutput) ElementType() reflect.Type
func (GetApplicationsResultOutput) Id ¶ added in v3.9.0
func (o GetApplicationsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetApplicationsResultOutput) Ids ¶ added in v3.9.0
func (o GetApplicationsResultOutput) Ids() pulumi.StringArrayOutput
A list of application IDs.
func (GetApplicationsResultOutput) NameRegex ¶ added in v3.9.0
func (o GetApplicationsResultOutput) NameRegex() pulumi.StringPtrOutput
func (GetApplicationsResultOutput) Names ¶ added in v3.9.0
func (o GetApplicationsResultOutput) Names() pulumi.StringArrayOutput
A list of applications names.
func (GetApplicationsResultOutput) OutputFile ¶ added in v3.9.0
func (o GetApplicationsResultOutput) OutputFile() pulumi.StringPtrOutput
func (GetApplicationsResultOutput) ToGetApplicationsResultOutput ¶ added in v3.9.0
func (o GetApplicationsResultOutput) ToGetApplicationsResultOutput() GetApplicationsResultOutput
func (GetApplicationsResultOutput) ToGetApplicationsResultOutputWithContext ¶ added in v3.9.0
func (o GetApplicationsResultOutput) ToGetApplicationsResultOutputWithContext(ctx context.Context) GetApplicationsResultOutput
type GetClustersArgs ¶
type GetClustersArgs struct { // An ids string to filter results by the cluster id. Ids []string `pulumi:"ids"` // ID of the namespace in EDAS. LogicalRegionId string `pulumi:"logicalRegionId"` // A regex string to filter results by the cluster name. NameRegex *string `pulumi:"nameRegex"` // File name where to save data source results (after running `pulumi preview`). OutputFile *string `pulumi:"outputFile"` }
A collection of arguments for invoking getClusters.
type GetClustersCluster ¶
type GetClustersCluster struct { // The ID of the cluster that you want to create the application. ClusterId string `pulumi:"clusterId"` // The name of the cluster. ClusterName string `pulumi:"clusterName"` // The type of the cluster, Valid values: 1: Swarm cluster. 2: ECS cluster. 3: Kubernetes cluster. ClusterType int `pulumi:"clusterType"` // The total number of CPUs in the cluster. Cpu int `pulumi:"cpu"` // The number of used CPUs in the cluster. CpuUsed int `pulumi:"cpuUsed"` // Cluster's creation time. CreateTime int `pulumi:"createTime"` // The total amount of memory in the cluser. Unit: MB. Mem int `pulumi:"mem"` // The amount of used memory in the cluser. Unit: MB. MemUsed int `pulumi:"memUsed"` // The network type of the cluster. Valid values: 1: classic network. 2: VPC. NetworkMode int `pulumi:"networkMode"` // The number of the Elastic Compute Service (ECS) instances that are deployed to the cluster. NodeNum int `pulumi:"nodeNum"` // The ID of the namespace the application belongs to. RegionId string `pulumi:"regionId"` // The time when the cluster was last updated. UpdateTime int `pulumi:"updateTime"` // The ID of the Virtual Private Cloud (VPC) for the cluster. VpcId string `pulumi:"vpcId"` }
type GetClustersClusterArgs ¶
type GetClustersClusterArgs struct { // The ID of the cluster that you want to create the application. ClusterId pulumi.StringInput `pulumi:"clusterId"` // The name of the cluster. ClusterName pulumi.StringInput `pulumi:"clusterName"` // The type of the cluster, Valid values: 1: Swarm cluster. 2: ECS cluster. 3: Kubernetes cluster. ClusterType pulumi.IntInput `pulumi:"clusterType"` // The total number of CPUs in the cluster. Cpu pulumi.IntInput `pulumi:"cpu"` // The number of used CPUs in the cluster. CpuUsed pulumi.IntInput `pulumi:"cpuUsed"` // Cluster's creation time. CreateTime pulumi.IntInput `pulumi:"createTime"` // The total amount of memory in the cluser. Unit: MB. Mem pulumi.IntInput `pulumi:"mem"` // The amount of used memory in the cluser. Unit: MB. MemUsed pulumi.IntInput `pulumi:"memUsed"` // The network type of the cluster. Valid values: 1: classic network. 2: VPC. NetworkMode pulumi.IntInput `pulumi:"networkMode"` // The number of the Elastic Compute Service (ECS) instances that are deployed to the cluster. NodeNum pulumi.IntInput `pulumi:"nodeNum"` // The ID of the namespace the application belongs to. RegionId pulumi.StringInput `pulumi:"regionId"` // The time when the cluster was last updated. UpdateTime pulumi.IntInput `pulumi:"updateTime"` // The ID of the Virtual Private Cloud (VPC) for the cluster. VpcId pulumi.StringInput `pulumi:"vpcId"` }
func (GetClustersClusterArgs) ElementType ¶
func (GetClustersClusterArgs) ElementType() reflect.Type
func (GetClustersClusterArgs) ToGetClustersClusterOutput ¶
func (i GetClustersClusterArgs) ToGetClustersClusterOutput() GetClustersClusterOutput
func (GetClustersClusterArgs) ToGetClustersClusterOutputWithContext ¶
func (i GetClustersClusterArgs) ToGetClustersClusterOutputWithContext(ctx context.Context) GetClustersClusterOutput
type GetClustersClusterArray ¶
type GetClustersClusterArray []GetClustersClusterInput
func (GetClustersClusterArray) ElementType ¶
func (GetClustersClusterArray) ElementType() reflect.Type
func (GetClustersClusterArray) ToGetClustersClusterArrayOutput ¶
func (i GetClustersClusterArray) ToGetClustersClusterArrayOutput() GetClustersClusterArrayOutput
func (GetClustersClusterArray) ToGetClustersClusterArrayOutputWithContext ¶
func (i GetClustersClusterArray) ToGetClustersClusterArrayOutputWithContext(ctx context.Context) GetClustersClusterArrayOutput
type GetClustersClusterArrayInput ¶
type GetClustersClusterArrayInput interface { pulumi.Input ToGetClustersClusterArrayOutput() GetClustersClusterArrayOutput ToGetClustersClusterArrayOutputWithContext(context.Context) GetClustersClusterArrayOutput }
GetClustersClusterArrayInput is an input type that accepts GetClustersClusterArray and GetClustersClusterArrayOutput values. You can construct a concrete instance of `GetClustersClusterArrayInput` via:
GetClustersClusterArray{ GetClustersClusterArgs{...} }
type GetClustersClusterArrayOutput ¶
type GetClustersClusterArrayOutput struct{ *pulumi.OutputState }
func (GetClustersClusterArrayOutput) ElementType ¶
func (GetClustersClusterArrayOutput) ElementType() reflect.Type
func (GetClustersClusterArrayOutput) Index ¶
func (o GetClustersClusterArrayOutput) Index(i pulumi.IntInput) GetClustersClusterOutput
func (GetClustersClusterArrayOutput) ToGetClustersClusterArrayOutput ¶
func (o GetClustersClusterArrayOutput) ToGetClustersClusterArrayOutput() GetClustersClusterArrayOutput
func (GetClustersClusterArrayOutput) ToGetClustersClusterArrayOutputWithContext ¶
func (o GetClustersClusterArrayOutput) ToGetClustersClusterArrayOutputWithContext(ctx context.Context) GetClustersClusterArrayOutput
type GetClustersClusterInput ¶
type GetClustersClusterInput interface { pulumi.Input ToGetClustersClusterOutput() GetClustersClusterOutput ToGetClustersClusterOutputWithContext(context.Context) GetClustersClusterOutput }
GetClustersClusterInput is an input type that accepts GetClustersClusterArgs and GetClustersClusterOutput values. You can construct a concrete instance of `GetClustersClusterInput` via:
GetClustersClusterArgs{...}
type GetClustersClusterOutput ¶
type GetClustersClusterOutput struct{ *pulumi.OutputState }
func (GetClustersClusterOutput) ClusterId ¶
func (o GetClustersClusterOutput) ClusterId() pulumi.StringOutput
The ID of the cluster that you want to create the application.
func (GetClustersClusterOutput) ClusterName ¶
func (o GetClustersClusterOutput) ClusterName() pulumi.StringOutput
The name of the cluster.
func (GetClustersClusterOutput) ClusterType ¶
func (o GetClustersClusterOutput) ClusterType() pulumi.IntOutput
The type of the cluster, Valid values: 1: Swarm cluster. 2: ECS cluster. 3: Kubernetes cluster.
func (GetClustersClusterOutput) Cpu ¶
func (o GetClustersClusterOutput) Cpu() pulumi.IntOutput
The total number of CPUs in the cluster.
func (GetClustersClusterOutput) CpuUsed ¶
func (o GetClustersClusterOutput) CpuUsed() pulumi.IntOutput
The number of used CPUs in the cluster.
func (GetClustersClusterOutput) CreateTime ¶
func (o GetClustersClusterOutput) CreateTime() pulumi.IntOutput
Cluster's creation time.
func (GetClustersClusterOutput) ElementType ¶
func (GetClustersClusterOutput) ElementType() reflect.Type
func (GetClustersClusterOutput) Mem ¶
func (o GetClustersClusterOutput) Mem() pulumi.IntOutput
The total amount of memory in the cluser. Unit: MB.
func (GetClustersClusterOutput) MemUsed ¶
func (o GetClustersClusterOutput) MemUsed() pulumi.IntOutput
The amount of used memory in the cluser. Unit: MB.
func (GetClustersClusterOutput) NetworkMode ¶
func (o GetClustersClusterOutput) NetworkMode() pulumi.IntOutput
The network type of the cluster. Valid values: 1: classic network. 2: VPC.
func (GetClustersClusterOutput) NodeNum ¶
func (o GetClustersClusterOutput) NodeNum() pulumi.IntOutput
The number of the Elastic Compute Service (ECS) instances that are deployed to the cluster.
func (GetClustersClusterOutput) RegionId ¶
func (o GetClustersClusterOutput) RegionId() pulumi.StringOutput
The ID of the namespace the application belongs to.
func (GetClustersClusterOutput) ToGetClustersClusterOutput ¶
func (o GetClustersClusterOutput) ToGetClustersClusterOutput() GetClustersClusterOutput
func (GetClustersClusterOutput) ToGetClustersClusterOutputWithContext ¶
func (o GetClustersClusterOutput) ToGetClustersClusterOutputWithContext(ctx context.Context) GetClustersClusterOutput
func (GetClustersClusterOutput) UpdateTime ¶
func (o GetClustersClusterOutput) UpdateTime() pulumi.IntOutput
The time when the cluster was last updated.
func (GetClustersClusterOutput) VpcId ¶
func (o GetClustersClusterOutput) VpcId() pulumi.StringOutput
The ID of the Virtual Private Cloud (VPC) for the cluster.
type GetClustersOutputArgs ¶ added in v3.9.0
type GetClustersOutputArgs struct { // An ids string to filter results by the cluster id. Ids pulumi.StringArrayInput `pulumi:"ids"` // ID of the namespace in EDAS. LogicalRegionId pulumi.StringInput `pulumi:"logicalRegionId"` // A regex string to filter results by the cluster name. NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"` // File name where to save data source results (after running `pulumi preview`). OutputFile pulumi.StringPtrInput `pulumi:"outputFile"` }
A collection of arguments for invoking getClusters.
func (GetClustersOutputArgs) ElementType ¶ added in v3.9.0
func (GetClustersOutputArgs) ElementType() reflect.Type
type GetClustersResult ¶
type GetClustersResult struct { // A list of clusters. Clusters []GetClustersCluster `pulumi:"clusters"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // A list of cluster IDs. Ids []string `pulumi:"ids"` LogicalRegionId string `pulumi:"logicalRegionId"` NameRegex *string `pulumi:"nameRegex"` // A list of cluster names. Names []string `pulumi:"names"` OutputFile *string `pulumi:"outputFile"` }
A collection of values returned by getClusters.
func GetClusters ¶
func GetClusters(ctx *pulumi.Context, args *GetClustersArgs, opts ...pulumi.InvokeOption) (*GetClustersResult, error)
This data source provides a list of EDAS clusters in an Alibaba Cloud account according to the specified filters.
> **NOTE:** Available in 1.82.0+
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/edas" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := edas.GetClusters(ctx, &edas.GetClustersArgs{ LogicalRegionId: "cn-shenzhen:xxx", Ids: []string{ "addfs-dfsasd", }, OutputFile: pulumi.StringRef("clusters.txt"), }, nil) if err != nil { return err } ctx.Export("firstClusterName", data.Alicloud_alikafka_consumer_groups.Clusters.Clusters[0].Cluster_name) return nil }) }
```
type GetClustersResultOutput ¶ added in v3.9.0
type GetClustersResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getClusters.
func GetClustersOutput ¶ added in v3.9.0
func GetClustersOutput(ctx *pulumi.Context, args GetClustersOutputArgs, opts ...pulumi.InvokeOption) GetClustersResultOutput
func (GetClustersResultOutput) Clusters ¶ added in v3.9.0
func (o GetClustersResultOutput) Clusters() GetClustersClusterArrayOutput
A list of clusters.
func (GetClustersResultOutput) ElementType ¶ added in v3.9.0
func (GetClustersResultOutput) ElementType() reflect.Type
func (GetClustersResultOutput) Id ¶ added in v3.9.0
func (o GetClustersResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetClustersResultOutput) Ids ¶ added in v3.9.0
func (o GetClustersResultOutput) Ids() pulumi.StringArrayOutput
A list of cluster IDs.
func (GetClustersResultOutput) LogicalRegionId ¶ added in v3.9.0
func (o GetClustersResultOutput) LogicalRegionId() pulumi.StringOutput
func (GetClustersResultOutput) NameRegex ¶ added in v3.9.0
func (o GetClustersResultOutput) NameRegex() pulumi.StringPtrOutput
func (GetClustersResultOutput) Names ¶ added in v3.9.0
func (o GetClustersResultOutput) Names() pulumi.StringArrayOutput
A list of cluster names.
func (GetClustersResultOutput) OutputFile ¶ added in v3.9.0
func (o GetClustersResultOutput) OutputFile() pulumi.StringPtrOutput
func (GetClustersResultOutput) ToGetClustersResultOutput ¶ added in v3.9.0
func (o GetClustersResultOutput) ToGetClustersResultOutput() GetClustersResultOutput
func (GetClustersResultOutput) ToGetClustersResultOutputWithContext ¶ added in v3.9.0
func (o GetClustersResultOutput) ToGetClustersResultOutputWithContext(ctx context.Context) GetClustersResultOutput
type GetDeployGroupsArgs ¶
type GetDeployGroupsArgs struct { // ID of the EDAS application. AppId string `pulumi:"appId"` // A regex string to filter results by the deploy group name. NameRegex *string `pulumi:"nameRegex"` // File name where to save data source results (after running `pulumi preview`). OutputFile *string `pulumi:"outputFile"` }
A collection of arguments for invoking getDeployGroups.
type GetDeployGroupsGroup ¶
type GetDeployGroupsGroup struct { // ID of the EDAS application. AppId string `pulumi:"appId"` // The version of the deployment package for the application. AppVersionId string `pulumi:"appVersionId"` // The ID of the cluster that you want to create the application. ClusterId string `pulumi:"clusterId"` // The time when the instance group was created. CreateTime int `pulumi:"createTime"` // The ID of the instance group. GroupId string `pulumi:"groupId"` // The name of the instance group. The length cannot exceed 64 characters. GroupName string `pulumi:"groupName"` // The type of the instance group. Valid values: 0: Default group. 1: Phased release is disabled for traffic management. 2: Phased release is enabled for traffic management. GroupType int `pulumi:"groupType"` // The version of the deployment package for the instance group that was created. PackageVersionId string `pulumi:"packageVersionId"` // The time when the instance group was updated. UpdateTime int `pulumi:"updateTime"` }
type GetDeployGroupsGroupArgs ¶
type GetDeployGroupsGroupArgs struct { // ID of the EDAS application. AppId pulumi.StringInput `pulumi:"appId"` // The version of the deployment package for the application. AppVersionId pulumi.StringInput `pulumi:"appVersionId"` // The ID of the cluster that you want to create the application. ClusterId pulumi.StringInput `pulumi:"clusterId"` // The time when the instance group was created. CreateTime pulumi.IntInput `pulumi:"createTime"` // The ID of the instance group. GroupId pulumi.StringInput `pulumi:"groupId"` // The name of the instance group. The length cannot exceed 64 characters. GroupName pulumi.StringInput `pulumi:"groupName"` // The type of the instance group. Valid values: 0: Default group. 1: Phased release is disabled for traffic management. 2: Phased release is enabled for traffic management. GroupType pulumi.IntInput `pulumi:"groupType"` // The version of the deployment package for the instance group that was created. PackageVersionId pulumi.StringInput `pulumi:"packageVersionId"` // The time when the instance group was updated. UpdateTime pulumi.IntInput `pulumi:"updateTime"` }
func (GetDeployGroupsGroupArgs) ElementType ¶
func (GetDeployGroupsGroupArgs) ElementType() reflect.Type
func (GetDeployGroupsGroupArgs) ToGetDeployGroupsGroupOutput ¶
func (i GetDeployGroupsGroupArgs) ToGetDeployGroupsGroupOutput() GetDeployGroupsGroupOutput
func (GetDeployGroupsGroupArgs) ToGetDeployGroupsGroupOutputWithContext ¶
func (i GetDeployGroupsGroupArgs) ToGetDeployGroupsGroupOutputWithContext(ctx context.Context) GetDeployGroupsGroupOutput
type GetDeployGroupsGroupArray ¶
type GetDeployGroupsGroupArray []GetDeployGroupsGroupInput
func (GetDeployGroupsGroupArray) ElementType ¶
func (GetDeployGroupsGroupArray) ElementType() reflect.Type
func (GetDeployGroupsGroupArray) ToGetDeployGroupsGroupArrayOutput ¶
func (i GetDeployGroupsGroupArray) ToGetDeployGroupsGroupArrayOutput() GetDeployGroupsGroupArrayOutput
func (GetDeployGroupsGroupArray) ToGetDeployGroupsGroupArrayOutputWithContext ¶
func (i GetDeployGroupsGroupArray) ToGetDeployGroupsGroupArrayOutputWithContext(ctx context.Context) GetDeployGroupsGroupArrayOutput
type GetDeployGroupsGroupArrayInput ¶
type GetDeployGroupsGroupArrayInput interface { pulumi.Input ToGetDeployGroupsGroupArrayOutput() GetDeployGroupsGroupArrayOutput ToGetDeployGroupsGroupArrayOutputWithContext(context.Context) GetDeployGroupsGroupArrayOutput }
GetDeployGroupsGroupArrayInput is an input type that accepts GetDeployGroupsGroupArray and GetDeployGroupsGroupArrayOutput values. You can construct a concrete instance of `GetDeployGroupsGroupArrayInput` via:
GetDeployGroupsGroupArray{ GetDeployGroupsGroupArgs{...} }
type GetDeployGroupsGroupArrayOutput ¶
type GetDeployGroupsGroupArrayOutput struct{ *pulumi.OutputState }
func (GetDeployGroupsGroupArrayOutput) ElementType ¶
func (GetDeployGroupsGroupArrayOutput) ElementType() reflect.Type
func (GetDeployGroupsGroupArrayOutput) Index ¶
func (o GetDeployGroupsGroupArrayOutput) Index(i pulumi.IntInput) GetDeployGroupsGroupOutput
func (GetDeployGroupsGroupArrayOutput) ToGetDeployGroupsGroupArrayOutput ¶
func (o GetDeployGroupsGroupArrayOutput) ToGetDeployGroupsGroupArrayOutput() GetDeployGroupsGroupArrayOutput
func (GetDeployGroupsGroupArrayOutput) ToGetDeployGroupsGroupArrayOutputWithContext ¶
func (o GetDeployGroupsGroupArrayOutput) ToGetDeployGroupsGroupArrayOutputWithContext(ctx context.Context) GetDeployGroupsGroupArrayOutput
type GetDeployGroupsGroupInput ¶
type GetDeployGroupsGroupInput interface { pulumi.Input ToGetDeployGroupsGroupOutput() GetDeployGroupsGroupOutput ToGetDeployGroupsGroupOutputWithContext(context.Context) GetDeployGroupsGroupOutput }
GetDeployGroupsGroupInput is an input type that accepts GetDeployGroupsGroupArgs and GetDeployGroupsGroupOutput values. You can construct a concrete instance of `GetDeployGroupsGroupInput` via:
GetDeployGroupsGroupArgs{...}
type GetDeployGroupsGroupOutput ¶
type GetDeployGroupsGroupOutput struct{ *pulumi.OutputState }
func (GetDeployGroupsGroupOutput) AppId ¶
func (o GetDeployGroupsGroupOutput) AppId() pulumi.StringOutput
ID of the EDAS application.
func (GetDeployGroupsGroupOutput) AppVersionId ¶
func (o GetDeployGroupsGroupOutput) AppVersionId() pulumi.StringOutput
The version of the deployment package for the application.
func (GetDeployGroupsGroupOutput) ClusterId ¶
func (o GetDeployGroupsGroupOutput) ClusterId() pulumi.StringOutput
The ID of the cluster that you want to create the application.
func (GetDeployGroupsGroupOutput) CreateTime ¶
func (o GetDeployGroupsGroupOutput) CreateTime() pulumi.IntOutput
The time when the instance group was created.
func (GetDeployGroupsGroupOutput) ElementType ¶
func (GetDeployGroupsGroupOutput) ElementType() reflect.Type
func (GetDeployGroupsGroupOutput) GroupId ¶
func (o GetDeployGroupsGroupOutput) GroupId() pulumi.StringOutput
The ID of the instance group.
func (GetDeployGroupsGroupOutput) GroupName ¶
func (o GetDeployGroupsGroupOutput) GroupName() pulumi.StringOutput
The name of the instance group. The length cannot exceed 64 characters.
func (GetDeployGroupsGroupOutput) GroupType ¶
func (o GetDeployGroupsGroupOutput) GroupType() pulumi.IntOutput
The type of the instance group. Valid values: 0: Default group. 1: Phased release is disabled for traffic management. 2: Phased release is enabled for traffic management.
func (GetDeployGroupsGroupOutput) PackageVersionId ¶
func (o GetDeployGroupsGroupOutput) PackageVersionId() pulumi.StringOutput
The version of the deployment package for the instance group that was created.
func (GetDeployGroupsGroupOutput) ToGetDeployGroupsGroupOutput ¶
func (o GetDeployGroupsGroupOutput) ToGetDeployGroupsGroupOutput() GetDeployGroupsGroupOutput
func (GetDeployGroupsGroupOutput) ToGetDeployGroupsGroupOutputWithContext ¶
func (o GetDeployGroupsGroupOutput) ToGetDeployGroupsGroupOutputWithContext(ctx context.Context) GetDeployGroupsGroupOutput
func (GetDeployGroupsGroupOutput) UpdateTime ¶
func (o GetDeployGroupsGroupOutput) UpdateTime() pulumi.IntOutput
The time when the instance group was updated.
type GetDeployGroupsOutputArgs ¶ added in v3.9.0
type GetDeployGroupsOutputArgs struct { // ID of the EDAS application. AppId pulumi.StringInput `pulumi:"appId"` // A regex string to filter results by the deploy group name. NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"` // File name where to save data source results (after running `pulumi preview`). OutputFile pulumi.StringPtrInput `pulumi:"outputFile"` }
A collection of arguments for invoking getDeployGroups.
func (GetDeployGroupsOutputArgs) ElementType ¶ added in v3.9.0
func (GetDeployGroupsOutputArgs) ElementType() reflect.Type
type GetDeployGroupsResult ¶
type GetDeployGroupsResult struct { // The ID of the application that you want to deploy. AppId string `pulumi:"appId"` // A list of consumer group ids. Groups []GetDeployGroupsGroup `pulumi:"groups"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` NameRegex *string `pulumi:"nameRegex"` // A list of deploy group names. Names []string `pulumi:"names"` OutputFile *string `pulumi:"outputFile"` }
A collection of values returned by getDeployGroups.
func GetDeployGroups ¶
func GetDeployGroups(ctx *pulumi.Context, args *GetDeployGroupsArgs, opts ...pulumi.InvokeOption) (*GetDeployGroupsResult, error)
This data source provides a list of EDAS deploy groups in an Alibaba Cloud account according to the specified filters.
> **NOTE:** Available in 1.82.0+
type GetDeployGroupsResultOutput ¶ added in v3.9.0
type GetDeployGroupsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getDeployGroups.
func GetDeployGroupsOutput ¶ added in v3.9.0
func GetDeployGroupsOutput(ctx *pulumi.Context, args GetDeployGroupsOutputArgs, opts ...pulumi.InvokeOption) GetDeployGroupsResultOutput
func (GetDeployGroupsResultOutput) AppId ¶ added in v3.9.0
func (o GetDeployGroupsResultOutput) AppId() pulumi.StringOutput
The ID of the application that you want to deploy.
func (GetDeployGroupsResultOutput) ElementType ¶ added in v3.9.0
func (GetDeployGroupsResultOutput) ElementType() reflect.Type
func (GetDeployGroupsResultOutput) Groups ¶ added in v3.9.0
func (o GetDeployGroupsResultOutput) Groups() GetDeployGroupsGroupArrayOutput
A list of consumer group ids.
func (GetDeployGroupsResultOutput) Id ¶ added in v3.9.0
func (o GetDeployGroupsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetDeployGroupsResultOutput) NameRegex ¶ added in v3.9.0
func (o GetDeployGroupsResultOutput) NameRegex() pulumi.StringPtrOutput
func (GetDeployGroupsResultOutput) Names ¶ added in v3.9.0
func (o GetDeployGroupsResultOutput) Names() pulumi.StringArrayOutput
A list of deploy group names.
func (GetDeployGroupsResultOutput) OutputFile ¶ added in v3.9.0
func (o GetDeployGroupsResultOutput) OutputFile() pulumi.StringPtrOutput
func (GetDeployGroupsResultOutput) ToGetDeployGroupsResultOutput ¶ added in v3.9.0
func (o GetDeployGroupsResultOutput) ToGetDeployGroupsResultOutput() GetDeployGroupsResultOutput
func (GetDeployGroupsResultOutput) ToGetDeployGroupsResultOutputWithContext ¶ added in v3.9.0
func (o GetDeployGroupsResultOutput) ToGetDeployGroupsResultOutputWithContext(ctx context.Context) GetDeployGroupsResultOutput
type GetNamespacesArgs ¶ added in v3.22.0
type GetNamespacesArgs struct { // A list of Namespace IDs. Ids []string `pulumi:"ids"` // A regex string to filter results by Namespace name. NameRegex *string `pulumi:"nameRegex"` // File name where to save data source results (after running `pulumi preview`). OutputFile *string `pulumi:"outputFile"` }
A collection of arguments for invoking getNamespaces.
type GetNamespacesNamespace ¶ added in v3.22.0
type GetNamespacesNamespace struct { // The ID of the physical region to which the namespace belongs. BelongRegion string `pulumi:"belongRegion"` // Indicates whether remote debugging is allowed in this region. DebugEnable bool `pulumi:"debugEnable"` // The description of the namespace. Description string `pulumi:"description"` // The ID of the resource. Id string `pulumi:"id"` // The unique ID of the namespace generated by Enterprise Distributed Application Service (EDAS). NamespaceId string `pulumi:"namespaceId"` // The ID of the namespace. **Note:** The ID cannot be changed after the namespace is created. The ID is in the format of `Physical region ID:Logical region identifier`. NamespaceLogicalId string `pulumi:"namespaceLogicalId"` // The name of the namespace. NamespaceName string `pulumi:"namespaceName"` // The ID of the Alibaba Cloud account to which the namespace belongs. UserId string `pulumi:"userId"` }
type GetNamespacesNamespaceArgs ¶ added in v3.22.0
type GetNamespacesNamespaceArgs struct { // The ID of the physical region to which the namespace belongs. BelongRegion pulumi.StringInput `pulumi:"belongRegion"` // Indicates whether remote debugging is allowed in this region. DebugEnable pulumi.BoolInput `pulumi:"debugEnable"` // The description of the namespace. Description pulumi.StringInput `pulumi:"description"` // The ID of the resource. Id pulumi.StringInput `pulumi:"id"` // The unique ID of the namespace generated by Enterprise Distributed Application Service (EDAS). NamespaceId pulumi.StringInput `pulumi:"namespaceId"` // The ID of the namespace. **Note:** The ID cannot be changed after the namespace is created. The ID is in the format of `Physical region ID:Logical region identifier`. NamespaceLogicalId pulumi.StringInput `pulumi:"namespaceLogicalId"` // The name of the namespace. NamespaceName pulumi.StringInput `pulumi:"namespaceName"` // The ID of the Alibaba Cloud account to which the namespace belongs. UserId pulumi.StringInput `pulumi:"userId"` }
func (GetNamespacesNamespaceArgs) ElementType ¶ added in v3.22.0
func (GetNamespacesNamespaceArgs) ElementType() reflect.Type
func (GetNamespacesNamespaceArgs) ToGetNamespacesNamespaceOutput ¶ added in v3.22.0
func (i GetNamespacesNamespaceArgs) ToGetNamespacesNamespaceOutput() GetNamespacesNamespaceOutput
func (GetNamespacesNamespaceArgs) ToGetNamespacesNamespaceOutputWithContext ¶ added in v3.22.0
func (i GetNamespacesNamespaceArgs) ToGetNamespacesNamespaceOutputWithContext(ctx context.Context) GetNamespacesNamespaceOutput
type GetNamespacesNamespaceArray ¶ added in v3.22.0
type GetNamespacesNamespaceArray []GetNamespacesNamespaceInput
func (GetNamespacesNamespaceArray) ElementType ¶ added in v3.22.0
func (GetNamespacesNamespaceArray) ElementType() reflect.Type
func (GetNamespacesNamespaceArray) ToGetNamespacesNamespaceArrayOutput ¶ added in v3.22.0
func (i GetNamespacesNamespaceArray) ToGetNamespacesNamespaceArrayOutput() GetNamespacesNamespaceArrayOutput
func (GetNamespacesNamespaceArray) ToGetNamespacesNamespaceArrayOutputWithContext ¶ added in v3.22.0
func (i GetNamespacesNamespaceArray) ToGetNamespacesNamespaceArrayOutputWithContext(ctx context.Context) GetNamespacesNamespaceArrayOutput
type GetNamespacesNamespaceArrayInput ¶ added in v3.22.0
type GetNamespacesNamespaceArrayInput interface { pulumi.Input ToGetNamespacesNamespaceArrayOutput() GetNamespacesNamespaceArrayOutput ToGetNamespacesNamespaceArrayOutputWithContext(context.Context) GetNamespacesNamespaceArrayOutput }
GetNamespacesNamespaceArrayInput is an input type that accepts GetNamespacesNamespaceArray and GetNamespacesNamespaceArrayOutput values. You can construct a concrete instance of `GetNamespacesNamespaceArrayInput` via:
GetNamespacesNamespaceArray{ GetNamespacesNamespaceArgs{...} }
type GetNamespacesNamespaceArrayOutput ¶ added in v3.22.0
type GetNamespacesNamespaceArrayOutput struct{ *pulumi.OutputState }
func (GetNamespacesNamespaceArrayOutput) ElementType ¶ added in v3.22.0
func (GetNamespacesNamespaceArrayOutput) ElementType() reflect.Type
func (GetNamespacesNamespaceArrayOutput) Index ¶ added in v3.22.0
func (o GetNamespacesNamespaceArrayOutput) Index(i pulumi.IntInput) GetNamespacesNamespaceOutput
func (GetNamespacesNamespaceArrayOutput) ToGetNamespacesNamespaceArrayOutput ¶ added in v3.22.0
func (o GetNamespacesNamespaceArrayOutput) ToGetNamespacesNamespaceArrayOutput() GetNamespacesNamespaceArrayOutput
func (GetNamespacesNamespaceArrayOutput) ToGetNamespacesNamespaceArrayOutputWithContext ¶ added in v3.22.0
func (o GetNamespacesNamespaceArrayOutput) ToGetNamespacesNamespaceArrayOutputWithContext(ctx context.Context) GetNamespacesNamespaceArrayOutput
type GetNamespacesNamespaceInput ¶ added in v3.22.0
type GetNamespacesNamespaceInput interface { pulumi.Input ToGetNamespacesNamespaceOutput() GetNamespacesNamespaceOutput ToGetNamespacesNamespaceOutputWithContext(context.Context) GetNamespacesNamespaceOutput }
GetNamespacesNamespaceInput is an input type that accepts GetNamespacesNamespaceArgs and GetNamespacesNamespaceOutput values. You can construct a concrete instance of `GetNamespacesNamespaceInput` via:
GetNamespacesNamespaceArgs{...}
type GetNamespacesNamespaceOutput ¶ added in v3.22.0
type GetNamespacesNamespaceOutput struct{ *pulumi.OutputState }
func (GetNamespacesNamespaceOutput) BelongRegion ¶ added in v3.22.0
func (o GetNamespacesNamespaceOutput) BelongRegion() pulumi.StringOutput
The ID of the physical region to which the namespace belongs.
func (GetNamespacesNamespaceOutput) DebugEnable ¶ added in v3.22.0
func (o GetNamespacesNamespaceOutput) DebugEnable() pulumi.BoolOutput
Indicates whether remote debugging is allowed in this region.
func (GetNamespacesNamespaceOutput) Description ¶ added in v3.22.0
func (o GetNamespacesNamespaceOutput) Description() pulumi.StringOutput
The description of the namespace.
func (GetNamespacesNamespaceOutput) ElementType ¶ added in v3.22.0
func (GetNamespacesNamespaceOutput) ElementType() reflect.Type
func (GetNamespacesNamespaceOutput) Id ¶ added in v3.22.0
func (o GetNamespacesNamespaceOutput) Id() pulumi.StringOutput
The ID of the resource.
func (GetNamespacesNamespaceOutput) NamespaceId ¶ added in v3.22.0
func (o GetNamespacesNamespaceOutput) NamespaceId() pulumi.StringOutput
The unique ID of the namespace generated by Enterprise Distributed Application Service (EDAS).
func (GetNamespacesNamespaceOutput) NamespaceLogicalId ¶ added in v3.22.0
func (o GetNamespacesNamespaceOutput) NamespaceLogicalId() pulumi.StringOutput
The ID of the namespace. **Note:** The ID cannot be changed after the namespace is created. The ID is in the format of `Physical region ID:Logical region identifier`.
func (GetNamespacesNamespaceOutput) NamespaceName ¶ added in v3.22.0
func (o GetNamespacesNamespaceOutput) NamespaceName() pulumi.StringOutput
The name of the namespace.
func (GetNamespacesNamespaceOutput) ToGetNamespacesNamespaceOutput ¶ added in v3.22.0
func (o GetNamespacesNamespaceOutput) ToGetNamespacesNamespaceOutput() GetNamespacesNamespaceOutput
func (GetNamespacesNamespaceOutput) ToGetNamespacesNamespaceOutputWithContext ¶ added in v3.22.0
func (o GetNamespacesNamespaceOutput) ToGetNamespacesNamespaceOutputWithContext(ctx context.Context) GetNamespacesNamespaceOutput
func (GetNamespacesNamespaceOutput) UserId ¶ added in v3.22.0
func (o GetNamespacesNamespaceOutput) UserId() pulumi.StringOutput
The ID of the Alibaba Cloud account to which the namespace belongs.
type GetNamespacesOutputArgs ¶ added in v3.22.0
type GetNamespacesOutputArgs struct { // A list of Namespace IDs. Ids pulumi.StringArrayInput `pulumi:"ids"` // A regex string to filter results by Namespace name. NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"` // File name where to save data source results (after running `pulumi preview`). OutputFile pulumi.StringPtrInput `pulumi:"outputFile"` }
A collection of arguments for invoking getNamespaces.
func (GetNamespacesOutputArgs) ElementType ¶ added in v3.22.0
func (GetNamespacesOutputArgs) ElementType() reflect.Type
type GetNamespacesResult ¶ added in v3.22.0
type GetNamespacesResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Ids []string `pulumi:"ids"` NameRegex *string `pulumi:"nameRegex"` Names []string `pulumi:"names"` Namespaces []GetNamespacesNamespace `pulumi:"namespaces"` OutputFile *string `pulumi:"outputFile"` }
A collection of values returned by getNamespaces.
func GetNamespaces ¶ added in v3.22.0
func GetNamespaces(ctx *pulumi.Context, args *GetNamespacesArgs, opts ...pulumi.InvokeOption) (*GetNamespacesResult, error)
This data source provides the Edas Namespaces of the current Alibaba Cloud user.
> **NOTE:** Available in v1.173.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/edas" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { ids, err := edas.GetNamespaces(ctx, &edas.GetNamespacesArgs{ Ids: []string{ "example_id", }, }, nil) if err != nil { return err } ctx.Export("edasNamespaceId1", ids.Namespaces[0].Id) nameRegex, err := edas.GetNamespaces(ctx, &edas.GetNamespacesArgs{ NameRegex: pulumi.StringRef("^my-Namespace"), }, nil) if err != nil { return err } ctx.Export("edasNamespaceId2", nameRegex.Namespaces[0].Id) return nil }) }
```
type GetNamespacesResultOutput ¶ added in v3.22.0
type GetNamespacesResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getNamespaces.
func GetNamespacesOutput ¶ added in v3.22.0
func GetNamespacesOutput(ctx *pulumi.Context, args GetNamespacesOutputArgs, opts ...pulumi.InvokeOption) GetNamespacesResultOutput
func (GetNamespacesResultOutput) ElementType ¶ added in v3.22.0
func (GetNamespacesResultOutput) ElementType() reflect.Type
func (GetNamespacesResultOutput) Id ¶ added in v3.22.0
func (o GetNamespacesResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetNamespacesResultOutput) Ids ¶ added in v3.22.0
func (o GetNamespacesResultOutput) Ids() pulumi.StringArrayOutput
func (GetNamespacesResultOutput) NameRegex ¶ added in v3.22.0
func (o GetNamespacesResultOutput) NameRegex() pulumi.StringPtrOutput
func (GetNamespacesResultOutput) Names ¶ added in v3.22.0
func (o GetNamespacesResultOutput) Names() pulumi.StringArrayOutput
func (GetNamespacesResultOutput) Namespaces ¶ added in v3.22.0
func (o GetNamespacesResultOutput) Namespaces() GetNamespacesNamespaceArrayOutput
func (GetNamespacesResultOutput) OutputFile ¶ added in v3.22.0
func (o GetNamespacesResultOutput) OutputFile() pulumi.StringPtrOutput
func (GetNamespacesResultOutput) ToGetNamespacesResultOutput ¶ added in v3.22.0
func (o GetNamespacesResultOutput) ToGetNamespacesResultOutput() GetNamespacesResultOutput
func (GetNamespacesResultOutput) ToGetNamespacesResultOutputWithContext ¶ added in v3.22.0
func (o GetNamespacesResultOutput) ToGetNamespacesResultOutputWithContext(ctx context.Context) GetNamespacesResultOutput
type GetServiceArgs ¶
type GetServiceArgs struct { // Setting the value to `On` to enable the service. If has been enabled, return the result. Valid values: "On" or "Off". Default to "Off". // // > **NOTE:** Setting `enable = "On"` to open the EDAS service that means you have read and agreed the [EDAS Terms of Service](https://help.aliyun.com/document_detail/44633.html). The service can not closed once it is opened. Enable *string `pulumi:"enable"` }
A collection of arguments for invoking getService.
type GetServiceOutputArgs ¶ added in v3.9.0
type GetServiceOutputArgs struct { // Setting the value to `On` to enable the service. If has been enabled, return the result. Valid values: "On" or "Off". Default to "Off". // // > **NOTE:** Setting `enable = "On"` to open the EDAS service that means you have read and agreed the [EDAS Terms of Service](https://help.aliyun.com/document_detail/44633.html). The service can not closed once it is opened. Enable pulumi.StringPtrInput `pulumi:"enable"` }
A collection of arguments for invoking getService.
func (GetServiceOutputArgs) ElementType ¶ added in v3.9.0
func (GetServiceOutputArgs) ElementType() reflect.Type
type GetServiceResult ¶
type GetServiceResult struct { Enable *string `pulumi:"enable"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The current service enable status. Status string `pulumi:"status"` }
A collection of values returned by getService.
func GetService ¶
func GetService(ctx *pulumi.Context, args *GetServiceArgs, opts ...pulumi.InvokeOption) (*GetServiceResult, error)
Using this data source can open EDAS service automatically. If the service has been opened, it will return opened.
For information about EDAS and how to use it, see [What is EDAS](https://www.alibabacloud.com/help/product/29500.htm).
> **NOTE:** Available in v1.98.0+
> **NOTE:** The EDAS service is not support to be open automatically in the international site.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/edas" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := edas.GetService(ctx, &edas.GetServiceArgs{ Enable: pulumi.StringRef("On"), }, nil) if err != nil { return err } return nil }) }
```
type GetServiceResultOutput ¶ added in v3.9.0
type GetServiceResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getService.
func GetServiceOutput ¶ added in v3.9.0
func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput
func (GetServiceResultOutput) ElementType ¶ added in v3.9.0
func (GetServiceResultOutput) ElementType() reflect.Type
func (GetServiceResultOutput) Enable ¶ added in v3.9.0
func (o GetServiceResultOutput) Enable() pulumi.StringPtrOutput
func (GetServiceResultOutput) Id ¶ added in v3.9.0
func (o GetServiceResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetServiceResultOutput) Status ¶ added in v3.9.0
func (o GetServiceResultOutput) Status() pulumi.StringOutput
The current service enable status.
func (GetServiceResultOutput) ToGetServiceResultOutput ¶ added in v3.9.0
func (o GetServiceResultOutput) ToGetServiceResultOutput() GetServiceResultOutput
func (GetServiceResultOutput) ToGetServiceResultOutputWithContext ¶ added in v3.9.0
func (o GetServiceResultOutput) ToGetServiceResultOutputWithContext(ctx context.Context) GetServiceResultOutput
type InstanceClusterAttachment ¶
type InstanceClusterAttachment struct { pulumi.CustomResourceState // The ID of the cluster that you want to create the application. ClusterId pulumi.StringOutput `pulumi:"clusterId"` // The cluster members map of the resource supplied above. The key is instanceId and the value is cluster_member_id. ClusterMemberIds pulumi.StringMapOutput `pulumi:"clusterMemberIds"` // The ecu map of the resource supplied above. The key is instanceId and the value is ecu_id. EcuMap pulumi.StringMapOutput `pulumi:"ecuMap"` // The ID of instance. Type: list. InstanceIds pulumi.StringArrayOutput `pulumi:"instanceIds"` // The status map of the resource supplied above. The key is instanceId and the values are 1(running) 0(converting) -1(failed) and -2(offline). StatusMap pulumi.IntMapOutput `pulumi:"statusMap"` }
Provides an EDAS instance cluster attachment resource, see [What is EDAS Instance Cluster Attachment](https://www.alibabacloud.com/help/en/edas/developer-reference/api-edas-2017-08-01-installagent).
> **NOTE:** Available since v1.82.0.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/edas" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") name := "tf-example" if param := cfg.Get("name"); param != "" { name = param } defaultRegions, err := alicloud.GetRegions(ctx, &alicloud.GetRegionsArgs{ Current: pulumi.BoolRef(true), }, nil) if err != nil { return err } defaultZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{ AvailableResourceCreation: pulumi.StringRef("VSwitch"), }, nil) if err != nil { return err } defaultImages, err := ecs.GetImages(ctx, &ecs.GetImagesArgs{ NameRegex: pulumi.StringRef("^ubuntu_[0-9]+_[0-9]+_x64*"), Owners: pulumi.StringRef("system"), }, nil) if err != nil { return err } defaultInstanceTypes, err := ecs.GetInstanceTypes(ctx, &ecs.GetInstanceTypesArgs{ AvailabilityZone: pulumi.StringRef(defaultZones.Zones[0].Id), CpuCoreCount: pulumi.IntRef(1), MemorySize: pulumi.Float64Ref(2), }, nil) if err != nil { return err } defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{ VpcName: pulumi.String(name), CidrBlock: pulumi.String("10.4.0.0/16"), }) if err != nil { return err } defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{ VswitchName: pulumi.String(name), CidrBlock: pulumi.String("10.4.0.0/24"), VpcId: defaultNetwork.ID(), ZoneId: *pulumi.String(defaultZones.Zones[0].Id), }) if err != nil { return err } defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "defaultSecurityGroup", &ecs.SecurityGroupArgs{ VpcId: defaultNetwork.ID(), }) if err != nil { return err } defaultInstance, err := ecs.NewInstance(ctx, "defaultInstance", &ecs.InstanceArgs{ AvailabilityZone: *pulumi.String(defaultZones.Zones[0].Id), InstanceName: pulumi.String(name), ImageId: *pulumi.String(defaultImages.Images[0].Id), InstanceType: *pulumi.String(defaultInstanceTypes.InstanceTypes[0].Id), SecurityGroups: pulumi.StringArray{ defaultSecurityGroup.ID(), }, VswitchId: defaultSwitch.ID(), }) if err != nil { return err } defaultCluster, err := edas.NewCluster(ctx, "defaultCluster", &edas.ClusterArgs{ ClusterName: pulumi.String(name), ClusterType: pulumi.Int(2), NetworkMode: pulumi.Int(2), LogicalRegionId: *pulumi.String(defaultRegions.Regions[0].Id), VpcId: defaultNetwork.ID(), }) if err != nil { return err } _, err = edas.NewInstanceClusterAttachment(ctx, "defaultInstanceClusterAttachment", &edas.InstanceClusterAttachmentArgs{ ClusterId: defaultCluster.ID(), InstanceIds: pulumi.StringArray{ defaultInstance.ID(), }, }) if err != nil { return err } return nil }) }
```
func GetInstanceClusterAttachment ¶
func GetInstanceClusterAttachment(ctx *pulumi.Context, name string, id pulumi.IDInput, state *InstanceClusterAttachmentState, opts ...pulumi.ResourceOption) (*InstanceClusterAttachment, error)
GetInstanceClusterAttachment gets an existing InstanceClusterAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewInstanceClusterAttachment ¶
func NewInstanceClusterAttachment(ctx *pulumi.Context, name string, args *InstanceClusterAttachmentArgs, opts ...pulumi.ResourceOption) (*InstanceClusterAttachment, error)
NewInstanceClusterAttachment registers a new resource with the given unique name, arguments, and options.
func (*InstanceClusterAttachment) ElementType ¶
func (*InstanceClusterAttachment) ElementType() reflect.Type
func (*InstanceClusterAttachment) ToInstanceClusterAttachmentOutput ¶
func (i *InstanceClusterAttachment) ToInstanceClusterAttachmentOutput() InstanceClusterAttachmentOutput
func (*InstanceClusterAttachment) ToInstanceClusterAttachmentOutputWithContext ¶
func (i *InstanceClusterAttachment) ToInstanceClusterAttachmentOutputWithContext(ctx context.Context) InstanceClusterAttachmentOutput
type InstanceClusterAttachmentArgs ¶
type InstanceClusterAttachmentArgs struct { // The ID of the cluster that you want to create the application. ClusterId pulumi.StringInput // The ID of instance. Type: list. InstanceIds pulumi.StringArrayInput }
The set of arguments for constructing a InstanceClusterAttachment resource.
func (InstanceClusterAttachmentArgs) ElementType ¶
func (InstanceClusterAttachmentArgs) ElementType() reflect.Type
type InstanceClusterAttachmentArray ¶
type InstanceClusterAttachmentArray []InstanceClusterAttachmentInput
func (InstanceClusterAttachmentArray) ElementType ¶
func (InstanceClusterAttachmentArray) ElementType() reflect.Type
func (InstanceClusterAttachmentArray) ToInstanceClusterAttachmentArrayOutput ¶
func (i InstanceClusterAttachmentArray) ToInstanceClusterAttachmentArrayOutput() InstanceClusterAttachmentArrayOutput
func (InstanceClusterAttachmentArray) ToInstanceClusterAttachmentArrayOutputWithContext ¶
func (i InstanceClusterAttachmentArray) ToInstanceClusterAttachmentArrayOutputWithContext(ctx context.Context) InstanceClusterAttachmentArrayOutput
type InstanceClusterAttachmentArrayInput ¶
type InstanceClusterAttachmentArrayInput interface { pulumi.Input ToInstanceClusterAttachmentArrayOutput() InstanceClusterAttachmentArrayOutput ToInstanceClusterAttachmentArrayOutputWithContext(context.Context) InstanceClusterAttachmentArrayOutput }
InstanceClusterAttachmentArrayInput is an input type that accepts InstanceClusterAttachmentArray and InstanceClusterAttachmentArrayOutput values. You can construct a concrete instance of `InstanceClusterAttachmentArrayInput` via:
InstanceClusterAttachmentArray{ InstanceClusterAttachmentArgs{...} }
type InstanceClusterAttachmentArrayOutput ¶
type InstanceClusterAttachmentArrayOutput struct{ *pulumi.OutputState }
func (InstanceClusterAttachmentArrayOutput) ElementType ¶
func (InstanceClusterAttachmentArrayOutput) ElementType() reflect.Type
func (InstanceClusterAttachmentArrayOutput) Index ¶
func (o InstanceClusterAttachmentArrayOutput) Index(i pulumi.IntInput) InstanceClusterAttachmentOutput
func (InstanceClusterAttachmentArrayOutput) ToInstanceClusterAttachmentArrayOutput ¶
func (o InstanceClusterAttachmentArrayOutput) ToInstanceClusterAttachmentArrayOutput() InstanceClusterAttachmentArrayOutput
func (InstanceClusterAttachmentArrayOutput) ToInstanceClusterAttachmentArrayOutputWithContext ¶
func (o InstanceClusterAttachmentArrayOutput) ToInstanceClusterAttachmentArrayOutputWithContext(ctx context.Context) InstanceClusterAttachmentArrayOutput
type InstanceClusterAttachmentInput ¶
type InstanceClusterAttachmentInput interface { pulumi.Input ToInstanceClusterAttachmentOutput() InstanceClusterAttachmentOutput ToInstanceClusterAttachmentOutputWithContext(ctx context.Context) InstanceClusterAttachmentOutput }
type InstanceClusterAttachmentMap ¶
type InstanceClusterAttachmentMap map[string]InstanceClusterAttachmentInput
func (InstanceClusterAttachmentMap) ElementType ¶
func (InstanceClusterAttachmentMap) ElementType() reflect.Type
func (InstanceClusterAttachmentMap) ToInstanceClusterAttachmentMapOutput ¶
func (i InstanceClusterAttachmentMap) ToInstanceClusterAttachmentMapOutput() InstanceClusterAttachmentMapOutput
func (InstanceClusterAttachmentMap) ToInstanceClusterAttachmentMapOutputWithContext ¶
func (i InstanceClusterAttachmentMap) ToInstanceClusterAttachmentMapOutputWithContext(ctx context.Context) InstanceClusterAttachmentMapOutput
type InstanceClusterAttachmentMapInput ¶
type InstanceClusterAttachmentMapInput interface { pulumi.Input ToInstanceClusterAttachmentMapOutput() InstanceClusterAttachmentMapOutput ToInstanceClusterAttachmentMapOutputWithContext(context.Context) InstanceClusterAttachmentMapOutput }
InstanceClusterAttachmentMapInput is an input type that accepts InstanceClusterAttachmentMap and InstanceClusterAttachmentMapOutput values. You can construct a concrete instance of `InstanceClusterAttachmentMapInput` via:
InstanceClusterAttachmentMap{ "key": InstanceClusterAttachmentArgs{...} }
type InstanceClusterAttachmentMapOutput ¶
type InstanceClusterAttachmentMapOutput struct{ *pulumi.OutputState }
func (InstanceClusterAttachmentMapOutput) ElementType ¶
func (InstanceClusterAttachmentMapOutput) ElementType() reflect.Type
func (InstanceClusterAttachmentMapOutput) MapIndex ¶
func (o InstanceClusterAttachmentMapOutput) MapIndex(k pulumi.StringInput) InstanceClusterAttachmentOutput
func (InstanceClusterAttachmentMapOutput) ToInstanceClusterAttachmentMapOutput ¶
func (o InstanceClusterAttachmentMapOutput) ToInstanceClusterAttachmentMapOutput() InstanceClusterAttachmentMapOutput
func (InstanceClusterAttachmentMapOutput) ToInstanceClusterAttachmentMapOutputWithContext ¶
func (o InstanceClusterAttachmentMapOutput) ToInstanceClusterAttachmentMapOutputWithContext(ctx context.Context) InstanceClusterAttachmentMapOutput
type InstanceClusterAttachmentOutput ¶
type InstanceClusterAttachmentOutput struct{ *pulumi.OutputState }
func (InstanceClusterAttachmentOutput) ClusterId ¶ added in v3.27.0
func (o InstanceClusterAttachmentOutput) ClusterId() pulumi.StringOutput
The ID of the cluster that you want to create the application.
func (InstanceClusterAttachmentOutput) ClusterMemberIds ¶ added in v3.27.0
func (o InstanceClusterAttachmentOutput) ClusterMemberIds() pulumi.StringMapOutput
The cluster members map of the resource supplied above. The key is instanceId and the value is cluster_member_id.
func (InstanceClusterAttachmentOutput) EcuMap ¶ added in v3.27.0
func (o InstanceClusterAttachmentOutput) EcuMap() pulumi.StringMapOutput
The ecu map of the resource supplied above. The key is instanceId and the value is ecu_id.
func (InstanceClusterAttachmentOutput) ElementType ¶
func (InstanceClusterAttachmentOutput) ElementType() reflect.Type
func (InstanceClusterAttachmentOutput) InstanceIds ¶ added in v3.27.0
func (o InstanceClusterAttachmentOutput) InstanceIds() pulumi.StringArrayOutput
The ID of instance. Type: list.
func (InstanceClusterAttachmentOutput) StatusMap ¶ added in v3.27.0
func (o InstanceClusterAttachmentOutput) StatusMap() pulumi.IntMapOutput
The status map of the resource supplied above. The key is instanceId and the values are 1(running) 0(converting) -1(failed) and -2(offline).
func (InstanceClusterAttachmentOutput) ToInstanceClusterAttachmentOutput ¶
func (o InstanceClusterAttachmentOutput) ToInstanceClusterAttachmentOutput() InstanceClusterAttachmentOutput
func (InstanceClusterAttachmentOutput) ToInstanceClusterAttachmentOutputWithContext ¶
func (o InstanceClusterAttachmentOutput) ToInstanceClusterAttachmentOutputWithContext(ctx context.Context) InstanceClusterAttachmentOutput
type InstanceClusterAttachmentState ¶
type InstanceClusterAttachmentState struct { // The ID of the cluster that you want to create the application. ClusterId pulumi.StringPtrInput // The cluster members map of the resource supplied above. The key is instanceId and the value is cluster_member_id. ClusterMemberIds pulumi.StringMapInput // The ecu map of the resource supplied above. The key is instanceId and the value is ecu_id. EcuMap pulumi.StringMapInput // The ID of instance. Type: list. InstanceIds pulumi.StringArrayInput // The status map of the resource supplied above. The key is instanceId and the values are 1(running) 0(converting) -1(failed) and -2(offline). StatusMap pulumi.IntMapInput }
func (InstanceClusterAttachmentState) ElementType ¶
func (InstanceClusterAttachmentState) ElementType() reflect.Type
type K8sApplication ¶
type K8sApplication struct { pulumi.CustomResourceState // The description of the application ApplicationDescriotion pulumi.StringPtrOutput `pulumi:"applicationDescriotion"` // The name of the application you want to create. Must start with character,supports numbers, letters and dashes (-), supports up to 36 characters ApplicationName pulumi.StringOutput `pulumi:"applicationName"` // The ID of the alicloud container service kubernetes cluster that you want to import to. You can call the ListCluster operation to query. ClusterId pulumi.StringOutput `pulumi:"clusterId"` // The set command, if set, will replace the startup command in the mirror when the mirror is started. Command pulumi.StringPtrOutput `pulumi:"command"` // Used in combination with the command, the parameter of the command is a JsonArray string in the format: `[{"argument":"-c"},{"argument":"test"}]`. Among them, -c and test are two parameters that need to be set. CommandArgs pulumi.StringArrayOutput `pulumi:"commandArgs"` // EDAS-Container version that the deployed package depends on. Image does not support this parameter. EdasContainerVersion pulumi.StringPtrOutput `pulumi:"edasContainerVersion"` // Deployment environment variables, the format must conform to the JSON object array, such as: `{"name":"x","value":"y"},{"name":"x2","value":"y2"}`, If you want to cancel the configuration, you need to set an empty JSON array "" to indicate no configuration. Envs pulumi.StringMapOutput `pulumi:"envs"` // Mirror address. When the packageType is set to 'Image', this parameter item is required. ImageUrl pulumi.StringPtrOutput `pulumi:"imageUrl"` // Public network SLB ID. If not configured, EDAS will automatically purchase a new SLB for the user. // It has been deprecated, and new resource 'alicloud_edas_k8s_slb_attachment' replaces it. // // Deprecated: Field 'internet_slb_id' has been deprecated, New Resource 'alicloud_edas_k8s_slb_attachment' replaces it InternetSlbId pulumi.StringPtrOutput `pulumi:"internetSlbId"` // The public network SLB front-end port, range 1~65535. It has been deprecated and new resource 'alicloud_edas_k8s_slb_attachment' replaces it. // // Deprecated: Field 'internet_slb_port' has been deprecated, New Resource 'alicloud_edas_k8s_slb_attachment' replaces it InternetSlbPort pulumi.IntPtrOutput `pulumi:"internetSlbPort"` // The public network SLB protocol supports TCP, HTTP and HTTPS protocols. It has been deprecated, and new resource 'alicloud_edas_k8s_slb_attachment' replaces it. // // Deprecated: Field 'internet_slb_protocol' has been deprecated, New Resource 'alicloud_edas_k8s_slb_attachment' replaces it InternetSlbProtocol pulumi.StringPtrOutput `pulumi:"internetSlbProtocol"` // The private SLB back-end port, is also the service port of the application, ranging from 1 to 65535. // It has been deprecated, and new resource 'alicloud_edas_k8s_slb_attachment' replaces it. // // Deprecated: Field 'internet_target_port' has been deprecated, New Resource 'alicloud_edas_k8s_slb_attachment' replaces it InternetTargetPort pulumi.IntPtrOutput `pulumi:"internetTargetPort"` // The JDK version that the deployed package depends on. The optional parameter values are Open JDK 7 and Open JDK 8. Image does not support this parameter. Jdk pulumi.StringPtrOutput `pulumi:"jdk"` // The CPU quota of the application instance during application operation. Unit: Number of millcores, set to 0 means unlimited, similar to request_cpu. LimitMCpu pulumi.IntPtrOutput `pulumi:"limitMCpu"` // The memory limit of the application instance during application operation, unit: M. LimitMem pulumi.IntPtrOutput `pulumi:"limitMem"` // Container survival status monitoring, format such as: `{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"tcpSocket":{"host":"", "port":8080} }`. Liveness pulumi.StringPtrOutput `pulumi:"liveness"` // The configuration of the host file mounted to the container. For example: `[{"type":"","nodePath":"/localfiles","mountPath":"/app/files"},{"type":"Directory","nodePath":"/mnt", "mountPath":"/app/storage"}]`. Among them, nodePath is the host path; mountPath is the path in the container; type is the mount type. LocalVolume pulumi.StringPtrOutput `pulumi:"localVolume"` // The ID corresponding to the EDAS namespace, the non-default namespace must be filled in. LogicalRegionId pulumi.StringPtrOutput `pulumi:"logicalRegionId"` // Mount configuration description, as a serialized JSON. For example: `[{"nasPath": "/k8s","mountPath": "/mnt"},{"nasPath": "/files","mountPath": "/app/files"}]`. Among them, nasPath refers to the file storage path; mountPath refers to the path mounted in the container. MountDescs pulumi.StringPtrOutput `pulumi:"mountDescs"` // The namespace of the K8s cluster, it will determine which K8s namespace your application is deployed in. The default is 'default'. Namespace pulumi.StringPtrOutput `pulumi:"namespace"` // The ID of the mounted NAS must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field exists, a NAS will be automatically purchased and mounted on the switch in the VPC by default. NasId pulumi.StringPtrOutput `pulumi:"nasId"` // Application package type. Optional parameter values include: FatJar, WAR and Image. PackageType pulumi.StringPtrOutput `pulumi:"packageType"` // The url of the package to deploy.Applications deployed through FatJar or WAR packages need to configure it. PackageUrl pulumi.StringPtrOutput `pulumi:"packageUrl"` // The version number of the deployment package. WAR and FatJar types are required. Please customize its meaning. PackageVersion pulumi.StringOutput `pulumi:"packageVersion"` // Execute script after startup PostStart pulumi.StringPtrOutput `pulumi:"postStart"` // Execute script before stopping PreStop pulumi.StringPtrOutput `pulumi:"preStop"` // Container service status check. If the check fails, the traffic passing through K8s Service will not be transferred to the container. The format is: `{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1, "httpGet": {"path": "/consumer","port": 8080,"scheme": "HTTP","httpHeaders": [{"name": "test","value": "testvalue"} ]}}`. Readiness pulumi.StringPtrOutput `pulumi:"readiness"` // Number of application instances. Replicas pulumi.IntPtrOutput `pulumi:"replicas"` // When the application is created, the CPU quota of the application instance, unit: number of millcores, similar to request_cpu RequestsMCpu pulumi.IntPtrOutput `pulumi:"requestsMCpu"` // When the application is created, the memory limit of the application instance, unit: M. When set to 0, it means unlimited. RequestsMem pulumi.IntPtrOutput `pulumi:"requestsMem"` // The Tomcat version that the deployment package depends on. Applicable to Spring Cloud and Dubbo applications deployed through WAR packages. Image does not support this parameter. WebContainer pulumi.StringPtrOutput `pulumi:"webContainer"` }
Create an EDAS k8s application.For information about EDAS K8s Application and how to use it, see [What is EDAS K8s Application](https://www.alibabacloud.com/help/en/edas/developer-reference/api-edas-2017-08-01-insertk8sapplication).
> **NOTE:** Available since v1.105.0.
## Import
EDAS k8s application can be imported as below, e.g.
```sh $ pulumi import alicloud:edas/k8sApplication:K8sApplication new_k8s_application application_id ```
func GetK8sApplication ¶
func GetK8sApplication(ctx *pulumi.Context, name string, id pulumi.IDInput, state *K8sApplicationState, opts ...pulumi.ResourceOption) (*K8sApplication, error)
GetK8sApplication gets an existing K8sApplication resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewK8sApplication ¶
func NewK8sApplication(ctx *pulumi.Context, name string, args *K8sApplicationArgs, opts ...pulumi.ResourceOption) (*K8sApplication, error)
NewK8sApplication registers a new resource with the given unique name, arguments, and options.
func (*K8sApplication) ElementType ¶
func (*K8sApplication) ElementType() reflect.Type
func (*K8sApplication) ToK8sApplicationOutput ¶
func (i *K8sApplication) ToK8sApplicationOutput() K8sApplicationOutput
func (*K8sApplication) ToK8sApplicationOutputWithContext ¶
func (i *K8sApplication) ToK8sApplicationOutputWithContext(ctx context.Context) K8sApplicationOutput
type K8sApplicationArgs ¶
type K8sApplicationArgs struct { // The description of the application ApplicationDescriotion pulumi.StringPtrInput // The name of the application you want to create. Must start with character,supports numbers, letters and dashes (-), supports up to 36 characters ApplicationName pulumi.StringInput // The ID of the alicloud container service kubernetes cluster that you want to import to. You can call the ListCluster operation to query. ClusterId pulumi.StringInput // The set command, if set, will replace the startup command in the mirror when the mirror is started. Command pulumi.StringPtrInput // Used in combination with the command, the parameter of the command is a JsonArray string in the format: `[{"argument":"-c"},{"argument":"test"}]`. Among them, -c and test are two parameters that need to be set. CommandArgs pulumi.StringArrayInput // EDAS-Container version that the deployed package depends on. Image does not support this parameter. EdasContainerVersion pulumi.StringPtrInput // Deployment environment variables, the format must conform to the JSON object array, such as: `{"name":"x","value":"y"},{"name":"x2","value":"y2"}`, If you want to cancel the configuration, you need to set an empty JSON array "" to indicate no configuration. Envs pulumi.StringMapInput // Mirror address. When the packageType is set to 'Image', this parameter item is required. ImageUrl pulumi.StringPtrInput // Public network SLB ID. If not configured, EDAS will automatically purchase a new SLB for the user. // It has been deprecated, and new resource 'alicloud_edas_k8s_slb_attachment' replaces it. // // Deprecated: Field 'internet_slb_id' has been deprecated, New Resource 'alicloud_edas_k8s_slb_attachment' replaces it InternetSlbId pulumi.StringPtrInput // The public network SLB front-end port, range 1~65535. It has been deprecated and new resource 'alicloud_edas_k8s_slb_attachment' replaces it. // // Deprecated: Field 'internet_slb_port' has been deprecated, New Resource 'alicloud_edas_k8s_slb_attachment' replaces it InternetSlbPort pulumi.IntPtrInput // The public network SLB protocol supports TCP, HTTP and HTTPS protocols. It has been deprecated, and new resource 'alicloud_edas_k8s_slb_attachment' replaces it. // // Deprecated: Field 'internet_slb_protocol' has been deprecated, New Resource 'alicloud_edas_k8s_slb_attachment' replaces it InternetSlbProtocol pulumi.StringPtrInput // The private SLB back-end port, is also the service port of the application, ranging from 1 to 65535. // It has been deprecated, and new resource 'alicloud_edas_k8s_slb_attachment' replaces it. // // Deprecated: Field 'internet_target_port' has been deprecated, New Resource 'alicloud_edas_k8s_slb_attachment' replaces it InternetTargetPort pulumi.IntPtrInput // The JDK version that the deployed package depends on. The optional parameter values are Open JDK 7 and Open JDK 8. Image does not support this parameter. Jdk pulumi.StringPtrInput // The CPU quota of the application instance during application operation. Unit: Number of millcores, set to 0 means unlimited, similar to request_cpu. LimitMCpu pulumi.IntPtrInput // The memory limit of the application instance during application operation, unit: M. LimitMem pulumi.IntPtrInput // Container survival status monitoring, format such as: `{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"tcpSocket":{"host":"", "port":8080} }`. Liveness pulumi.StringPtrInput // The configuration of the host file mounted to the container. For example: `[{"type":"","nodePath":"/localfiles","mountPath":"/app/files"},{"type":"Directory","nodePath":"/mnt", "mountPath":"/app/storage"}]`. Among them, nodePath is the host path; mountPath is the path in the container; type is the mount type. LocalVolume pulumi.StringPtrInput // The ID corresponding to the EDAS namespace, the non-default namespace must be filled in. LogicalRegionId pulumi.StringPtrInput // Mount configuration description, as a serialized JSON. For example: `[{"nasPath": "/k8s","mountPath": "/mnt"},{"nasPath": "/files","mountPath": "/app/files"}]`. Among them, nasPath refers to the file storage path; mountPath refers to the path mounted in the container. MountDescs pulumi.StringPtrInput // The namespace of the K8s cluster, it will determine which K8s namespace your application is deployed in. The default is 'default'. Namespace pulumi.StringPtrInput // The ID of the mounted NAS must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field exists, a NAS will be automatically purchased and mounted on the switch in the VPC by default. NasId pulumi.StringPtrInput // Application package type. Optional parameter values include: FatJar, WAR and Image. PackageType pulumi.StringPtrInput // The url of the package to deploy.Applications deployed through FatJar or WAR packages need to configure it. PackageUrl pulumi.StringPtrInput // The version number of the deployment package. WAR and FatJar types are required. Please customize its meaning. PackageVersion pulumi.StringPtrInput // Execute script after startup PostStart pulumi.StringPtrInput // Execute script before stopping PreStop pulumi.StringPtrInput // Container service status check. If the check fails, the traffic passing through K8s Service will not be transferred to the container. The format is: `{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1, "httpGet": {"path": "/consumer","port": 8080,"scheme": "HTTP","httpHeaders": [{"name": "test","value": "testvalue"} ]}}`. Readiness pulumi.StringPtrInput // Number of application instances. Replicas pulumi.IntPtrInput // When the application is created, the CPU quota of the application instance, unit: number of millcores, similar to request_cpu RequestsMCpu pulumi.IntPtrInput // When the application is created, the memory limit of the application instance, unit: M. When set to 0, it means unlimited. RequestsMem pulumi.IntPtrInput // The Tomcat version that the deployment package depends on. Applicable to Spring Cloud and Dubbo applications deployed through WAR packages. Image does not support this parameter. WebContainer pulumi.StringPtrInput }
The set of arguments for constructing a K8sApplication resource.
func (K8sApplicationArgs) ElementType ¶
func (K8sApplicationArgs) ElementType() reflect.Type
type K8sApplicationArray ¶
type K8sApplicationArray []K8sApplicationInput
func (K8sApplicationArray) ElementType ¶
func (K8sApplicationArray) ElementType() reflect.Type
func (K8sApplicationArray) ToK8sApplicationArrayOutput ¶
func (i K8sApplicationArray) ToK8sApplicationArrayOutput() K8sApplicationArrayOutput
func (K8sApplicationArray) ToK8sApplicationArrayOutputWithContext ¶
func (i K8sApplicationArray) ToK8sApplicationArrayOutputWithContext(ctx context.Context) K8sApplicationArrayOutput
type K8sApplicationArrayInput ¶
type K8sApplicationArrayInput interface { pulumi.Input ToK8sApplicationArrayOutput() K8sApplicationArrayOutput ToK8sApplicationArrayOutputWithContext(context.Context) K8sApplicationArrayOutput }
K8sApplicationArrayInput is an input type that accepts K8sApplicationArray and K8sApplicationArrayOutput values. You can construct a concrete instance of `K8sApplicationArrayInput` via:
K8sApplicationArray{ K8sApplicationArgs{...} }
type K8sApplicationArrayOutput ¶
type K8sApplicationArrayOutput struct{ *pulumi.OutputState }
func (K8sApplicationArrayOutput) ElementType ¶
func (K8sApplicationArrayOutput) ElementType() reflect.Type
func (K8sApplicationArrayOutput) Index ¶
func (o K8sApplicationArrayOutput) Index(i pulumi.IntInput) K8sApplicationOutput
func (K8sApplicationArrayOutput) ToK8sApplicationArrayOutput ¶
func (o K8sApplicationArrayOutput) ToK8sApplicationArrayOutput() K8sApplicationArrayOutput
func (K8sApplicationArrayOutput) ToK8sApplicationArrayOutputWithContext ¶
func (o K8sApplicationArrayOutput) ToK8sApplicationArrayOutputWithContext(ctx context.Context) K8sApplicationArrayOutput
type K8sApplicationInput ¶
type K8sApplicationInput interface { pulumi.Input ToK8sApplicationOutput() K8sApplicationOutput ToK8sApplicationOutputWithContext(ctx context.Context) K8sApplicationOutput }
type K8sApplicationMap ¶
type K8sApplicationMap map[string]K8sApplicationInput
func (K8sApplicationMap) ElementType ¶
func (K8sApplicationMap) ElementType() reflect.Type
func (K8sApplicationMap) ToK8sApplicationMapOutput ¶
func (i K8sApplicationMap) ToK8sApplicationMapOutput() K8sApplicationMapOutput
func (K8sApplicationMap) ToK8sApplicationMapOutputWithContext ¶
func (i K8sApplicationMap) ToK8sApplicationMapOutputWithContext(ctx context.Context) K8sApplicationMapOutput
type K8sApplicationMapInput ¶
type K8sApplicationMapInput interface { pulumi.Input ToK8sApplicationMapOutput() K8sApplicationMapOutput ToK8sApplicationMapOutputWithContext(context.Context) K8sApplicationMapOutput }
K8sApplicationMapInput is an input type that accepts K8sApplicationMap and K8sApplicationMapOutput values. You can construct a concrete instance of `K8sApplicationMapInput` via:
K8sApplicationMap{ "key": K8sApplicationArgs{...} }
type K8sApplicationMapOutput ¶
type K8sApplicationMapOutput struct{ *pulumi.OutputState }
func (K8sApplicationMapOutput) ElementType ¶
func (K8sApplicationMapOutput) ElementType() reflect.Type
func (K8sApplicationMapOutput) MapIndex ¶
func (o K8sApplicationMapOutput) MapIndex(k pulumi.StringInput) K8sApplicationOutput
func (K8sApplicationMapOutput) ToK8sApplicationMapOutput ¶
func (o K8sApplicationMapOutput) ToK8sApplicationMapOutput() K8sApplicationMapOutput
func (K8sApplicationMapOutput) ToK8sApplicationMapOutputWithContext ¶
func (o K8sApplicationMapOutput) ToK8sApplicationMapOutputWithContext(ctx context.Context) K8sApplicationMapOutput
type K8sApplicationOutput ¶
type K8sApplicationOutput struct{ *pulumi.OutputState }
func (K8sApplicationOutput) ApplicationDescriotion ¶ added in v3.27.0
func (o K8sApplicationOutput) ApplicationDescriotion() pulumi.StringPtrOutput
The description of the application
func (K8sApplicationOutput) ApplicationName ¶ added in v3.27.0
func (o K8sApplicationOutput) ApplicationName() pulumi.StringOutput
The name of the application you want to create. Must start with character,supports numbers, letters and dashes (-), supports up to 36 characters
func (K8sApplicationOutput) ClusterId ¶ added in v3.27.0
func (o K8sApplicationOutput) ClusterId() pulumi.StringOutput
The ID of the alicloud container service kubernetes cluster that you want to import to. You can call the ListCluster operation to query.
func (K8sApplicationOutput) Command ¶ added in v3.27.0
func (o K8sApplicationOutput) Command() pulumi.StringPtrOutput
The set command, if set, will replace the startup command in the mirror when the mirror is started.
func (K8sApplicationOutput) CommandArgs ¶ added in v3.27.0
func (o K8sApplicationOutput) CommandArgs() pulumi.StringArrayOutput
Used in combination with the command, the parameter of the command is a JsonArray string in the format: `[{"argument":"-c"},{"argument":"test"}]`. Among them, -c and test are two parameters that need to be set.
func (K8sApplicationOutput) EdasContainerVersion ¶ added in v3.27.0
func (o K8sApplicationOutput) EdasContainerVersion() pulumi.StringPtrOutput
EDAS-Container version that the deployed package depends on. Image does not support this parameter.
func (K8sApplicationOutput) ElementType ¶
func (K8sApplicationOutput) ElementType() reflect.Type
func (K8sApplicationOutput) Envs ¶ added in v3.27.0
func (o K8sApplicationOutput) Envs() pulumi.StringMapOutput
Deployment environment variables, the format must conform to the JSON object array, such as: `{"name":"x","value":"y"},{"name":"x2","value":"y2"}`, If you want to cancel the configuration, you need to set an empty JSON array "" to indicate no configuration.
func (K8sApplicationOutput) ImageUrl ¶ added in v3.27.0
func (o K8sApplicationOutput) ImageUrl() pulumi.StringPtrOutput
Mirror address. When the packageType is set to 'Image', this parameter item is required.
func (K8sApplicationOutput) InternetSlbId
deprecated
added in
v3.27.0
func (o K8sApplicationOutput) InternetSlbId() pulumi.StringPtrOutput
Public network SLB ID. If not configured, EDAS will automatically purchase a new SLB for the user. It has been deprecated, and new resource 'alicloud_edas_k8s_slb_attachment' replaces it.
Deprecated: Field 'internet_slb_id' has been deprecated, New Resource 'alicloud_edas_k8s_slb_attachment' replaces it
func (K8sApplicationOutput) InternetSlbPort
deprecated
added in
v3.27.0
func (o K8sApplicationOutput) InternetSlbPort() pulumi.IntPtrOutput
The public network SLB front-end port, range 1~65535. It has been deprecated and new resource 'alicloud_edas_k8s_slb_attachment' replaces it.
Deprecated: Field 'internet_slb_port' has been deprecated, New Resource 'alicloud_edas_k8s_slb_attachment' replaces it
func (K8sApplicationOutput) InternetSlbProtocol
deprecated
added in
v3.27.0
func (o K8sApplicationOutput) InternetSlbProtocol() pulumi.StringPtrOutput
The public network SLB protocol supports TCP, HTTP and HTTPS protocols. It has been deprecated, and new resource 'alicloud_edas_k8s_slb_attachment' replaces it.
Deprecated: Field 'internet_slb_protocol' has been deprecated, New Resource 'alicloud_edas_k8s_slb_attachment' replaces it
func (K8sApplicationOutput) InternetTargetPort
deprecated
added in
v3.27.0
func (o K8sApplicationOutput) InternetTargetPort() pulumi.IntPtrOutput
The private SLB back-end port, is also the service port of the application, ranging from 1 to 65535. It has been deprecated, and new resource 'alicloud_edas_k8s_slb_attachment' replaces it.
Deprecated: Field 'internet_target_port' has been deprecated, New Resource 'alicloud_edas_k8s_slb_attachment' replaces it
func (K8sApplicationOutput) Jdk ¶ added in v3.27.0
func (o K8sApplicationOutput) Jdk() pulumi.StringPtrOutput
The JDK version that the deployed package depends on. The optional parameter values are Open JDK 7 and Open JDK 8. Image does not support this parameter.
func (K8sApplicationOutput) LimitMCpu ¶ added in v3.27.0
func (o K8sApplicationOutput) LimitMCpu() pulumi.IntPtrOutput
The CPU quota of the application instance during application operation. Unit: Number of millcores, set to 0 means unlimited, similar to request_cpu.
func (K8sApplicationOutput) LimitMem ¶ added in v3.27.0
func (o K8sApplicationOutput) LimitMem() pulumi.IntPtrOutput
The memory limit of the application instance during application operation, unit: M.
func (K8sApplicationOutput) Liveness ¶ added in v3.27.0
func (o K8sApplicationOutput) Liveness() pulumi.StringPtrOutput
Container survival status monitoring, format such as: `{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"tcpSocket":{"host":"", "port":8080} }`.
func (K8sApplicationOutput) LocalVolume ¶ added in v3.27.0
func (o K8sApplicationOutput) LocalVolume() pulumi.StringPtrOutput
The configuration of the host file mounted to the container. For example: `[{"type":"","nodePath":"/localfiles","mountPath":"/app/files"},{"type":"Directory","nodePath":"/mnt", "mountPath":"/app/storage"}]`. Among them, nodePath is the host path; mountPath is the path in the container; type is the mount type.
func (K8sApplicationOutput) LogicalRegionId ¶ added in v3.27.0
func (o K8sApplicationOutput) LogicalRegionId() pulumi.StringPtrOutput
The ID corresponding to the EDAS namespace, the non-default namespace must be filled in.
func (K8sApplicationOutput) MountDescs ¶ added in v3.27.0
func (o K8sApplicationOutput) MountDescs() pulumi.StringPtrOutput
Mount configuration description, as a serialized JSON. For example: `[{"nasPath": "/k8s","mountPath": "/mnt"},{"nasPath": "/files","mountPath": "/app/files"}]`. Among them, nasPath refers to the file storage path; mountPath refers to the path mounted in the container.
func (K8sApplicationOutput) Namespace ¶ added in v3.27.0
func (o K8sApplicationOutput) Namespace() pulumi.StringPtrOutput
The namespace of the K8s cluster, it will determine which K8s namespace your application is deployed in. The default is 'default'.
func (K8sApplicationOutput) NasId ¶ added in v3.27.0
func (o K8sApplicationOutput) NasId() pulumi.StringPtrOutput
The ID of the mounted NAS must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field exists, a NAS will be automatically purchased and mounted on the switch in the VPC by default.
func (K8sApplicationOutput) PackageType ¶ added in v3.27.0
func (o K8sApplicationOutput) PackageType() pulumi.StringPtrOutput
Application package type. Optional parameter values include: FatJar, WAR and Image.
func (K8sApplicationOutput) PackageUrl ¶ added in v3.27.0
func (o K8sApplicationOutput) PackageUrl() pulumi.StringPtrOutput
The url of the package to deploy.Applications deployed through FatJar or WAR packages need to configure it.
func (K8sApplicationOutput) PackageVersion ¶ added in v3.27.0
func (o K8sApplicationOutput) PackageVersion() pulumi.StringOutput
The version number of the deployment package. WAR and FatJar types are required. Please customize its meaning.
func (K8sApplicationOutput) PostStart ¶ added in v3.27.0
func (o K8sApplicationOutput) PostStart() pulumi.StringPtrOutput
Execute script after startup
func (K8sApplicationOutput) PreStop ¶ added in v3.27.0
func (o K8sApplicationOutput) PreStop() pulumi.StringPtrOutput
Execute script before stopping
func (K8sApplicationOutput) Readiness ¶ added in v3.27.0
func (o K8sApplicationOutput) Readiness() pulumi.StringPtrOutput
Container service status check. If the check fails, the traffic passing through K8s Service will not be transferred to the container. The format is: `{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1, "httpGet": {"path": "/consumer","port": 8080,"scheme": "HTTP","httpHeaders": [{"name": "test","value": "testvalue"} ]}}`.
func (K8sApplicationOutput) Replicas ¶ added in v3.27.0
func (o K8sApplicationOutput) Replicas() pulumi.IntPtrOutput
Number of application instances.
func (K8sApplicationOutput) RequestsMCpu ¶ added in v3.27.0
func (o K8sApplicationOutput) RequestsMCpu() pulumi.IntPtrOutput
When the application is created, the CPU quota of the application instance, unit: number of millcores, similar to request_cpu
func (K8sApplicationOutput) RequestsMem ¶ added in v3.27.0
func (o K8sApplicationOutput) RequestsMem() pulumi.IntPtrOutput
When the application is created, the memory limit of the application instance, unit: M. When set to 0, it means unlimited.
func (K8sApplicationOutput) ToK8sApplicationOutput ¶
func (o K8sApplicationOutput) ToK8sApplicationOutput() K8sApplicationOutput
func (K8sApplicationOutput) ToK8sApplicationOutputWithContext ¶
func (o K8sApplicationOutput) ToK8sApplicationOutputWithContext(ctx context.Context) K8sApplicationOutput
func (K8sApplicationOutput) WebContainer ¶ added in v3.27.0
func (o K8sApplicationOutput) WebContainer() pulumi.StringPtrOutput
The Tomcat version that the deployment package depends on. Applicable to Spring Cloud and Dubbo applications deployed through WAR packages. Image does not support this parameter.
type K8sApplicationState ¶
type K8sApplicationState struct { // The description of the application ApplicationDescriotion pulumi.StringPtrInput // The name of the application you want to create. Must start with character,supports numbers, letters and dashes (-), supports up to 36 characters ApplicationName pulumi.StringPtrInput // The ID of the alicloud container service kubernetes cluster that you want to import to. You can call the ListCluster operation to query. ClusterId pulumi.StringPtrInput // The set command, if set, will replace the startup command in the mirror when the mirror is started. Command pulumi.StringPtrInput // Used in combination with the command, the parameter of the command is a JsonArray string in the format: `[{"argument":"-c"},{"argument":"test"}]`. Among them, -c and test are two parameters that need to be set. CommandArgs pulumi.StringArrayInput // EDAS-Container version that the deployed package depends on. Image does not support this parameter. EdasContainerVersion pulumi.StringPtrInput // Deployment environment variables, the format must conform to the JSON object array, such as: `{"name":"x","value":"y"},{"name":"x2","value":"y2"}`, If you want to cancel the configuration, you need to set an empty JSON array "" to indicate no configuration. Envs pulumi.StringMapInput // Mirror address. When the packageType is set to 'Image', this parameter item is required. ImageUrl pulumi.StringPtrInput // Public network SLB ID. If not configured, EDAS will automatically purchase a new SLB for the user. // It has been deprecated, and new resource 'alicloud_edas_k8s_slb_attachment' replaces it. // // Deprecated: Field 'internet_slb_id' has been deprecated, New Resource 'alicloud_edas_k8s_slb_attachment' replaces it InternetSlbId pulumi.StringPtrInput // The public network SLB front-end port, range 1~65535. It has been deprecated and new resource 'alicloud_edas_k8s_slb_attachment' replaces it. // // Deprecated: Field 'internet_slb_port' has been deprecated, New Resource 'alicloud_edas_k8s_slb_attachment' replaces it InternetSlbPort pulumi.IntPtrInput // The public network SLB protocol supports TCP, HTTP and HTTPS protocols. It has been deprecated, and new resource 'alicloud_edas_k8s_slb_attachment' replaces it. // // Deprecated: Field 'internet_slb_protocol' has been deprecated, New Resource 'alicloud_edas_k8s_slb_attachment' replaces it InternetSlbProtocol pulumi.StringPtrInput // The private SLB back-end port, is also the service port of the application, ranging from 1 to 65535. // It has been deprecated, and new resource 'alicloud_edas_k8s_slb_attachment' replaces it. // // Deprecated: Field 'internet_target_port' has been deprecated, New Resource 'alicloud_edas_k8s_slb_attachment' replaces it InternetTargetPort pulumi.IntPtrInput // The JDK version that the deployed package depends on. The optional parameter values are Open JDK 7 and Open JDK 8. Image does not support this parameter. Jdk pulumi.StringPtrInput // The CPU quota of the application instance during application operation. Unit: Number of millcores, set to 0 means unlimited, similar to request_cpu. LimitMCpu pulumi.IntPtrInput // The memory limit of the application instance during application operation, unit: M. LimitMem pulumi.IntPtrInput // Container survival status monitoring, format such as: `{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"tcpSocket":{"host":"", "port":8080} }`. Liveness pulumi.StringPtrInput // The configuration of the host file mounted to the container. For example: `[{"type":"","nodePath":"/localfiles","mountPath":"/app/files"},{"type":"Directory","nodePath":"/mnt", "mountPath":"/app/storage"}]`. Among them, nodePath is the host path; mountPath is the path in the container; type is the mount type. LocalVolume pulumi.StringPtrInput // The ID corresponding to the EDAS namespace, the non-default namespace must be filled in. LogicalRegionId pulumi.StringPtrInput // Mount configuration description, as a serialized JSON. For example: `[{"nasPath": "/k8s","mountPath": "/mnt"},{"nasPath": "/files","mountPath": "/app/files"}]`. Among them, nasPath refers to the file storage path; mountPath refers to the path mounted in the container. MountDescs pulumi.StringPtrInput // The namespace of the K8s cluster, it will determine which K8s namespace your application is deployed in. The default is 'default'. Namespace pulumi.StringPtrInput // The ID of the mounted NAS must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field exists, a NAS will be automatically purchased and mounted on the switch in the VPC by default. NasId pulumi.StringPtrInput // Application package type. Optional parameter values include: FatJar, WAR and Image. PackageType pulumi.StringPtrInput // The url of the package to deploy.Applications deployed through FatJar or WAR packages need to configure it. PackageUrl pulumi.StringPtrInput // The version number of the deployment package. WAR and FatJar types are required. Please customize its meaning. PackageVersion pulumi.StringPtrInput // Execute script after startup PostStart pulumi.StringPtrInput // Execute script before stopping PreStop pulumi.StringPtrInput // Container service status check. If the check fails, the traffic passing through K8s Service will not be transferred to the container. The format is: `{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1, "httpGet": {"path": "/consumer","port": 8080,"scheme": "HTTP","httpHeaders": [{"name": "test","value": "testvalue"} ]}}`. Readiness pulumi.StringPtrInput // Number of application instances. Replicas pulumi.IntPtrInput // When the application is created, the CPU quota of the application instance, unit: number of millcores, similar to request_cpu RequestsMCpu pulumi.IntPtrInput // When the application is created, the memory limit of the application instance, unit: M. When set to 0, it means unlimited. RequestsMem pulumi.IntPtrInput // The Tomcat version that the deployment package depends on. Applicable to Spring Cloud and Dubbo applications deployed through WAR packages. Image does not support this parameter. WebContainer pulumi.StringPtrInput }
func (K8sApplicationState) ElementType ¶
func (K8sApplicationState) ElementType() reflect.Type
type K8sCluster ¶
type K8sCluster struct { pulumi.CustomResourceState // The import status of cluster: // `1`: success. // `2`: failed. // `3`: importing. // `4`: deleted. ClusterImportStatus pulumi.IntOutput `pulumi:"clusterImportStatus"` // The name of the cluster that you want to create. ClusterName pulumi.StringOutput `pulumi:"clusterName"` // The type of the cluster that you want to create. Valid values only: 5: K8s cluster. ClusterType pulumi.IntOutput `pulumi:"clusterType"` // The ID of the alicloud container service kubernetes cluster that you want to import. CsClusterId pulumi.StringOutput `pulumi:"csClusterId"` // The ID of the namespace where you want to import. You can call the [ListUserDefineRegion](https://www.alibabacloud.com/help/en/doc-detail/149377.htm?spm=a2c63.p38356.879954.34.331054faK2yNvC#doc-api-Edas-ListUserDefineRegion) operation to query the namespace ID. NamespaceId pulumi.StringPtrOutput `pulumi:"namespaceId"` // The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC. NetworkMode pulumi.IntOutput `pulumi:"networkMode"` // The ID of the Virtual Private Cloud (VPC) for the cluster. VpcId pulumi.StringOutput `pulumi:"vpcId"` }
Provides an EDAS K8s cluster resource. For information about EDAS K8s Cluster and how to use it, see[What is EDAS K8s Cluster](https://www.alibabacloud.com/help/en/doc-detail/85108.htm).
> **NOTE:** Available since v1.93.0.
## Import
EDAS cluster can be imported using the id, e.g.
```sh $ pulumi import alicloud:edas/k8sCluster:K8sCluster cluster cluster_id ```
func GetK8sCluster ¶
func GetK8sCluster(ctx *pulumi.Context, name string, id pulumi.IDInput, state *K8sClusterState, opts ...pulumi.ResourceOption) (*K8sCluster, error)
GetK8sCluster gets an existing K8sCluster resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewK8sCluster ¶
func NewK8sCluster(ctx *pulumi.Context, name string, args *K8sClusterArgs, opts ...pulumi.ResourceOption) (*K8sCluster, error)
NewK8sCluster registers a new resource with the given unique name, arguments, and options.
func (*K8sCluster) ElementType ¶
func (*K8sCluster) ElementType() reflect.Type
func (*K8sCluster) ToK8sClusterOutput ¶
func (i *K8sCluster) ToK8sClusterOutput() K8sClusterOutput
func (*K8sCluster) ToK8sClusterOutputWithContext ¶
func (i *K8sCluster) ToK8sClusterOutputWithContext(ctx context.Context) K8sClusterOutput
type K8sClusterArgs ¶
type K8sClusterArgs struct { // The ID of the alicloud container service kubernetes cluster that you want to import. CsClusterId pulumi.StringInput // The ID of the namespace where you want to import. You can call the [ListUserDefineRegion](https://www.alibabacloud.com/help/en/doc-detail/149377.htm?spm=a2c63.p38356.879954.34.331054faK2yNvC#doc-api-Edas-ListUserDefineRegion) operation to query the namespace ID. NamespaceId pulumi.StringPtrInput }
The set of arguments for constructing a K8sCluster resource.
func (K8sClusterArgs) ElementType ¶
func (K8sClusterArgs) ElementType() reflect.Type
type K8sClusterArray ¶
type K8sClusterArray []K8sClusterInput
func (K8sClusterArray) ElementType ¶
func (K8sClusterArray) ElementType() reflect.Type
func (K8sClusterArray) ToK8sClusterArrayOutput ¶
func (i K8sClusterArray) ToK8sClusterArrayOutput() K8sClusterArrayOutput
func (K8sClusterArray) ToK8sClusterArrayOutputWithContext ¶
func (i K8sClusterArray) ToK8sClusterArrayOutputWithContext(ctx context.Context) K8sClusterArrayOutput
type K8sClusterArrayInput ¶
type K8sClusterArrayInput interface { pulumi.Input ToK8sClusterArrayOutput() K8sClusterArrayOutput ToK8sClusterArrayOutputWithContext(context.Context) K8sClusterArrayOutput }
K8sClusterArrayInput is an input type that accepts K8sClusterArray and K8sClusterArrayOutput values. You can construct a concrete instance of `K8sClusterArrayInput` via:
K8sClusterArray{ K8sClusterArgs{...} }
type K8sClusterArrayOutput ¶
type K8sClusterArrayOutput struct{ *pulumi.OutputState }
func (K8sClusterArrayOutput) ElementType ¶
func (K8sClusterArrayOutput) ElementType() reflect.Type
func (K8sClusterArrayOutput) Index ¶
func (o K8sClusterArrayOutput) Index(i pulumi.IntInput) K8sClusterOutput
func (K8sClusterArrayOutput) ToK8sClusterArrayOutput ¶
func (o K8sClusterArrayOutput) ToK8sClusterArrayOutput() K8sClusterArrayOutput
func (K8sClusterArrayOutput) ToK8sClusterArrayOutputWithContext ¶
func (o K8sClusterArrayOutput) ToK8sClusterArrayOutputWithContext(ctx context.Context) K8sClusterArrayOutput
type K8sClusterInput ¶
type K8sClusterInput interface { pulumi.Input ToK8sClusterOutput() K8sClusterOutput ToK8sClusterOutputWithContext(ctx context.Context) K8sClusterOutput }
type K8sClusterMap ¶
type K8sClusterMap map[string]K8sClusterInput
func (K8sClusterMap) ElementType ¶
func (K8sClusterMap) ElementType() reflect.Type
func (K8sClusterMap) ToK8sClusterMapOutput ¶
func (i K8sClusterMap) ToK8sClusterMapOutput() K8sClusterMapOutput
func (K8sClusterMap) ToK8sClusterMapOutputWithContext ¶
func (i K8sClusterMap) ToK8sClusterMapOutputWithContext(ctx context.Context) K8sClusterMapOutput
type K8sClusterMapInput ¶
type K8sClusterMapInput interface { pulumi.Input ToK8sClusterMapOutput() K8sClusterMapOutput ToK8sClusterMapOutputWithContext(context.Context) K8sClusterMapOutput }
K8sClusterMapInput is an input type that accepts K8sClusterMap and K8sClusterMapOutput values. You can construct a concrete instance of `K8sClusterMapInput` via:
K8sClusterMap{ "key": K8sClusterArgs{...} }
type K8sClusterMapOutput ¶
type K8sClusterMapOutput struct{ *pulumi.OutputState }
func (K8sClusterMapOutput) ElementType ¶
func (K8sClusterMapOutput) ElementType() reflect.Type
func (K8sClusterMapOutput) MapIndex ¶
func (o K8sClusterMapOutput) MapIndex(k pulumi.StringInput) K8sClusterOutput
func (K8sClusterMapOutput) ToK8sClusterMapOutput ¶
func (o K8sClusterMapOutput) ToK8sClusterMapOutput() K8sClusterMapOutput
func (K8sClusterMapOutput) ToK8sClusterMapOutputWithContext ¶
func (o K8sClusterMapOutput) ToK8sClusterMapOutputWithContext(ctx context.Context) K8sClusterMapOutput
type K8sClusterOutput ¶
type K8sClusterOutput struct{ *pulumi.OutputState }
func (K8sClusterOutput) ClusterImportStatus ¶ added in v3.27.0
func (o K8sClusterOutput) ClusterImportStatus() pulumi.IntOutput
The import status of cluster: `1`: success. `2`: failed. `3`: importing. `4`: deleted.
func (K8sClusterOutput) ClusterName ¶ added in v3.27.0
func (o K8sClusterOutput) ClusterName() pulumi.StringOutput
The name of the cluster that you want to create.
func (K8sClusterOutput) ClusterType ¶ added in v3.27.0
func (o K8sClusterOutput) ClusterType() pulumi.IntOutput
The type of the cluster that you want to create. Valid values only: 5: K8s cluster.
func (K8sClusterOutput) CsClusterId ¶ added in v3.27.0
func (o K8sClusterOutput) CsClusterId() pulumi.StringOutput
The ID of the alicloud container service kubernetes cluster that you want to import.
func (K8sClusterOutput) ElementType ¶
func (K8sClusterOutput) ElementType() reflect.Type
func (K8sClusterOutput) NamespaceId ¶ added in v3.27.0
func (o K8sClusterOutput) NamespaceId() pulumi.StringPtrOutput
The ID of the namespace where you want to import. You can call the [ListUserDefineRegion](https://www.alibabacloud.com/help/en/doc-detail/149377.htm?spm=a2c63.p38356.879954.34.331054faK2yNvC#doc-api-Edas-ListUserDefineRegion) operation to query the namespace ID.
func (K8sClusterOutput) NetworkMode ¶ added in v3.27.0
func (o K8sClusterOutput) NetworkMode() pulumi.IntOutput
The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC.
func (K8sClusterOutput) ToK8sClusterOutput ¶
func (o K8sClusterOutput) ToK8sClusterOutput() K8sClusterOutput
func (K8sClusterOutput) ToK8sClusterOutputWithContext ¶
func (o K8sClusterOutput) ToK8sClusterOutputWithContext(ctx context.Context) K8sClusterOutput
func (K8sClusterOutput) VpcId ¶ added in v3.27.0
func (o K8sClusterOutput) VpcId() pulumi.StringOutput
The ID of the Virtual Private Cloud (VPC) for the cluster.
type K8sClusterState ¶
type K8sClusterState struct { // The import status of cluster: // `1`: success. // `2`: failed. // `3`: importing. // `4`: deleted. ClusterImportStatus pulumi.IntPtrInput // The name of the cluster that you want to create. ClusterName pulumi.StringPtrInput // The type of the cluster that you want to create. Valid values only: 5: K8s cluster. ClusterType pulumi.IntPtrInput // The ID of the alicloud container service kubernetes cluster that you want to import. CsClusterId pulumi.StringPtrInput // The ID of the namespace where you want to import. You can call the [ListUserDefineRegion](https://www.alibabacloud.com/help/en/doc-detail/149377.htm?spm=a2c63.p38356.879954.34.331054faK2yNvC#doc-api-Edas-ListUserDefineRegion) operation to query the namespace ID. NamespaceId pulumi.StringPtrInput // The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC. NetworkMode pulumi.IntPtrInput // The ID of the Virtual Private Cloud (VPC) for the cluster. VpcId pulumi.StringPtrInput }
func (K8sClusterState) ElementType ¶
func (K8sClusterState) ElementType() reflect.Type
type K8sSlbAttachment ¶ added in v3.29.0
type K8sSlbAttachment struct { pulumi.CustomResourceState // The ID of the EDAS k8s application to which you want to bind SLB instances. AppId pulumi.StringOutput `pulumi:"appId"` // The configurations of SLB attachment, which is supported for multiple configurations. See `slbConfigs` below. SlbConfigs K8sSlbAttachmentSlbConfigArrayOutput `pulumi:"slbConfigs"` }
Binds SLBs to an EDAS k8s application.
For information about EDAS k8s slb attachment and how to use it, see [What is k8s slb attachment](https://www.alibabacloud.com/help/en/enterprise-distributed-application-service/latest/bindk8sslb).
> **NOTE:** Available since v1.194.0.
## Import
Slb information of EDAS k8s application can be imported using the ID of an EDAS k8s application. e.g.
```sh $ pulumi import alicloud:edas/k8sSlbAttachment:K8sSlbAttachment example <EDAS k8s app id> ```
func GetK8sSlbAttachment ¶ added in v3.29.0
func GetK8sSlbAttachment(ctx *pulumi.Context, name string, id pulumi.IDInput, state *K8sSlbAttachmentState, opts ...pulumi.ResourceOption) (*K8sSlbAttachment, error)
GetK8sSlbAttachment gets an existing K8sSlbAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewK8sSlbAttachment ¶ added in v3.29.0
func NewK8sSlbAttachment(ctx *pulumi.Context, name string, args *K8sSlbAttachmentArgs, opts ...pulumi.ResourceOption) (*K8sSlbAttachment, error)
NewK8sSlbAttachment registers a new resource with the given unique name, arguments, and options.
func (*K8sSlbAttachment) ElementType ¶ added in v3.29.0
func (*K8sSlbAttachment) ElementType() reflect.Type
func (*K8sSlbAttachment) ToK8sSlbAttachmentOutput ¶ added in v3.29.0
func (i *K8sSlbAttachment) ToK8sSlbAttachmentOutput() K8sSlbAttachmentOutput
func (*K8sSlbAttachment) ToK8sSlbAttachmentOutputWithContext ¶ added in v3.29.0
func (i *K8sSlbAttachment) ToK8sSlbAttachmentOutputWithContext(ctx context.Context) K8sSlbAttachmentOutput
type K8sSlbAttachmentArgs ¶ added in v3.29.0
type K8sSlbAttachmentArgs struct { // The ID of the EDAS k8s application to which you want to bind SLB instances. AppId pulumi.StringInput // The configurations of SLB attachment, which is supported for multiple configurations. See `slbConfigs` below. SlbConfigs K8sSlbAttachmentSlbConfigArrayInput }
The set of arguments for constructing a K8sSlbAttachment resource.
func (K8sSlbAttachmentArgs) ElementType ¶ added in v3.29.0
func (K8sSlbAttachmentArgs) ElementType() reflect.Type
type K8sSlbAttachmentArray ¶ added in v3.29.0
type K8sSlbAttachmentArray []K8sSlbAttachmentInput
func (K8sSlbAttachmentArray) ElementType ¶ added in v3.29.0
func (K8sSlbAttachmentArray) ElementType() reflect.Type
func (K8sSlbAttachmentArray) ToK8sSlbAttachmentArrayOutput ¶ added in v3.29.0
func (i K8sSlbAttachmentArray) ToK8sSlbAttachmentArrayOutput() K8sSlbAttachmentArrayOutput
func (K8sSlbAttachmentArray) ToK8sSlbAttachmentArrayOutputWithContext ¶ added in v3.29.0
func (i K8sSlbAttachmentArray) ToK8sSlbAttachmentArrayOutputWithContext(ctx context.Context) K8sSlbAttachmentArrayOutput
type K8sSlbAttachmentArrayInput ¶ added in v3.29.0
type K8sSlbAttachmentArrayInput interface { pulumi.Input ToK8sSlbAttachmentArrayOutput() K8sSlbAttachmentArrayOutput ToK8sSlbAttachmentArrayOutputWithContext(context.Context) K8sSlbAttachmentArrayOutput }
K8sSlbAttachmentArrayInput is an input type that accepts K8sSlbAttachmentArray and K8sSlbAttachmentArrayOutput values. You can construct a concrete instance of `K8sSlbAttachmentArrayInput` via:
K8sSlbAttachmentArray{ K8sSlbAttachmentArgs{...} }
type K8sSlbAttachmentArrayOutput ¶ added in v3.29.0
type K8sSlbAttachmentArrayOutput struct{ *pulumi.OutputState }
func (K8sSlbAttachmentArrayOutput) ElementType ¶ added in v3.29.0
func (K8sSlbAttachmentArrayOutput) ElementType() reflect.Type
func (K8sSlbAttachmentArrayOutput) Index ¶ added in v3.29.0
func (o K8sSlbAttachmentArrayOutput) Index(i pulumi.IntInput) K8sSlbAttachmentOutput
func (K8sSlbAttachmentArrayOutput) ToK8sSlbAttachmentArrayOutput ¶ added in v3.29.0
func (o K8sSlbAttachmentArrayOutput) ToK8sSlbAttachmentArrayOutput() K8sSlbAttachmentArrayOutput
func (K8sSlbAttachmentArrayOutput) ToK8sSlbAttachmentArrayOutputWithContext ¶ added in v3.29.0
func (o K8sSlbAttachmentArrayOutput) ToK8sSlbAttachmentArrayOutputWithContext(ctx context.Context) K8sSlbAttachmentArrayOutput
type K8sSlbAttachmentInput ¶ added in v3.29.0
type K8sSlbAttachmentInput interface { pulumi.Input ToK8sSlbAttachmentOutput() K8sSlbAttachmentOutput ToK8sSlbAttachmentOutputWithContext(ctx context.Context) K8sSlbAttachmentOutput }
type K8sSlbAttachmentMap ¶ added in v3.29.0
type K8sSlbAttachmentMap map[string]K8sSlbAttachmentInput
func (K8sSlbAttachmentMap) ElementType ¶ added in v3.29.0
func (K8sSlbAttachmentMap) ElementType() reflect.Type
func (K8sSlbAttachmentMap) ToK8sSlbAttachmentMapOutput ¶ added in v3.29.0
func (i K8sSlbAttachmentMap) ToK8sSlbAttachmentMapOutput() K8sSlbAttachmentMapOutput
func (K8sSlbAttachmentMap) ToK8sSlbAttachmentMapOutputWithContext ¶ added in v3.29.0
func (i K8sSlbAttachmentMap) ToK8sSlbAttachmentMapOutputWithContext(ctx context.Context) K8sSlbAttachmentMapOutput
type K8sSlbAttachmentMapInput ¶ added in v3.29.0
type K8sSlbAttachmentMapInput interface { pulumi.Input ToK8sSlbAttachmentMapOutput() K8sSlbAttachmentMapOutput ToK8sSlbAttachmentMapOutputWithContext(context.Context) K8sSlbAttachmentMapOutput }
K8sSlbAttachmentMapInput is an input type that accepts K8sSlbAttachmentMap and K8sSlbAttachmentMapOutput values. You can construct a concrete instance of `K8sSlbAttachmentMapInput` via:
K8sSlbAttachmentMap{ "key": K8sSlbAttachmentArgs{...} }
type K8sSlbAttachmentMapOutput ¶ added in v3.29.0
type K8sSlbAttachmentMapOutput struct{ *pulumi.OutputState }
func (K8sSlbAttachmentMapOutput) ElementType ¶ added in v3.29.0
func (K8sSlbAttachmentMapOutput) ElementType() reflect.Type
func (K8sSlbAttachmentMapOutput) MapIndex ¶ added in v3.29.0
func (o K8sSlbAttachmentMapOutput) MapIndex(k pulumi.StringInput) K8sSlbAttachmentOutput
func (K8sSlbAttachmentMapOutput) ToK8sSlbAttachmentMapOutput ¶ added in v3.29.0
func (o K8sSlbAttachmentMapOutput) ToK8sSlbAttachmentMapOutput() K8sSlbAttachmentMapOutput
func (K8sSlbAttachmentMapOutput) ToK8sSlbAttachmentMapOutputWithContext ¶ added in v3.29.0
func (o K8sSlbAttachmentMapOutput) ToK8sSlbAttachmentMapOutputWithContext(ctx context.Context) K8sSlbAttachmentMapOutput
type K8sSlbAttachmentOutput ¶ added in v3.29.0
type K8sSlbAttachmentOutput struct{ *pulumi.OutputState }
func (K8sSlbAttachmentOutput) AppId ¶ added in v3.29.0
func (o K8sSlbAttachmentOutput) AppId() pulumi.StringOutput
The ID of the EDAS k8s application to which you want to bind SLB instances.
func (K8sSlbAttachmentOutput) ElementType ¶ added in v3.29.0
func (K8sSlbAttachmentOutput) ElementType() reflect.Type
func (K8sSlbAttachmentOutput) SlbConfigs ¶ added in v3.29.0
func (o K8sSlbAttachmentOutput) SlbConfigs() K8sSlbAttachmentSlbConfigArrayOutput
The configurations of SLB attachment, which is supported for multiple configurations. See `slbConfigs` below.
func (K8sSlbAttachmentOutput) ToK8sSlbAttachmentOutput ¶ added in v3.29.0
func (o K8sSlbAttachmentOutput) ToK8sSlbAttachmentOutput() K8sSlbAttachmentOutput
func (K8sSlbAttachmentOutput) ToK8sSlbAttachmentOutputWithContext ¶ added in v3.29.0
func (o K8sSlbAttachmentOutput) ToK8sSlbAttachmentOutputWithContext(ctx context.Context) K8sSlbAttachmentOutput
type K8sSlbAttachmentSlbConfig ¶ added in v3.29.0
type K8sSlbAttachmentSlbConfig struct { // The name of this SLB configuration, empty for auto-generated by EDAS server. Name *string `pulumi:"name"` // The port configuration for SLB instance, which is supported for multiple configurations. See `portMappings` below. PortMappings []K8sSlbAttachmentSlbConfigPortMapping `pulumi:"portMappings"` // The scheduler policy of SLB configuration, values can be 'rr'(round-robin) or 'wrr'(weighted round-robin). Scheduler string `pulumi:"scheduler"` // The ID of your SLB instance, if value is empty which means EDAS will purchase an SLB instance with 'specification' field. SlbId *string `pulumi:"slbId"` // The instance specification of SLB, values can be found [here](https://www.alibabacloud.com/help/en/server-load-balancer/latest/createloadbalancer-2#t4182.html), empty for 'slb.s1.small'. Specification *string `pulumi:"specification"` // The type of SLB instance, values can be 'internet' or 'intranet'. Type string `pulumi:"type"` }
type K8sSlbAttachmentSlbConfigArgs ¶ added in v3.29.0
type K8sSlbAttachmentSlbConfigArgs struct { // The name of this SLB configuration, empty for auto-generated by EDAS server. Name pulumi.StringPtrInput `pulumi:"name"` // The port configuration for SLB instance, which is supported for multiple configurations. See `portMappings` below. PortMappings K8sSlbAttachmentSlbConfigPortMappingArrayInput `pulumi:"portMappings"` // The scheduler policy of SLB configuration, values can be 'rr'(round-robin) or 'wrr'(weighted round-robin). Scheduler pulumi.StringInput `pulumi:"scheduler"` // The ID of your SLB instance, if value is empty which means EDAS will purchase an SLB instance with 'specification' field. SlbId pulumi.StringPtrInput `pulumi:"slbId"` // The instance specification of SLB, values can be found [here](https://www.alibabacloud.com/help/en/server-load-balancer/latest/createloadbalancer-2#t4182.html), empty for 'slb.s1.small'. Specification pulumi.StringPtrInput `pulumi:"specification"` // The type of SLB instance, values can be 'internet' or 'intranet'. Type pulumi.StringInput `pulumi:"type"` }
func (K8sSlbAttachmentSlbConfigArgs) ElementType ¶ added in v3.29.0
func (K8sSlbAttachmentSlbConfigArgs) ElementType() reflect.Type
func (K8sSlbAttachmentSlbConfigArgs) ToK8sSlbAttachmentSlbConfigOutput ¶ added in v3.29.0
func (i K8sSlbAttachmentSlbConfigArgs) ToK8sSlbAttachmentSlbConfigOutput() K8sSlbAttachmentSlbConfigOutput
func (K8sSlbAttachmentSlbConfigArgs) ToK8sSlbAttachmentSlbConfigOutputWithContext ¶ added in v3.29.0
func (i K8sSlbAttachmentSlbConfigArgs) ToK8sSlbAttachmentSlbConfigOutputWithContext(ctx context.Context) K8sSlbAttachmentSlbConfigOutput
type K8sSlbAttachmentSlbConfigArray ¶ added in v3.29.0
type K8sSlbAttachmentSlbConfigArray []K8sSlbAttachmentSlbConfigInput
func (K8sSlbAttachmentSlbConfigArray) ElementType ¶ added in v3.29.0
func (K8sSlbAttachmentSlbConfigArray) ElementType() reflect.Type
func (K8sSlbAttachmentSlbConfigArray) ToK8sSlbAttachmentSlbConfigArrayOutput ¶ added in v3.29.0
func (i K8sSlbAttachmentSlbConfigArray) ToK8sSlbAttachmentSlbConfigArrayOutput() K8sSlbAttachmentSlbConfigArrayOutput
func (K8sSlbAttachmentSlbConfigArray) ToK8sSlbAttachmentSlbConfigArrayOutputWithContext ¶ added in v3.29.0
func (i K8sSlbAttachmentSlbConfigArray) ToK8sSlbAttachmentSlbConfigArrayOutputWithContext(ctx context.Context) K8sSlbAttachmentSlbConfigArrayOutput
type K8sSlbAttachmentSlbConfigArrayInput ¶ added in v3.29.0
type K8sSlbAttachmentSlbConfigArrayInput interface { pulumi.Input ToK8sSlbAttachmentSlbConfigArrayOutput() K8sSlbAttachmentSlbConfigArrayOutput ToK8sSlbAttachmentSlbConfigArrayOutputWithContext(context.Context) K8sSlbAttachmentSlbConfigArrayOutput }
K8sSlbAttachmentSlbConfigArrayInput is an input type that accepts K8sSlbAttachmentSlbConfigArray and K8sSlbAttachmentSlbConfigArrayOutput values. You can construct a concrete instance of `K8sSlbAttachmentSlbConfigArrayInput` via:
K8sSlbAttachmentSlbConfigArray{ K8sSlbAttachmentSlbConfigArgs{...} }
type K8sSlbAttachmentSlbConfigArrayOutput ¶ added in v3.29.0
type K8sSlbAttachmentSlbConfigArrayOutput struct{ *pulumi.OutputState }
func (K8sSlbAttachmentSlbConfigArrayOutput) ElementType ¶ added in v3.29.0
func (K8sSlbAttachmentSlbConfigArrayOutput) ElementType() reflect.Type
func (K8sSlbAttachmentSlbConfigArrayOutput) Index ¶ added in v3.29.0
func (o K8sSlbAttachmentSlbConfigArrayOutput) Index(i pulumi.IntInput) K8sSlbAttachmentSlbConfigOutput
func (K8sSlbAttachmentSlbConfigArrayOutput) ToK8sSlbAttachmentSlbConfigArrayOutput ¶ added in v3.29.0
func (o K8sSlbAttachmentSlbConfigArrayOutput) ToK8sSlbAttachmentSlbConfigArrayOutput() K8sSlbAttachmentSlbConfigArrayOutput
func (K8sSlbAttachmentSlbConfigArrayOutput) ToK8sSlbAttachmentSlbConfigArrayOutputWithContext ¶ added in v3.29.0
func (o K8sSlbAttachmentSlbConfigArrayOutput) ToK8sSlbAttachmentSlbConfigArrayOutputWithContext(ctx context.Context) K8sSlbAttachmentSlbConfigArrayOutput
type K8sSlbAttachmentSlbConfigInput ¶ added in v3.29.0
type K8sSlbAttachmentSlbConfigInput interface { pulumi.Input ToK8sSlbAttachmentSlbConfigOutput() K8sSlbAttachmentSlbConfigOutput ToK8sSlbAttachmentSlbConfigOutputWithContext(context.Context) K8sSlbAttachmentSlbConfigOutput }
K8sSlbAttachmentSlbConfigInput is an input type that accepts K8sSlbAttachmentSlbConfigArgs and K8sSlbAttachmentSlbConfigOutput values. You can construct a concrete instance of `K8sSlbAttachmentSlbConfigInput` via:
K8sSlbAttachmentSlbConfigArgs{...}
type K8sSlbAttachmentSlbConfigOutput ¶ added in v3.29.0
type K8sSlbAttachmentSlbConfigOutput struct{ *pulumi.OutputState }
func (K8sSlbAttachmentSlbConfigOutput) ElementType ¶ added in v3.29.0
func (K8sSlbAttachmentSlbConfigOutput) ElementType() reflect.Type
func (K8sSlbAttachmentSlbConfigOutput) Name ¶ added in v3.29.0
func (o K8sSlbAttachmentSlbConfigOutput) Name() pulumi.StringPtrOutput
The name of this SLB configuration, empty for auto-generated by EDAS server.
func (K8sSlbAttachmentSlbConfigOutput) PortMappings ¶ added in v3.29.0
func (o K8sSlbAttachmentSlbConfigOutput) PortMappings() K8sSlbAttachmentSlbConfigPortMappingArrayOutput
The port configuration for SLB instance, which is supported for multiple configurations. See `portMappings` below.
func (K8sSlbAttachmentSlbConfigOutput) Scheduler ¶ added in v3.29.0
func (o K8sSlbAttachmentSlbConfigOutput) Scheduler() pulumi.StringOutput
The scheduler policy of SLB configuration, values can be 'rr'(round-robin) or 'wrr'(weighted round-robin).
func (K8sSlbAttachmentSlbConfigOutput) SlbId ¶ added in v3.29.0
func (o K8sSlbAttachmentSlbConfigOutput) SlbId() pulumi.StringPtrOutput
The ID of your SLB instance, if value is empty which means EDAS will purchase an SLB instance with 'specification' field.
func (K8sSlbAttachmentSlbConfigOutput) Specification ¶ added in v3.29.0
func (o K8sSlbAttachmentSlbConfigOutput) Specification() pulumi.StringPtrOutput
The instance specification of SLB, values can be found [here](https://www.alibabacloud.com/help/en/server-load-balancer/latest/createloadbalancer-2#t4182.html), empty for 'slb.s1.small'.
func (K8sSlbAttachmentSlbConfigOutput) ToK8sSlbAttachmentSlbConfigOutput ¶ added in v3.29.0
func (o K8sSlbAttachmentSlbConfigOutput) ToK8sSlbAttachmentSlbConfigOutput() K8sSlbAttachmentSlbConfigOutput
func (K8sSlbAttachmentSlbConfigOutput) ToK8sSlbAttachmentSlbConfigOutputWithContext ¶ added in v3.29.0
func (o K8sSlbAttachmentSlbConfigOutput) ToK8sSlbAttachmentSlbConfigOutputWithContext(ctx context.Context) K8sSlbAttachmentSlbConfigOutput
func (K8sSlbAttachmentSlbConfigOutput) Type ¶ added in v3.29.0
func (o K8sSlbAttachmentSlbConfigOutput) Type() pulumi.StringOutput
The type of SLB instance, values can be 'internet' or 'intranet'.
type K8sSlbAttachmentSlbConfigPortMapping ¶ added in v3.29.0
type K8sSlbAttachmentSlbConfigPortMapping struct { // The ID of your tls certification, this is used for 'HTTPS' protocol only. CertId *string `pulumi:"certId"` // The protocol of SLB instance configuration, values can be 'TCP', 'HTTP' or 'HTTPS'. LoadbalancerProtocol string `pulumi:"loadbalancerProtocol"` // The backend k8s service configuration for SLB instance, which is supported for multiple configurations. See `servicePort` below. ServicePort K8sSlbAttachmentSlbConfigPortMappingServicePort `pulumi:"servicePort"` }
type K8sSlbAttachmentSlbConfigPortMappingArgs ¶ added in v3.29.0
type K8sSlbAttachmentSlbConfigPortMappingArgs struct { // The ID of your tls certification, this is used for 'HTTPS' protocol only. CertId pulumi.StringPtrInput `pulumi:"certId"` // The protocol of SLB instance configuration, values can be 'TCP', 'HTTP' or 'HTTPS'. LoadbalancerProtocol pulumi.StringInput `pulumi:"loadbalancerProtocol"` // The backend k8s service configuration for SLB instance, which is supported for multiple configurations. See `servicePort` below. ServicePort K8sSlbAttachmentSlbConfigPortMappingServicePortInput `pulumi:"servicePort"` }
func (K8sSlbAttachmentSlbConfigPortMappingArgs) ElementType ¶ added in v3.29.0
func (K8sSlbAttachmentSlbConfigPortMappingArgs) ElementType() reflect.Type
func (K8sSlbAttachmentSlbConfigPortMappingArgs) ToK8sSlbAttachmentSlbConfigPortMappingOutput ¶ added in v3.29.0
func (i K8sSlbAttachmentSlbConfigPortMappingArgs) ToK8sSlbAttachmentSlbConfigPortMappingOutput() K8sSlbAttachmentSlbConfigPortMappingOutput
func (K8sSlbAttachmentSlbConfigPortMappingArgs) ToK8sSlbAttachmentSlbConfigPortMappingOutputWithContext ¶ added in v3.29.0
func (i K8sSlbAttachmentSlbConfigPortMappingArgs) ToK8sSlbAttachmentSlbConfigPortMappingOutputWithContext(ctx context.Context) K8sSlbAttachmentSlbConfigPortMappingOutput
type K8sSlbAttachmentSlbConfigPortMappingArray ¶ added in v3.29.0
type K8sSlbAttachmentSlbConfigPortMappingArray []K8sSlbAttachmentSlbConfigPortMappingInput
func (K8sSlbAttachmentSlbConfigPortMappingArray) ElementType ¶ added in v3.29.0
func (K8sSlbAttachmentSlbConfigPortMappingArray) ElementType() reflect.Type
func (K8sSlbAttachmentSlbConfigPortMappingArray) ToK8sSlbAttachmentSlbConfigPortMappingArrayOutput ¶ added in v3.29.0
func (i K8sSlbAttachmentSlbConfigPortMappingArray) ToK8sSlbAttachmentSlbConfigPortMappingArrayOutput() K8sSlbAttachmentSlbConfigPortMappingArrayOutput
func (K8sSlbAttachmentSlbConfigPortMappingArray) ToK8sSlbAttachmentSlbConfigPortMappingArrayOutputWithContext ¶ added in v3.29.0
func (i K8sSlbAttachmentSlbConfigPortMappingArray) ToK8sSlbAttachmentSlbConfigPortMappingArrayOutputWithContext(ctx context.Context) K8sSlbAttachmentSlbConfigPortMappingArrayOutput
type K8sSlbAttachmentSlbConfigPortMappingArrayInput ¶ added in v3.29.0
type K8sSlbAttachmentSlbConfigPortMappingArrayInput interface { pulumi.Input ToK8sSlbAttachmentSlbConfigPortMappingArrayOutput() K8sSlbAttachmentSlbConfigPortMappingArrayOutput ToK8sSlbAttachmentSlbConfigPortMappingArrayOutputWithContext(context.Context) K8sSlbAttachmentSlbConfigPortMappingArrayOutput }
K8sSlbAttachmentSlbConfigPortMappingArrayInput is an input type that accepts K8sSlbAttachmentSlbConfigPortMappingArray and K8sSlbAttachmentSlbConfigPortMappingArrayOutput values. You can construct a concrete instance of `K8sSlbAttachmentSlbConfigPortMappingArrayInput` via:
K8sSlbAttachmentSlbConfigPortMappingArray{ K8sSlbAttachmentSlbConfigPortMappingArgs{...} }
type K8sSlbAttachmentSlbConfigPortMappingArrayOutput ¶ added in v3.29.0
type K8sSlbAttachmentSlbConfigPortMappingArrayOutput struct{ *pulumi.OutputState }
func (K8sSlbAttachmentSlbConfigPortMappingArrayOutput) ElementType ¶ added in v3.29.0
func (K8sSlbAttachmentSlbConfigPortMappingArrayOutput) ElementType() reflect.Type
func (K8sSlbAttachmentSlbConfigPortMappingArrayOutput) ToK8sSlbAttachmentSlbConfigPortMappingArrayOutput ¶ added in v3.29.0
func (o K8sSlbAttachmentSlbConfigPortMappingArrayOutput) ToK8sSlbAttachmentSlbConfigPortMappingArrayOutput() K8sSlbAttachmentSlbConfigPortMappingArrayOutput
func (K8sSlbAttachmentSlbConfigPortMappingArrayOutput) ToK8sSlbAttachmentSlbConfigPortMappingArrayOutputWithContext ¶ added in v3.29.0
func (o K8sSlbAttachmentSlbConfigPortMappingArrayOutput) ToK8sSlbAttachmentSlbConfigPortMappingArrayOutputWithContext(ctx context.Context) K8sSlbAttachmentSlbConfigPortMappingArrayOutput
type K8sSlbAttachmentSlbConfigPortMappingInput ¶ added in v3.29.0
type K8sSlbAttachmentSlbConfigPortMappingInput interface { pulumi.Input ToK8sSlbAttachmentSlbConfigPortMappingOutput() K8sSlbAttachmentSlbConfigPortMappingOutput ToK8sSlbAttachmentSlbConfigPortMappingOutputWithContext(context.Context) K8sSlbAttachmentSlbConfigPortMappingOutput }
K8sSlbAttachmentSlbConfigPortMappingInput is an input type that accepts K8sSlbAttachmentSlbConfigPortMappingArgs and K8sSlbAttachmentSlbConfigPortMappingOutput values. You can construct a concrete instance of `K8sSlbAttachmentSlbConfigPortMappingInput` via:
K8sSlbAttachmentSlbConfigPortMappingArgs{...}
type K8sSlbAttachmentSlbConfigPortMappingOutput ¶ added in v3.29.0
type K8sSlbAttachmentSlbConfigPortMappingOutput struct{ *pulumi.OutputState }
func (K8sSlbAttachmentSlbConfigPortMappingOutput) CertId ¶ added in v3.29.0
func (o K8sSlbAttachmentSlbConfigPortMappingOutput) CertId() pulumi.StringPtrOutput
The ID of your tls certification, this is used for 'HTTPS' protocol only.
func (K8sSlbAttachmentSlbConfigPortMappingOutput) ElementType ¶ added in v3.29.0
func (K8sSlbAttachmentSlbConfigPortMappingOutput) ElementType() reflect.Type
func (K8sSlbAttachmentSlbConfigPortMappingOutput) LoadbalancerProtocol ¶ added in v3.29.0
func (o K8sSlbAttachmentSlbConfigPortMappingOutput) LoadbalancerProtocol() pulumi.StringOutput
The protocol of SLB instance configuration, values can be 'TCP', 'HTTP' or 'HTTPS'.
func (K8sSlbAttachmentSlbConfigPortMappingOutput) ServicePort ¶ added in v3.29.0
func (o K8sSlbAttachmentSlbConfigPortMappingOutput) ServicePort() K8sSlbAttachmentSlbConfigPortMappingServicePortOutput
The backend k8s service configuration for SLB instance, which is supported for multiple configurations. See `servicePort` below.
func (K8sSlbAttachmentSlbConfigPortMappingOutput) ToK8sSlbAttachmentSlbConfigPortMappingOutput ¶ added in v3.29.0
func (o K8sSlbAttachmentSlbConfigPortMappingOutput) ToK8sSlbAttachmentSlbConfigPortMappingOutput() K8sSlbAttachmentSlbConfigPortMappingOutput
func (K8sSlbAttachmentSlbConfigPortMappingOutput) ToK8sSlbAttachmentSlbConfigPortMappingOutputWithContext ¶ added in v3.29.0
func (o K8sSlbAttachmentSlbConfigPortMappingOutput) ToK8sSlbAttachmentSlbConfigPortMappingOutputWithContext(ctx context.Context) K8sSlbAttachmentSlbConfigPortMappingOutput
type K8sSlbAttachmentSlbConfigPortMappingServicePort ¶ added in v3.29.0
type K8sSlbAttachmentSlbConfigPortMappingServicePort struct { // The port of k8s service, values should be within range [1, 65535]. Port int `pulumi:"port"` // The protocol of k8s service, values can be 'TCP' or 'UDP'. Protocol string `pulumi:"protocol"` // The port of k8s pod, values should be within range [1, 65535]. TargetPort int `pulumi:"targetPort"` }
type K8sSlbAttachmentSlbConfigPortMappingServicePortArgs ¶ added in v3.29.0
type K8sSlbAttachmentSlbConfigPortMappingServicePortArgs struct { // The port of k8s service, values should be within range [1, 65535]. Port pulumi.IntInput `pulumi:"port"` // The protocol of k8s service, values can be 'TCP' or 'UDP'. Protocol pulumi.StringInput `pulumi:"protocol"` // The port of k8s pod, values should be within range [1, 65535]. TargetPort pulumi.IntInput `pulumi:"targetPort"` }
func (K8sSlbAttachmentSlbConfigPortMappingServicePortArgs) ElementType ¶ added in v3.29.0
func (K8sSlbAttachmentSlbConfigPortMappingServicePortArgs) ElementType() reflect.Type
func (K8sSlbAttachmentSlbConfigPortMappingServicePortArgs) ToK8sSlbAttachmentSlbConfigPortMappingServicePortOutput ¶ added in v3.29.0
func (i K8sSlbAttachmentSlbConfigPortMappingServicePortArgs) ToK8sSlbAttachmentSlbConfigPortMappingServicePortOutput() K8sSlbAttachmentSlbConfigPortMappingServicePortOutput
func (K8sSlbAttachmentSlbConfigPortMappingServicePortArgs) ToK8sSlbAttachmentSlbConfigPortMappingServicePortOutputWithContext ¶ added in v3.29.0
func (i K8sSlbAttachmentSlbConfigPortMappingServicePortArgs) ToK8sSlbAttachmentSlbConfigPortMappingServicePortOutputWithContext(ctx context.Context) K8sSlbAttachmentSlbConfigPortMappingServicePortOutput
type K8sSlbAttachmentSlbConfigPortMappingServicePortInput ¶ added in v3.29.0
type K8sSlbAttachmentSlbConfigPortMappingServicePortInput interface { pulumi.Input ToK8sSlbAttachmentSlbConfigPortMappingServicePortOutput() K8sSlbAttachmentSlbConfigPortMappingServicePortOutput ToK8sSlbAttachmentSlbConfigPortMappingServicePortOutputWithContext(context.Context) K8sSlbAttachmentSlbConfigPortMappingServicePortOutput }
K8sSlbAttachmentSlbConfigPortMappingServicePortInput is an input type that accepts K8sSlbAttachmentSlbConfigPortMappingServicePortArgs and K8sSlbAttachmentSlbConfigPortMappingServicePortOutput values. You can construct a concrete instance of `K8sSlbAttachmentSlbConfigPortMappingServicePortInput` via:
K8sSlbAttachmentSlbConfigPortMappingServicePortArgs{...}
type K8sSlbAttachmentSlbConfigPortMappingServicePortOutput ¶ added in v3.29.0
type K8sSlbAttachmentSlbConfigPortMappingServicePortOutput struct{ *pulumi.OutputState }
func (K8sSlbAttachmentSlbConfigPortMappingServicePortOutput) ElementType ¶ added in v3.29.0
func (K8sSlbAttachmentSlbConfigPortMappingServicePortOutput) ElementType() reflect.Type
func (K8sSlbAttachmentSlbConfigPortMappingServicePortOutput) Port ¶ added in v3.29.0
func (o K8sSlbAttachmentSlbConfigPortMappingServicePortOutput) Port() pulumi.IntOutput
The port of k8s service, values should be within range [1, 65535].
func (K8sSlbAttachmentSlbConfigPortMappingServicePortOutput) Protocol ¶ added in v3.29.0
func (o K8sSlbAttachmentSlbConfigPortMappingServicePortOutput) Protocol() pulumi.StringOutput
The protocol of k8s service, values can be 'TCP' or 'UDP'.
func (K8sSlbAttachmentSlbConfigPortMappingServicePortOutput) TargetPort ¶ added in v3.29.0
func (o K8sSlbAttachmentSlbConfigPortMappingServicePortOutput) TargetPort() pulumi.IntOutput
The port of k8s pod, values should be within range [1, 65535].
func (K8sSlbAttachmentSlbConfigPortMappingServicePortOutput) ToK8sSlbAttachmentSlbConfigPortMappingServicePortOutput ¶ added in v3.29.0
func (o K8sSlbAttachmentSlbConfigPortMappingServicePortOutput) ToK8sSlbAttachmentSlbConfigPortMappingServicePortOutput() K8sSlbAttachmentSlbConfigPortMappingServicePortOutput
func (K8sSlbAttachmentSlbConfigPortMappingServicePortOutput) ToK8sSlbAttachmentSlbConfigPortMappingServicePortOutputWithContext ¶ added in v3.29.0
func (o K8sSlbAttachmentSlbConfigPortMappingServicePortOutput) ToK8sSlbAttachmentSlbConfigPortMappingServicePortOutputWithContext(ctx context.Context) K8sSlbAttachmentSlbConfigPortMappingServicePortOutput
type K8sSlbAttachmentState ¶ added in v3.29.0
type K8sSlbAttachmentState struct { // The ID of the EDAS k8s application to which you want to bind SLB instances. AppId pulumi.StringPtrInput // The configurations of SLB attachment, which is supported for multiple configurations. See `slbConfigs` below. SlbConfigs K8sSlbAttachmentSlbConfigArrayInput }
func (K8sSlbAttachmentState) ElementType ¶ added in v3.29.0
func (K8sSlbAttachmentState) ElementType() reflect.Type
type Namespace ¶ added in v3.22.0
type Namespace struct { pulumi.CustomResourceState // Specifies whether to enable remote debugging. DebugEnable pulumi.BoolOutput `pulumi:"debugEnable"` // The description of the namespace, The description can be up to `128` characters in length. Description pulumi.StringPtrOutput `pulumi:"description"` // The ID of the namespace. // - The ID of a custom namespace is in the `region ID:namespace identifier` format. An example is `cn-beijing:tdy218`. // - The ID of the default namespace is in the `region ID` format. An example is cn-beijing. NamespaceLogicalId pulumi.StringOutput `pulumi:"namespaceLogicalId"` // The name of the namespace, The name can be up to `63` characters in length. NamespaceName pulumi.StringOutput `pulumi:"namespaceName"` }
Provides a EDAS Namespace resource.
For information about EDAS Namespace and how to use it, see [What is Namespace](https://www.alibabacloud.com/help/en/enterprise-distributed-application-service/latest/insertorupdateregion).
> **NOTE:** Available since v1.173.0.
## Example Usage
Basic Usage ¶
```go package main
import (
"fmt" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/edas" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") name := "tf-example" if param := cfg.Get("name"); param != "" { name = param } defaultRegions, err := alicloud.GetRegions(ctx, &alicloud.GetRegionsArgs{ Current: pulumi.BoolRef(true), }, nil) if err != nil { return err } _, err = edas.NewNamespace(ctx, "defaultNamespace", &edas.NamespaceArgs{ DebugEnable: pulumi.Bool(false), Description: pulumi.String(name), NamespaceLogicalId: pulumi.String(fmt.Sprintf("%v:example", defaultRegions.Regions[0].Id)), NamespaceName: pulumi.String(name), }) if err != nil { return err } return nil }) }
```
## Import
EDAS Namespace can be imported using the id, e.g.
```sh $ pulumi import alicloud:edas/namespace:Namespace example <id> ```
func GetNamespace ¶ added in v3.22.0
func GetNamespace(ctx *pulumi.Context, name string, id pulumi.IDInput, state *NamespaceState, opts ...pulumi.ResourceOption) (*Namespace, error)
GetNamespace gets an existing Namespace resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewNamespace ¶ added in v3.22.0
func NewNamespace(ctx *pulumi.Context, name string, args *NamespaceArgs, opts ...pulumi.ResourceOption) (*Namespace, error)
NewNamespace registers a new resource with the given unique name, arguments, and options.
func (*Namespace) ElementType ¶ added in v3.22.0
func (*Namespace) ToNamespaceOutput ¶ added in v3.22.0
func (i *Namespace) ToNamespaceOutput() NamespaceOutput
func (*Namespace) ToNamespaceOutputWithContext ¶ added in v3.22.0
func (i *Namespace) ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput
type NamespaceArgs ¶ added in v3.22.0
type NamespaceArgs struct { // Specifies whether to enable remote debugging. DebugEnable pulumi.BoolPtrInput // The description of the namespace, The description can be up to `128` characters in length. Description pulumi.StringPtrInput // The ID of the namespace. // - The ID of a custom namespace is in the `region ID:namespace identifier` format. An example is `cn-beijing:tdy218`. // - The ID of the default namespace is in the `region ID` format. An example is cn-beijing. NamespaceLogicalId pulumi.StringInput // The name of the namespace, The name can be up to `63` characters in length. NamespaceName pulumi.StringInput }
The set of arguments for constructing a Namespace resource.
func (NamespaceArgs) ElementType ¶ added in v3.22.0
func (NamespaceArgs) ElementType() reflect.Type
type NamespaceArray ¶ added in v3.22.0
type NamespaceArray []NamespaceInput
func (NamespaceArray) ElementType ¶ added in v3.22.0
func (NamespaceArray) ElementType() reflect.Type
func (NamespaceArray) ToNamespaceArrayOutput ¶ added in v3.22.0
func (i NamespaceArray) ToNamespaceArrayOutput() NamespaceArrayOutput
func (NamespaceArray) ToNamespaceArrayOutputWithContext ¶ added in v3.22.0
func (i NamespaceArray) ToNamespaceArrayOutputWithContext(ctx context.Context) NamespaceArrayOutput
type NamespaceArrayInput ¶ added in v3.22.0
type NamespaceArrayInput interface { pulumi.Input ToNamespaceArrayOutput() NamespaceArrayOutput ToNamespaceArrayOutputWithContext(context.Context) NamespaceArrayOutput }
NamespaceArrayInput is an input type that accepts NamespaceArray and NamespaceArrayOutput values. You can construct a concrete instance of `NamespaceArrayInput` via:
NamespaceArray{ NamespaceArgs{...} }
type NamespaceArrayOutput ¶ added in v3.22.0
type NamespaceArrayOutput struct{ *pulumi.OutputState }
func (NamespaceArrayOutput) ElementType ¶ added in v3.22.0
func (NamespaceArrayOutput) ElementType() reflect.Type
func (NamespaceArrayOutput) Index ¶ added in v3.22.0
func (o NamespaceArrayOutput) Index(i pulumi.IntInput) NamespaceOutput
func (NamespaceArrayOutput) ToNamespaceArrayOutput ¶ added in v3.22.0
func (o NamespaceArrayOutput) ToNamespaceArrayOutput() NamespaceArrayOutput
func (NamespaceArrayOutput) ToNamespaceArrayOutputWithContext ¶ added in v3.22.0
func (o NamespaceArrayOutput) ToNamespaceArrayOutputWithContext(ctx context.Context) NamespaceArrayOutput
type NamespaceInput ¶ added in v3.22.0
type NamespaceInput interface { pulumi.Input ToNamespaceOutput() NamespaceOutput ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput }
type NamespaceMap ¶ added in v3.22.0
type NamespaceMap map[string]NamespaceInput
func (NamespaceMap) ElementType ¶ added in v3.22.0
func (NamespaceMap) ElementType() reflect.Type
func (NamespaceMap) ToNamespaceMapOutput ¶ added in v3.22.0
func (i NamespaceMap) ToNamespaceMapOutput() NamespaceMapOutput
func (NamespaceMap) ToNamespaceMapOutputWithContext ¶ added in v3.22.0
func (i NamespaceMap) ToNamespaceMapOutputWithContext(ctx context.Context) NamespaceMapOutput
type NamespaceMapInput ¶ added in v3.22.0
type NamespaceMapInput interface { pulumi.Input ToNamespaceMapOutput() NamespaceMapOutput ToNamespaceMapOutputWithContext(context.Context) NamespaceMapOutput }
NamespaceMapInput is an input type that accepts NamespaceMap and NamespaceMapOutput values. You can construct a concrete instance of `NamespaceMapInput` via:
NamespaceMap{ "key": NamespaceArgs{...} }
type NamespaceMapOutput ¶ added in v3.22.0
type NamespaceMapOutput struct{ *pulumi.OutputState }
func (NamespaceMapOutput) ElementType ¶ added in v3.22.0
func (NamespaceMapOutput) ElementType() reflect.Type
func (NamespaceMapOutput) MapIndex ¶ added in v3.22.0
func (o NamespaceMapOutput) MapIndex(k pulumi.StringInput) NamespaceOutput
func (NamespaceMapOutput) ToNamespaceMapOutput ¶ added in v3.22.0
func (o NamespaceMapOutput) ToNamespaceMapOutput() NamespaceMapOutput
func (NamespaceMapOutput) ToNamespaceMapOutputWithContext ¶ added in v3.22.0
func (o NamespaceMapOutput) ToNamespaceMapOutputWithContext(ctx context.Context) NamespaceMapOutput
type NamespaceOutput ¶ added in v3.22.0
type NamespaceOutput struct{ *pulumi.OutputState }
func (NamespaceOutput) DebugEnable ¶ added in v3.27.0
func (o NamespaceOutput) DebugEnable() pulumi.BoolOutput
Specifies whether to enable remote debugging.
func (NamespaceOutput) Description ¶ added in v3.27.0
func (o NamespaceOutput) Description() pulumi.StringPtrOutput
The description of the namespace, The description can be up to `128` characters in length.
func (NamespaceOutput) ElementType ¶ added in v3.22.0
func (NamespaceOutput) ElementType() reflect.Type
func (NamespaceOutput) NamespaceLogicalId ¶ added in v3.27.0
func (o NamespaceOutput) NamespaceLogicalId() pulumi.StringOutput
The ID of the namespace. - The ID of a custom namespace is in the `region ID:namespace identifier` format. An example is `cn-beijing:tdy218`. - The ID of the default namespace is in the `region ID` format. An example is cn-beijing.
func (NamespaceOutput) NamespaceName ¶ added in v3.27.0
func (o NamespaceOutput) NamespaceName() pulumi.StringOutput
The name of the namespace, The name can be up to `63` characters in length.
func (NamespaceOutput) ToNamespaceOutput ¶ added in v3.22.0
func (o NamespaceOutput) ToNamespaceOutput() NamespaceOutput
func (NamespaceOutput) ToNamespaceOutputWithContext ¶ added in v3.22.0
func (o NamespaceOutput) ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput
type NamespaceState ¶ added in v3.22.0
type NamespaceState struct { // Specifies whether to enable remote debugging. DebugEnable pulumi.BoolPtrInput // The description of the namespace, The description can be up to `128` characters in length. Description pulumi.StringPtrInput // The ID of the namespace. // - The ID of a custom namespace is in the `region ID:namespace identifier` format. An example is `cn-beijing:tdy218`. // - The ID of the default namespace is in the `region ID` format. An example is cn-beijing. NamespaceLogicalId pulumi.StringPtrInput // The name of the namespace, The name can be up to `63` characters in length. NamespaceName pulumi.StringPtrInput }
func (NamespaceState) ElementType ¶ added in v3.22.0
func (NamespaceState) ElementType() reflect.Type
type SlbAttachment ¶
type SlbAttachment struct { pulumi.CustomResourceState // The ID of the application to which you want to bind an SLB instance. AppId pulumi.StringOutput `pulumi:"appId"` // The listening port for the bound SLB instance. ListenerPort pulumi.IntPtrOutput `pulumi:"listenerPort"` // The ID of the SLB instance that is going to be bound. SlbId pulumi.StringOutput `pulumi:"slbId"` // The IP address that is allocated to the bound SLB instance. SlbIp pulumi.StringOutput `pulumi:"slbIp"` // Running Status of SLB instance. Inactive:The instance is stopped, and listener will not monitor and forward traffic. Active:The instance is running. After the instance is created, the default state is active. Locked:The instance is locked, the instance has been owed or locked by Alibaba Cloud. Expired: The instance has expired. SlbStatus pulumi.StringOutput `pulumi:"slbStatus"` // The type of the bound SLB instance. Type pulumi.StringOutput `pulumi:"type"` // The ID of the virtual server (VServer) group associated with the intranet SLB instance. VserverGroupId pulumi.StringPtrOutput `pulumi:"vserverGroupId"` // VPC related vswitch ID. VswitchId pulumi.StringOutput `pulumi:"vswitchId"` }
Binds SLB to an EDAS application.
> **NOTE:** Available since v1.82.0.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/edas" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") name := "tf-example" if param := cfg.Get("name"); param != "" { name = param } defaultRegions, err := alicloud.GetRegions(ctx, &alicloud.GetRegionsArgs{ Current: pulumi.BoolRef(true), }, nil) if err != nil { return err } defaultZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{ AvailableResourceCreation: pulumi.StringRef("VSwitch"), }, nil) if err != nil { return err } defaultImages, err := ecs.GetImages(ctx, &ecs.GetImagesArgs{ NameRegex: pulumi.StringRef("^ubuntu_[0-9]+_[0-9]+_x64*"), Owners: pulumi.StringRef("system"), }, nil) if err != nil { return err } defaultInstanceTypes, err := ecs.GetInstanceTypes(ctx, &ecs.GetInstanceTypesArgs{ AvailabilityZone: pulumi.StringRef(defaultZones.Zones[0].Id), CpuCoreCount: pulumi.IntRef(1), MemorySize: pulumi.Float64Ref(2), }, nil) if err != nil { return err } defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{ VpcName: pulumi.String(name), CidrBlock: pulumi.String("10.4.0.0/16"), }) if err != nil { return err } defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{ VswitchName: pulumi.String(name), CidrBlock: pulumi.String("10.4.0.0/24"), VpcId: defaultNetwork.ID(), ZoneId: *pulumi.String(defaultZones.Zones[0].Id), }) if err != nil { return err } defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "defaultSecurityGroup", &ecs.SecurityGroupArgs{ VpcId: defaultNetwork.ID(), }) if err != nil { return err } defaultInstance, err := ecs.NewInstance(ctx, "defaultInstance", &ecs.InstanceArgs{ AvailabilityZone: *pulumi.String(defaultZones.Zones[0].Id), InstanceName: pulumi.String(name), ImageId: *pulumi.String(defaultImages.Images[0].Id), InstanceType: *pulumi.String(defaultInstanceTypes.InstanceTypes[0].Id), SecurityGroups: pulumi.StringArray{ defaultSecurityGroup.ID(), }, VswitchId: defaultSwitch.ID(), InternetMaxBandwidthOut: pulumi.Int(10), InternetChargeType: pulumi.String("PayByTraffic"), InstanceChargeType: pulumi.String("PostPaid"), SystemDiskCategory: pulumi.String("cloud_efficiency"), }) if err != nil { return err } defaultCluster, err := edas.NewCluster(ctx, "defaultCluster", &edas.ClusterArgs{ ClusterName: pulumi.String(name), ClusterType: pulumi.Int(2), NetworkMode: pulumi.Int(2), LogicalRegionId: *pulumi.String(defaultRegions.Regions[0].Id), VpcId: defaultNetwork.ID(), }) if err != nil { return err } _, err = edas.NewInstanceClusterAttachment(ctx, "defaultInstanceClusterAttachment", &edas.InstanceClusterAttachmentArgs{ ClusterId: defaultCluster.ID(), InstanceIds: pulumi.StringArray{ defaultInstance.ID(), }, }) if err != nil { return err } defaultApplication, err := edas.NewApplication(ctx, "defaultApplication", &edas.ApplicationArgs{ ApplicationName: pulumi.String(name), ClusterId: defaultCluster.ID(), PackageType: pulumi.String("JAR"), }) if err != nil { return err } defaultApplicationLoadBalancer, err := slb.NewApplicationLoadBalancer(ctx, "defaultApplicationLoadBalancer", &slb.ApplicationLoadBalancerArgs{ LoadBalancerName: pulumi.String(name), VswitchId: defaultSwitch.ID(), LoadBalancerSpec: pulumi.String("slb.s2.small"), AddressType: pulumi.String("intranet"), }) if err != nil { return err } _, err = edas.NewSlbAttachment(ctx, "defaultSlbAttachment", &edas.SlbAttachmentArgs{ AppId: defaultApplication.ID(), SlbId: defaultApplicationLoadBalancer.ID(), SlbIp: defaultApplicationLoadBalancer.Address, Type: defaultApplicationLoadBalancer.AddressType, }) if err != nil { return err } return nil }) }
```
func GetSlbAttachment ¶
func GetSlbAttachment(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SlbAttachmentState, opts ...pulumi.ResourceOption) (*SlbAttachment, error)
GetSlbAttachment gets an existing SlbAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewSlbAttachment ¶
func NewSlbAttachment(ctx *pulumi.Context, name string, args *SlbAttachmentArgs, opts ...pulumi.ResourceOption) (*SlbAttachment, error)
NewSlbAttachment registers a new resource with the given unique name, arguments, and options.
func (*SlbAttachment) ElementType ¶
func (*SlbAttachment) ElementType() reflect.Type
func (*SlbAttachment) ToSlbAttachmentOutput ¶
func (i *SlbAttachment) ToSlbAttachmentOutput() SlbAttachmentOutput
func (*SlbAttachment) ToSlbAttachmentOutputWithContext ¶
func (i *SlbAttachment) ToSlbAttachmentOutputWithContext(ctx context.Context) SlbAttachmentOutput
type SlbAttachmentArgs ¶
type SlbAttachmentArgs struct { // The ID of the application to which you want to bind an SLB instance. AppId pulumi.StringInput // The listening port for the bound SLB instance. ListenerPort pulumi.IntPtrInput // The ID of the SLB instance that is going to be bound. SlbId pulumi.StringInput // The IP address that is allocated to the bound SLB instance. SlbIp pulumi.StringInput // The type of the bound SLB instance. Type pulumi.StringInput // The ID of the virtual server (VServer) group associated with the intranet SLB instance. VserverGroupId pulumi.StringPtrInput }
The set of arguments for constructing a SlbAttachment resource.
func (SlbAttachmentArgs) ElementType ¶
func (SlbAttachmentArgs) ElementType() reflect.Type
type SlbAttachmentArray ¶
type SlbAttachmentArray []SlbAttachmentInput
func (SlbAttachmentArray) ElementType ¶
func (SlbAttachmentArray) ElementType() reflect.Type
func (SlbAttachmentArray) ToSlbAttachmentArrayOutput ¶
func (i SlbAttachmentArray) ToSlbAttachmentArrayOutput() SlbAttachmentArrayOutput
func (SlbAttachmentArray) ToSlbAttachmentArrayOutputWithContext ¶
func (i SlbAttachmentArray) ToSlbAttachmentArrayOutputWithContext(ctx context.Context) SlbAttachmentArrayOutput
type SlbAttachmentArrayInput ¶
type SlbAttachmentArrayInput interface { pulumi.Input ToSlbAttachmentArrayOutput() SlbAttachmentArrayOutput ToSlbAttachmentArrayOutputWithContext(context.Context) SlbAttachmentArrayOutput }
SlbAttachmentArrayInput is an input type that accepts SlbAttachmentArray and SlbAttachmentArrayOutput values. You can construct a concrete instance of `SlbAttachmentArrayInput` via:
SlbAttachmentArray{ SlbAttachmentArgs{...} }
type SlbAttachmentArrayOutput ¶
type SlbAttachmentArrayOutput struct{ *pulumi.OutputState }
func (SlbAttachmentArrayOutput) ElementType ¶
func (SlbAttachmentArrayOutput) ElementType() reflect.Type
func (SlbAttachmentArrayOutput) Index ¶
func (o SlbAttachmentArrayOutput) Index(i pulumi.IntInput) SlbAttachmentOutput
func (SlbAttachmentArrayOutput) ToSlbAttachmentArrayOutput ¶
func (o SlbAttachmentArrayOutput) ToSlbAttachmentArrayOutput() SlbAttachmentArrayOutput
func (SlbAttachmentArrayOutput) ToSlbAttachmentArrayOutputWithContext ¶
func (o SlbAttachmentArrayOutput) ToSlbAttachmentArrayOutputWithContext(ctx context.Context) SlbAttachmentArrayOutput
type SlbAttachmentInput ¶
type SlbAttachmentInput interface { pulumi.Input ToSlbAttachmentOutput() SlbAttachmentOutput ToSlbAttachmentOutputWithContext(ctx context.Context) SlbAttachmentOutput }
type SlbAttachmentMap ¶
type SlbAttachmentMap map[string]SlbAttachmentInput
func (SlbAttachmentMap) ElementType ¶
func (SlbAttachmentMap) ElementType() reflect.Type
func (SlbAttachmentMap) ToSlbAttachmentMapOutput ¶
func (i SlbAttachmentMap) ToSlbAttachmentMapOutput() SlbAttachmentMapOutput
func (SlbAttachmentMap) ToSlbAttachmentMapOutputWithContext ¶
func (i SlbAttachmentMap) ToSlbAttachmentMapOutputWithContext(ctx context.Context) SlbAttachmentMapOutput
type SlbAttachmentMapInput ¶
type SlbAttachmentMapInput interface { pulumi.Input ToSlbAttachmentMapOutput() SlbAttachmentMapOutput ToSlbAttachmentMapOutputWithContext(context.Context) SlbAttachmentMapOutput }
SlbAttachmentMapInput is an input type that accepts SlbAttachmentMap and SlbAttachmentMapOutput values. You can construct a concrete instance of `SlbAttachmentMapInput` via:
SlbAttachmentMap{ "key": SlbAttachmentArgs{...} }
type SlbAttachmentMapOutput ¶
type SlbAttachmentMapOutput struct{ *pulumi.OutputState }
func (SlbAttachmentMapOutput) ElementType ¶
func (SlbAttachmentMapOutput) ElementType() reflect.Type
func (SlbAttachmentMapOutput) MapIndex ¶
func (o SlbAttachmentMapOutput) MapIndex(k pulumi.StringInput) SlbAttachmentOutput
func (SlbAttachmentMapOutput) ToSlbAttachmentMapOutput ¶
func (o SlbAttachmentMapOutput) ToSlbAttachmentMapOutput() SlbAttachmentMapOutput
func (SlbAttachmentMapOutput) ToSlbAttachmentMapOutputWithContext ¶
func (o SlbAttachmentMapOutput) ToSlbAttachmentMapOutputWithContext(ctx context.Context) SlbAttachmentMapOutput
type SlbAttachmentOutput ¶
type SlbAttachmentOutput struct{ *pulumi.OutputState }
func (SlbAttachmentOutput) AppId ¶ added in v3.27.0
func (o SlbAttachmentOutput) AppId() pulumi.StringOutput
The ID of the application to which you want to bind an SLB instance.
func (SlbAttachmentOutput) ElementType ¶
func (SlbAttachmentOutput) ElementType() reflect.Type
func (SlbAttachmentOutput) ListenerPort ¶ added in v3.27.0
func (o SlbAttachmentOutput) ListenerPort() pulumi.IntPtrOutput
The listening port for the bound SLB instance.
func (SlbAttachmentOutput) SlbId ¶ added in v3.27.0
func (o SlbAttachmentOutput) SlbId() pulumi.StringOutput
The ID of the SLB instance that is going to be bound.
func (SlbAttachmentOutput) SlbIp ¶ added in v3.27.0
func (o SlbAttachmentOutput) SlbIp() pulumi.StringOutput
The IP address that is allocated to the bound SLB instance.
func (SlbAttachmentOutput) SlbStatus ¶ added in v3.27.0
func (o SlbAttachmentOutput) SlbStatus() pulumi.StringOutput
Running Status of SLB instance. Inactive:The instance is stopped, and listener will not monitor and forward traffic. Active:The instance is running. After the instance is created, the default state is active. Locked:The instance is locked, the instance has been owed or locked by Alibaba Cloud. Expired: The instance has expired.
func (SlbAttachmentOutput) ToSlbAttachmentOutput ¶
func (o SlbAttachmentOutput) ToSlbAttachmentOutput() SlbAttachmentOutput
func (SlbAttachmentOutput) ToSlbAttachmentOutputWithContext ¶
func (o SlbAttachmentOutput) ToSlbAttachmentOutputWithContext(ctx context.Context) SlbAttachmentOutput
func (SlbAttachmentOutput) Type ¶ added in v3.27.0
func (o SlbAttachmentOutput) Type() pulumi.StringOutput
The type of the bound SLB instance.
func (SlbAttachmentOutput) VserverGroupId ¶ added in v3.27.0
func (o SlbAttachmentOutput) VserverGroupId() pulumi.StringPtrOutput
The ID of the virtual server (VServer) group associated with the intranet SLB instance.
func (SlbAttachmentOutput) VswitchId ¶ added in v3.27.0
func (o SlbAttachmentOutput) VswitchId() pulumi.StringOutput
VPC related vswitch ID.
type SlbAttachmentState ¶
type SlbAttachmentState struct { // The ID of the application to which you want to bind an SLB instance. AppId pulumi.StringPtrInput // The listening port for the bound SLB instance. ListenerPort pulumi.IntPtrInput // The ID of the SLB instance that is going to be bound. SlbId pulumi.StringPtrInput // The IP address that is allocated to the bound SLB instance. SlbIp pulumi.StringPtrInput // Running Status of SLB instance. Inactive:The instance is stopped, and listener will not monitor and forward traffic. Active:The instance is running. After the instance is created, the default state is active. Locked:The instance is locked, the instance has been owed or locked by Alibaba Cloud. Expired: The instance has expired. SlbStatus pulumi.StringPtrInput // The type of the bound SLB instance. Type pulumi.StringPtrInput // The ID of the virtual server (VServer) group associated with the intranet SLB instance. VserverGroupId pulumi.StringPtrInput // VPC related vswitch ID. VswitchId pulumi.StringPtrInput }
func (SlbAttachmentState) ElementType ¶
func (SlbAttachmentState) ElementType() reflect.Type
Source Files
¶
- application.go
- applicationDeployment.go
- applicationScale.go
- cluster.go
- deployGroup.go
- getApplications.go
- getClusters.go
- getDeployGroups.go
- getNamespaces.go
- getService.go
- init.go
- instanceClusterAttachment.go
- k8sApplication.go
- k8sCluster.go
- k8sSlbAttachment.go
- namespace.go
- pulumiTypes.go
- slbAttachment.go