Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.redhatopenshift.kotlin
import com.pulumi.azurenative.redhatopenshift.SyncSetArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* SyncSet represents a SyncSet for an Azure Red Hat OpenShift Cluster.
* Azure REST API version: 2022-09-04.
* Other available API versions: 2023-04-01, 2023-07-01-preview, 2023-09-04, 2023-11-22.
* ## Example Usage
* ### Creates or updates a SyncSet with the specified subscription, resource group and resource name.
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var syncSet = new AzureNative.RedHatOpenShift.SyncSet("syncSet", new()
* {
* ChildResourceName = "childResourceName",
* ResourceGroupName = "resourceGroup",
* ResourceName = "resourceName",
* Resources = "eyAKICAiYXBpVmVyc2lvbiI6ICJoaXZlLm9wZW5zaGlmdC5pby92MSIsCiAgImtpbmQiOiAiU3luY1NldCIsCiAgIm1ldGFkYXRhIjogewogICAgIm5hbWUiOiAic2FtcGxlIiwKICAgICJuYW1lc3BhY2UiOiAiYXJvLWY2MGFlOGEyLWJjYTEtNDk4Ny05MDU2LWYyZjZhMTgzN2NhYSIKICB9LAogICJzcGVjIjogewogICAgImNsdXN0ZXJEZXBsb3ltZW50UmVmcyI6IFtdLAogICAgInJlc291cmNlcyI6IFsKICAgICAgewogICAgICAgICJhcGlWZXJzaW9uIjogInYxIiwKICAgICAgICAia2luZCI6ICJDb25maWdNYXAiLAogICAgICAgICJtZXRhZGF0YSI6IHsKICAgICAgICAgICJuYW1lIjogIm15Y29uZmlnbWFwIgogICAgICAgIH0KICAgICAgfQogICAgXQogIH0KfQo=",
* });
* });
* ```
* ```go
* package main
* import (
* redhatopenshift "github.com/pulumi/pulumi-azure-native-sdk/redhatopenshift/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := redhatopenshift.NewSyncSet(ctx, "syncSet", &redhatopenshift.SyncSetArgs{
* ChildResourceName: pulumi.String("childResourceName"),
* ResourceGroupName: pulumi.String("resourceGroup"),
* ResourceName: pulumi.String("resourceName"),
* Resources: pulumi.String("eyAKICAiYXBpVmVyc2lvbiI6ICJoaXZlLm9wZW5zaGlmdC5pby92MSIsCiAgImtpbmQiOiAiU3luY1NldCIsCiAgIm1ldGFkYXRhIjogewogICAgIm5hbWUiOiAic2FtcGxlIiwKICAgICJuYW1lc3BhY2UiOiAiYXJvLWY2MGFlOGEyLWJjYTEtNDk4Ny05MDU2LWYyZjZhMTgzN2NhYSIKICB9LAogICJzcGVjIjogewogICAgImNsdXN0ZXJEZXBsb3ltZW50UmVmcyI6IFtdLAogICAgInJlc291cmNlcyI6IFsKICAgICAgewogICAgICAgICJhcGlWZXJzaW9uIjogInYxIiwKICAgICAgICAia2luZCI6ICJDb25maWdNYXAiLAogICAgICAgICJtZXRhZGF0YSI6IHsKICAgICAgICAgICJuYW1lIjogIm15Y29uZmlnbWFwIgogICAgICAgIH0KICAgICAgfQogICAgXQogIH0KfQo="),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.redhatopenshift.SyncSet;
* import com.pulumi.azurenative.redhatopenshift.SyncSetArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var syncSet = new SyncSet("syncSet", SyncSetArgs.builder()
* .childResourceName("childResourceName")
* .resourceGroupName("resourceGroup")
* .resourceName("resourceName")
* .resources("eyAKICAiYXBpVmVyc2lvbiI6ICJoaXZlLm9wZW5zaGlmdC5pby92MSIsCiAgImtpbmQiOiAiU3luY1NldCIsCiAgIm1ldGFkYXRhIjogewogICAgIm5hbWUiOiAic2FtcGxlIiwKICAgICJuYW1lc3BhY2UiOiAiYXJvLWY2MGFlOGEyLWJjYTEtNDk4Ny05MDU2LWYyZjZhMTgzN2NhYSIKICB9LAogICJzcGVjIjogewogICAgImNsdXN0ZXJEZXBsb3ltZW50UmVmcyI6IFtdLAogICAgInJlc291cmNlcyI6IFsKICAgICAgewogICAgICAgICJhcGlWZXJzaW9uIjogInYxIiwKICAgICAgICAia2luZCI6ICJDb25maWdNYXAiLAogICAgICAgICJtZXRhZGF0YSI6IHsKICAgICAgICAgICJuYW1lIjogIm15Y29uZmlnbWFwIgogICAgICAgIH0KICAgICAgfQogICAgXQogIH0KfQo=")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:redhatopenshift:SyncSet mySyncSet /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openshiftclusters/{resourceName}/syncSet/{childResourceName}
* ```
* @property childResourceName The name of the SyncSet resource.
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property resourceName The name of the OpenShift cluster resource.
* @property resources Resources represents the SyncSets configuration.
*/
public data class SyncSetArgs(
public val childResourceName: Output? = null,
public val resourceGroupName: Output? = null,
public val resourceName: Output? = null,
public val resources: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.redhatopenshift.SyncSetArgs =
com.pulumi.azurenative.redhatopenshift.SyncSetArgs.builder()
.childResourceName(childResourceName?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.resourceName(resourceName?.applyValue({ args0 -> args0 }))
.resources(resources?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SyncSetArgs].
*/
@PulumiTagMarker
public class SyncSetArgsBuilder internal constructor() {
private var childResourceName: Output? = null
private var resourceGroupName: Output? = null
private var resourceName: Output? = null
private var resources: Output? = null
/**
* @param value The name of the SyncSet resource.
*/
@JvmName("trrdrtciuytaoqgk")
public suspend fun childResourceName(`value`: Output) {
this.childResourceName = value
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("wvfhgybboomcebxf")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The name of the OpenShift cluster resource.
*/
@JvmName("efuomtjwykifrutr")
public suspend fun resourceName(`value`: Output) {
this.resourceName = value
}
/**
* @param value Resources represents the SyncSets configuration.
*/
@JvmName("tmifimdansyuftui")
public suspend fun resources(`value`: Output) {
this.resources = value
}
/**
* @param value The name of the SyncSet resource.
*/
@JvmName("hagpxptgbgdjgvpe")
public suspend fun childResourceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.childResourceName = mapped
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("dgyvvajejymnogrx")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value The name of the OpenShift cluster resource.
*/
@JvmName("xlujerhfdndldxqd")
public suspend fun resourceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceName = mapped
}
/**
* @param value Resources represents the SyncSets configuration.
*/
@JvmName("ndxnruecuhfqsfnt")
public suspend fun resources(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resources = mapped
}
internal fun build(): SyncSetArgs = SyncSetArgs(
childResourceName = childResourceName,
resourceGroupName = resourceGroupName,
resourceName = resourceName,
resources = resources,
)
}