All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.apigee.kotlin.AddonsConfig.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.apigee.kotlin

import com.pulumi.core.Output
import com.pulumi.gcp.apigee.kotlin.outputs.AddonsConfigAddonsConfig
import com.pulumi.gcp.apigee.kotlin.outputs.AddonsConfigAddonsConfig.Companion.toKotlin
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit

/**
 * Builder for [AddonsConfig].
 */
@PulumiTagMarker
public class AddonsConfigResourceBuilder internal constructor() {
    public var name: String? = null

    public var args: AddonsConfigArgs = AddonsConfigArgs()

    public var opts: CustomResourceOptions = CustomResourceOptions()

    /**
     * @param name The _unique_ name of the resulting resource.
     */
    public fun name(`value`: String) {
        this.name = value
    }

    /**
     * @param block The arguments to use to populate this resource's properties.
     */
    public suspend fun args(block: suspend AddonsConfigArgsBuilder.() -> Unit) {
        val builder = AddonsConfigArgsBuilder()
        block(builder)
        this.args = builder.build()
    }

    /**
     * @param block A bag of options that control this resource's behavior.
     */
    public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
        this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
    }

    internal fun build(): AddonsConfig {
        val builtJavaResource = com.pulumi.gcp.apigee.AddonsConfig(
            this.name,
            this.args.toJava(),
            this.opts.toJava(),
        )
        return AddonsConfig(builtJavaResource)
    }
}

/**
 * Configures the add-ons for the Apigee organization. The existing add-on configuration will be fully replaced.
 * To get more information about AddonsConfig, see:
 * * [API documentation](https://cloud.google.com/apigee/docs/reference/apis/apigee/rest/v1/organizations#setaddons)
 * * How-to Guides
 *     * [Creating an API organization](https://cloud.google.com/apigee/docs/api-platform/get-started/create-org)
 * ## Example Usage
 * ### Apigee Addons Basic
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const testOrganization = new gcp.apigee.AddonsConfig("test_organization", {
 *     org: "test_organization",
 *     addonsConfig: {
 *         apiSecurityConfig: {
 *             enabled: true,
 *         },
 *         monetizationConfig: {
 *             enabled: true,
 *         },
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * test_organization = gcp.apigee.AddonsConfig("test_organization",
 *     org="test_organization",
 *     addons_config=gcp.apigee.AddonsConfigAddonsConfigArgs(
 *         api_security_config=gcp.apigee.AddonsConfigAddonsConfigApiSecurityConfigArgs(
 *             enabled=True,
 *         ),
 *         monetization_config=gcp.apigee.AddonsConfigAddonsConfigMonetizationConfigArgs(
 *             enabled=True,
 *         ),
 *     ))
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var testOrganization = new Gcp.Apigee.AddonsConfig("test_organization", new()
 *     {
 *         Org = "test_organization",
 *         AddonsConfigDetails = new Gcp.Apigee.Inputs.AddonsConfigAddonsConfigArgs
 *         {
 *             ApiSecurityConfig = new Gcp.Apigee.Inputs.AddonsConfigAddonsConfigApiSecurityConfigArgs
 *             {
 *                 Enabled = true,
 *             },
 *             MonetizationConfig = new Gcp.Apigee.Inputs.AddonsConfigAddonsConfigMonetizationConfigArgs
 *             {
 *                 Enabled = true,
 *             },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/apigee"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := apigee.NewAddonsConfig(ctx, "test_organization", &apigee.AddonsConfigArgs{
 * 			Org: pulumi.String("test_organization"),
 * 			AddonsConfig: &apigee.AddonsConfigAddonsConfigArgs{
 * 				ApiSecurityConfig: &apigee.AddonsConfigAddonsConfigApiSecurityConfigArgs{
 * 					Enabled: pulumi.Bool(true),
 * 				},
 * 				MonetizationConfig: &apigee.AddonsConfigAddonsConfigMonetizationConfigArgs{
 * 					Enabled: pulumi.Bool(true),
 * 				},
 * 			},
 * 		})
 * 		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.gcp.apigee.AddonsConfig;
 * import com.pulumi.gcp.apigee.AddonsConfigArgs;
 * import com.pulumi.gcp.apigee.inputs.AddonsConfigAddonsConfigArgs;
 * import com.pulumi.gcp.apigee.inputs.AddonsConfigAddonsConfigApiSecurityConfigArgs;
 * import com.pulumi.gcp.apigee.inputs.AddonsConfigAddonsConfigMonetizationConfigArgs;
 * 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 testOrganization = new AddonsConfig("testOrganization", AddonsConfigArgs.builder()
 *             .org("test_organization")
 *             .addonsConfig(AddonsConfigAddonsConfigArgs.builder()
 *                 .apiSecurityConfig(AddonsConfigAddonsConfigApiSecurityConfigArgs.builder()
 *                     .enabled(true)
 *                     .build())
 *                 .monetizationConfig(AddonsConfigAddonsConfigMonetizationConfigArgs.builder()
 *                     .enabled(true)
 *                     .build())
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   testOrganization:
 *     type: gcp:apigee:AddonsConfig
 *     name: test_organization
 *     properties:
 *       org: test_organization
 *       addonsConfig:
 *         apiSecurityConfig:
 *           enabled: true
 *         monetizationConfig:
 *           enabled: true
 * ```
 * 
 * ### Apigee Addons Full
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const current = gcp.organizations.getClientConfig({});
 * const apigee = new gcp.projects.Service("apigee", {
 *     project: current.then(current => current.project),
 *     service: "apigee.googleapis.com",
 * });
 * const compute = new gcp.projects.Service("compute", {
 *     project: current.then(current => current.project),
 *     service: "compute.googleapis.com",
 * });
 * const servicenetworking = new gcp.projects.Service("servicenetworking", {
 *     project: current.then(current => current.project),
 *     service: "servicenetworking.googleapis.com",
 * });
 * const apigeeNetwork = new gcp.compute.Network("apigee_network", {
 *     name: "apigee-network",
 *     project: current.then(current => current.project),
 * });
 * const apigeeRange = new gcp.compute.GlobalAddress("apigee_range", {
 *     name: "apigee-range",
 *     purpose: "VPC_PEERING",
 *     addressType: "INTERNAL",
 *     prefixLength: 16,
 *     network: apigeeNetwork.id,
 *     project: current.then(current => current.project),
 * });
 * const apigeeVpcConnection = new gcp.servicenetworking.Connection("apigee_vpc_connection", {
 *     network: apigeeNetwork.id,
 *     service: "servicenetworking.googleapis.com",
 *     reservedPeeringRanges: [apigeeRange.name],
 * });
 * const org = new gcp.apigee.Organization("org", {
 *     analyticsRegion: "us-central1",
 *     projectId: current.then(current => current.project),
 *     authorizedNetwork: apigeeNetwork.id,
 *     billingType: "EVALUATION",
 * });
 * const testOrganization = new gcp.apigee.AddonsConfig("test_organization", {
 *     org: org.name,
 *     addonsConfig: {
 *         integrationConfig: {
 *             enabled: true,
 *         },
 *         apiSecurityConfig: {
 *             enabled: true,
 *         },
 *         connectorsPlatformConfig: {
 *             enabled: true,
 *         },
 *         monetizationConfig: {
 *             enabled: true,
 *         },
 *         advancedApiOpsConfig: {
 *             enabled: true,
 *         },
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * current = gcp.organizations.get_client_config()
 * apigee = gcp.projects.Service("apigee",
 *     project=current.project,
 *     service="apigee.googleapis.com")
 * compute = gcp.projects.Service("compute",
 *     project=current.project,
 *     service="compute.googleapis.com")
 * servicenetworking = gcp.projects.Service("servicenetworking",
 *     project=current.project,
 *     service="servicenetworking.googleapis.com")
 * apigee_network = gcp.compute.Network("apigee_network",
 *     name="apigee-network",
 *     project=current.project)
 * apigee_range = gcp.compute.GlobalAddress("apigee_range",
 *     name="apigee-range",
 *     purpose="VPC_PEERING",
 *     address_type="INTERNAL",
 *     prefix_length=16,
 *     network=apigee_network.id,
 *     project=current.project)
 * apigee_vpc_connection = gcp.servicenetworking.Connection("apigee_vpc_connection",
 *     network=apigee_network.id,
 *     service="servicenetworking.googleapis.com",
 *     reserved_peering_ranges=[apigee_range.name])
 * org = gcp.apigee.Organization("org",
 *     analytics_region="us-central1",
 *     project_id=current.project,
 *     authorized_network=apigee_network.id,
 *     billing_type="EVALUATION")
 * test_organization = gcp.apigee.AddonsConfig("test_organization",
 *     org=org.name,
 *     addons_config=gcp.apigee.AddonsConfigAddonsConfigArgs(
 *         integration_config=gcp.apigee.AddonsConfigAddonsConfigIntegrationConfigArgs(
 *             enabled=True,
 *         ),
 *         api_security_config=gcp.apigee.AddonsConfigAddonsConfigApiSecurityConfigArgs(
 *             enabled=True,
 *         ),
 *         connectors_platform_config=gcp.apigee.AddonsConfigAddonsConfigConnectorsPlatformConfigArgs(
 *             enabled=True,
 *         ),
 *         monetization_config=gcp.apigee.AddonsConfigAddonsConfigMonetizationConfigArgs(
 *             enabled=True,
 *         ),
 *         advanced_api_ops_config=gcp.apigee.AddonsConfigAddonsConfigAdvancedApiOpsConfigArgs(
 *             enabled=True,
 *         ),
 *     ))
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var current = Gcp.Organizations.GetClientConfig.Invoke();
 *     var apigee = new Gcp.Projects.Service("apigee", new()
 *     {
 *         Project = current.Apply(getClientConfigResult => getClientConfigResult.Project),
 *         ServiceName = "apigee.googleapis.com",
 *     });
 *     var compute = new Gcp.Projects.Service("compute", new()
 *     {
 *         Project = current.Apply(getClientConfigResult => getClientConfigResult.Project),
 *         ServiceName = "compute.googleapis.com",
 *     });
 *     var servicenetworking = new Gcp.Projects.Service("servicenetworking", new()
 *     {
 *         Project = current.Apply(getClientConfigResult => getClientConfigResult.Project),
 *         ServiceName = "servicenetworking.googleapis.com",
 *     });
 *     var apigeeNetwork = new Gcp.Compute.Network("apigee_network", new()
 *     {
 *         Name = "apigee-network",
 *         Project = current.Apply(getClientConfigResult => getClientConfigResult.Project),
 *     });
 *     var apigeeRange = new Gcp.Compute.GlobalAddress("apigee_range", new()
 *     {
 *         Name = "apigee-range",
 *         Purpose = "VPC_PEERING",
 *         AddressType = "INTERNAL",
 *         PrefixLength = 16,
 *         Network = apigeeNetwork.Id,
 *         Project = current.Apply(getClientConfigResult => getClientConfigResult.Project),
 *     });
 *     var apigeeVpcConnection = new Gcp.ServiceNetworking.Connection("apigee_vpc_connection", new()
 *     {
 *         Network = apigeeNetwork.Id,
 *         Service = "servicenetworking.googleapis.com",
 *         ReservedPeeringRanges = new[]
 *         {
 *             apigeeRange.Name,
 *         },
 *     });
 *     var org = new Gcp.Apigee.Organization("org", new()
 *     {
 *         AnalyticsRegion = "us-central1",
 *         ProjectId = current.Apply(getClientConfigResult => getClientConfigResult.Project),
 *         AuthorizedNetwork = apigeeNetwork.Id,
 *         BillingType = "EVALUATION",
 *     });
 *     var testOrganization = new Gcp.Apigee.AddonsConfig("test_organization", new()
 *     {
 *         Org = org.Name,
 *         AddonsConfigDetails = new Gcp.Apigee.Inputs.AddonsConfigAddonsConfigArgs
 *         {
 *             IntegrationConfig = new Gcp.Apigee.Inputs.AddonsConfigAddonsConfigIntegrationConfigArgs
 *             {
 *                 Enabled = true,
 *             },
 *             ApiSecurityConfig = new Gcp.Apigee.Inputs.AddonsConfigAddonsConfigApiSecurityConfigArgs
 *             {
 *                 Enabled = true,
 *             },
 *             ConnectorsPlatformConfig = new Gcp.Apigee.Inputs.AddonsConfigAddonsConfigConnectorsPlatformConfigArgs
 *             {
 *                 Enabled = true,
 *             },
 *             MonetizationConfig = new Gcp.Apigee.Inputs.AddonsConfigAddonsConfigMonetizationConfigArgs
 *             {
 *                 Enabled = true,
 *             },
 *             AdvancedApiOpsConfig = new Gcp.Apigee.Inputs.AddonsConfigAddonsConfigAdvancedApiOpsConfigArgs
 *             {
 *                 Enabled = true,
 *             },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/apigee"
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/organizations"
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/projects"
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/servicenetworking"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		current, err := organizations.GetClientConfig(ctx, nil, nil)
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = projects.NewService(ctx, "apigee", &projects.ServiceArgs{
 * 			Project: pulumi.String(current.Project),
 * 			Service: pulumi.String("apigee.googleapis.com"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = projects.NewService(ctx, "compute", &projects.ServiceArgs{
 * 			Project: pulumi.String(current.Project),
 * 			Service: pulumi.String("compute.googleapis.com"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = projects.NewService(ctx, "servicenetworking", &projects.ServiceArgs{
 * 			Project: pulumi.String(current.Project),
 * 			Service: pulumi.String("servicenetworking.googleapis.com"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		apigeeNetwork, err := compute.NewNetwork(ctx, "apigee_network", &compute.NetworkArgs{
 * 			Name:    pulumi.String("apigee-network"),
 * 			Project: pulumi.String(current.Project),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		apigeeRange, err := compute.NewGlobalAddress(ctx, "apigee_range", &compute.GlobalAddressArgs{
 * 			Name:         pulumi.String("apigee-range"),
 * 			Purpose:      pulumi.String("VPC_PEERING"),
 * 			AddressType:  pulumi.String("INTERNAL"),
 * 			PrefixLength: pulumi.Int(16),
 * 			Network:      apigeeNetwork.ID(),
 * 			Project:      pulumi.String(current.Project),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = servicenetworking.NewConnection(ctx, "apigee_vpc_connection", &servicenetworking.ConnectionArgs{
 * 			Network: apigeeNetwork.ID(),
 * 			Service: pulumi.String("servicenetworking.googleapis.com"),
 * 			ReservedPeeringRanges: pulumi.StringArray{
 * 				apigeeRange.Name,
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		org, err := apigee.NewOrganization(ctx, "org", &apigee.OrganizationArgs{
 * 			AnalyticsRegion:   pulumi.String("us-central1"),
 * 			ProjectId:         pulumi.String(current.Project),
 * 			AuthorizedNetwork: apigeeNetwork.ID(),
 * 			BillingType:       pulumi.String("EVALUATION"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = apigee.NewAddonsConfig(ctx, "test_organization", &apigee.AddonsConfigArgs{
 * 			Org: org.Name,
 * 			AddonsConfig: &apigee.AddonsConfigAddonsConfigArgs{
 * 				IntegrationConfig: &apigee.AddonsConfigAddonsConfigIntegrationConfigArgs{
 * 					Enabled: pulumi.Bool(true),
 * 				},
 * 				ApiSecurityConfig: &apigee.AddonsConfigAddonsConfigApiSecurityConfigArgs{
 * 					Enabled: pulumi.Bool(true),
 * 				},
 * 				ConnectorsPlatformConfig: &apigee.AddonsConfigAddonsConfigConnectorsPlatformConfigArgs{
 * 					Enabled: pulumi.Bool(true),
 * 				},
 * 				MonetizationConfig: &apigee.AddonsConfigAddonsConfigMonetizationConfigArgs{
 * 					Enabled: pulumi.Bool(true),
 * 				},
 * 				AdvancedApiOpsConfig: &apigee.AddonsConfigAddonsConfigAdvancedApiOpsConfigArgs{
 * 					Enabled: pulumi.Bool(true),
 * 				},
 * 			},
 * 		})
 * 		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.gcp.organizations.OrganizationsFunctions;
 * import com.pulumi.gcp.projects.Service;
 * import com.pulumi.gcp.projects.ServiceArgs;
 * import com.pulumi.gcp.compute.Network;
 * import com.pulumi.gcp.compute.NetworkArgs;
 * import com.pulumi.gcp.compute.GlobalAddress;
 * import com.pulumi.gcp.compute.GlobalAddressArgs;
 * import com.pulumi.gcp.servicenetworking.Connection;
 * import com.pulumi.gcp.servicenetworking.ConnectionArgs;
 * import com.pulumi.gcp.apigee.Organization;
 * import com.pulumi.gcp.apigee.OrganizationArgs;
 * import com.pulumi.gcp.apigee.AddonsConfig;
 * import com.pulumi.gcp.apigee.AddonsConfigArgs;
 * import com.pulumi.gcp.apigee.inputs.AddonsConfigAddonsConfigArgs;
 * import com.pulumi.gcp.apigee.inputs.AddonsConfigAddonsConfigIntegrationConfigArgs;
 * import com.pulumi.gcp.apigee.inputs.AddonsConfigAddonsConfigApiSecurityConfigArgs;
 * import com.pulumi.gcp.apigee.inputs.AddonsConfigAddonsConfigConnectorsPlatformConfigArgs;
 * import com.pulumi.gcp.apigee.inputs.AddonsConfigAddonsConfigMonetizationConfigArgs;
 * import com.pulumi.gcp.apigee.inputs.AddonsConfigAddonsConfigAdvancedApiOpsConfigArgs;
 * 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) {
 *         final var current = OrganizationsFunctions.getClientConfig();
 *         var apigee = new Service("apigee", ServiceArgs.builder()
 *             .project(current.applyValue(getClientConfigResult -> getClientConfigResult.project()))
 *             .service("apigee.googleapis.com")
 *             .build());
 *         var compute = new Service("compute", ServiceArgs.builder()
 *             .project(current.applyValue(getClientConfigResult -> getClientConfigResult.project()))
 *             .service("compute.googleapis.com")
 *             .build());
 *         var servicenetworking = new Service("servicenetworking", ServiceArgs.builder()
 *             .project(current.applyValue(getClientConfigResult -> getClientConfigResult.project()))
 *             .service("servicenetworking.googleapis.com")
 *             .build());
 *         var apigeeNetwork = new Network("apigeeNetwork", NetworkArgs.builder()
 *             .name("apigee-network")
 *             .project(current.applyValue(getClientConfigResult -> getClientConfigResult.project()))
 *             .build());
 *         var apigeeRange = new GlobalAddress("apigeeRange", GlobalAddressArgs.builder()
 *             .name("apigee-range")
 *             .purpose("VPC_PEERING")
 *             .addressType("INTERNAL")
 *             .prefixLength(16)
 *             .network(apigeeNetwork.id())
 *             .project(current.applyValue(getClientConfigResult -> getClientConfigResult.project()))
 *             .build());
 *         var apigeeVpcConnection = new Connection("apigeeVpcConnection", ConnectionArgs.builder()
 *             .network(apigeeNetwork.id())
 *             .service("servicenetworking.googleapis.com")
 *             .reservedPeeringRanges(apigeeRange.name())
 *             .build());
 *         var org = new Organization("org", OrganizationArgs.builder()
 *             .analyticsRegion("us-central1")
 *             .projectId(current.applyValue(getClientConfigResult -> getClientConfigResult.project()))
 *             .authorizedNetwork(apigeeNetwork.id())
 *             .billingType("EVALUATION")
 *             .build());
 *         var testOrganization = new AddonsConfig("testOrganization", AddonsConfigArgs.builder()
 *             .org(org.name())
 *             .addonsConfig(AddonsConfigAddonsConfigArgs.builder()
 *                 .integrationConfig(AddonsConfigAddonsConfigIntegrationConfigArgs.builder()
 *                     .enabled(true)
 *                     .build())
 *                 .apiSecurityConfig(AddonsConfigAddonsConfigApiSecurityConfigArgs.builder()
 *                     .enabled(true)
 *                     .build())
 *                 .connectorsPlatformConfig(AddonsConfigAddonsConfigConnectorsPlatformConfigArgs.builder()
 *                     .enabled(true)
 *                     .build())
 *                 .monetizationConfig(AddonsConfigAddonsConfigMonetizationConfigArgs.builder()
 *                     .enabled(true)
 *                     .build())
 *                 .advancedApiOpsConfig(AddonsConfigAddonsConfigAdvancedApiOpsConfigArgs.builder()
 *                     .enabled(true)
 *                     .build())
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   apigee:
 *     type: gcp:projects:Service
 *     properties:
 *       project: ${current.project}
 *       service: apigee.googleapis.com
 *   compute:
 *     type: gcp:projects:Service
 *     properties:
 *       project: ${current.project}
 *       service: compute.googleapis.com
 *   servicenetworking:
 *     type: gcp:projects:Service
 *     properties:
 *       project: ${current.project}
 *       service: servicenetworking.googleapis.com
 *   apigeeNetwork:
 *     type: gcp:compute:Network
 *     name: apigee_network
 *     properties:
 *       name: apigee-network
 *       project: ${current.project}
 *   apigeeRange:
 *     type: gcp:compute:GlobalAddress
 *     name: apigee_range
 *     properties:
 *       name: apigee-range
 *       purpose: VPC_PEERING
 *       addressType: INTERNAL
 *       prefixLength: 16
 *       network: ${apigeeNetwork.id}
 *       project: ${current.project}
 *   apigeeVpcConnection:
 *     type: gcp:servicenetworking:Connection
 *     name: apigee_vpc_connection
 *     properties:
 *       network: ${apigeeNetwork.id}
 *       service: servicenetworking.googleapis.com
 *       reservedPeeringRanges:
 *         - ${apigeeRange.name}
 *   org:
 *     type: gcp:apigee:Organization
 *     properties:
 *       analyticsRegion: us-central1
 *       projectId: ${current.project}
 *       authorizedNetwork: ${apigeeNetwork.id}
 *       billingType: EVALUATION
 *   testOrganization:
 *     type: gcp:apigee:AddonsConfig
 *     name: test_organization
 *     properties:
 *       org: ${org.name}
 *       addonsConfig:
 *         integrationConfig:
 *           enabled: true
 *         apiSecurityConfig:
 *           enabled: true
 *         connectorsPlatformConfig:
 *           enabled: true
 *         monetizationConfig:
 *           enabled: true
 *         advancedApiOpsConfig:
 *           enabled: true
 * variables:
 *   current:
 *     fn::invoke:
 *       Function: gcp:organizations:getClientConfig
 *       Arguments: {}
 * ```
 * 
 * ## Import
 * AddonsConfig can be imported using any of these accepted formats:
 * * `organizations/{{name}}`
 * * `{{name}}`
 * When using the `pulumi import` command, AddonsConfig can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:apigee/addonsConfig:AddonsConfig default organizations/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:apigee/addonsConfig:AddonsConfig default {{name}}
 * ```
 */
public class AddonsConfig internal constructor(
    override val javaResource: com.pulumi.gcp.apigee.AddonsConfig,
) : KotlinCustomResource(javaResource, AddonsConfigMapper) {
    /**
     * Addon configurations of the Apigee organization.
     * Structure is documented below.
     */
    public val addonsConfig: Output?
        get() = javaResource.addonsConfig().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    toKotlin(args0)
                })
            }).orElse(null)
        })

    /**
     * Name of the Apigee organization.
     * - - -
     */
    public val org: Output
        get() = javaResource.org().applyValue({ args0 -> args0 })
}

public object AddonsConfigMapper : ResourceMapper {
    override fun supportsMappingOfType(javaResource: Resource): Boolean =
        com.pulumi.gcp.apigee.AddonsConfig::class == javaResource::class

    override fun map(javaResource: Resource): AddonsConfig = AddonsConfig(
        javaResource as
            com.pulumi.gcp.apigee.AddonsConfig,
    )
}

/**
 * @see [AddonsConfig].
 * @param name The _unique_ name of the resulting resource.
 * @param block Builder for [AddonsConfig].
 */
public suspend fun addonsConfig(
    name: String,
    block: suspend AddonsConfigResourceBuilder.() -> Unit,
): AddonsConfig {
    val builder = AddonsConfigResourceBuilder()
    builder.name(name)
    block(builder)
    return builder.build()
}

/**
 * @see [AddonsConfig].
 * @param name The _unique_ name of the resulting resource.
 */
public fun addonsConfig(name: String): AddonsConfig {
    val builder = AddonsConfigResourceBuilder()
    builder.name(name)
    return builder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy