KeystoresAliasesSelfSignedCertArgs

data class KeystoresAliasesSelfSignedCertArgs(val alias: Output<String>? = null, val certValidityInDays: Output<Int>? = null, val environment: Output<String>? = null, val keySize: Output<String>? = null, val keystore: Output<String>? = null, val orgId: Output<String>? = null, val sigAlg: Output<String>? = null, val subject: Output<KeystoresAliasesSelfSignedCertSubjectArgs>? = null, val subjectAlternativeDnsNames: Output<KeystoresAliasesSelfSignedCertSubjectAlternativeDnsNamesArgs>? = null) : ConvertibleToJava<KeystoresAliasesSelfSignedCertArgs>

An Environment Keystore Alias for Self Signed Certificate Format in Apigee To get more information about KeystoresAliasesSelfSignedCert, see:

Example Usage

Apigee Env Keystore Alias Self Signed Cert

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.Project;
import com.pulumi.gcp.organizations.ProjectArgs;
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.Environment;
import com.pulumi.gcp.apigee.EnvironmentArgs;
import com.pulumi.gcp.apigee.EnvKeystore;
import com.pulumi.gcp.apigee.EnvKeystoreArgs;
import com.pulumi.gcp.apigee.KeystoresAliasesSelfSignedCert;
import com.pulumi.gcp.apigee.KeystoresAliasesSelfSignedCertArgs;
import com.pulumi.gcp.apigee.inputs.KeystoresAliasesSelfSignedCertSubjectArgs;
import com.pulumi.resources.CustomResourceOptions;
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 project = new Project("project", ProjectArgs.builder()
.projectId("my-project")
.orgId("123456789")
.billingAccount("000000-0000000-0000000-000000")
.build());
var apigee = new Service("apigee", ServiceArgs.builder()
.project(project.projectId())
.service("apigee.googleapis.com")
.build());
var servicenetworking = new Service("servicenetworking", ServiceArgs.builder()
.project(project.projectId())
.service("servicenetworking.googleapis.com")
.build(), CustomResourceOptions.builder()
.dependsOn(apigee)
.build());
var compute = new Service("compute", ServiceArgs.builder()
.project(project.projectId())
.service("compute.googleapis.com")
.build(), CustomResourceOptions.builder()
.dependsOn(servicenetworking)
.build());
var apigeeNetwork = new Network("apigeeNetwork", NetworkArgs.builder()
.project(project.projectId())
.build(), CustomResourceOptions.builder()
.dependsOn(compute)
.build());
var apigeeRange = new GlobalAddress("apigeeRange", GlobalAddressArgs.builder()
.purpose("VPC_PEERING")
.addressType("INTERNAL")
.prefixLength(16)
.network(apigeeNetwork.id())
.project(project.projectId())
.build());
var apigeeVpcConnection = new Connection("apigeeVpcConnection", ConnectionArgs.builder()
.network(apigeeNetwork.id())
.service("servicenetworking.googleapis.com")
.reservedPeeringRanges(apigeeRange.name())
.build(), CustomResourceOptions.builder()
.dependsOn(servicenetworking)
.build());
var apigeeOrg = new Organization("apigeeOrg", OrganizationArgs.builder()
.analyticsRegion("us-central1")
.projectId(project.projectId())
.authorizedNetwork(apigeeNetwork.id())
.build(), CustomResourceOptions.builder()
.dependsOn(
apigeeVpcConnection,
apigee)
.build());
var apigeeEnvironmentKeystoreSsAliasEnvironment = new Environment("apigeeEnvironmentKeystoreSsAliasEnvironment", EnvironmentArgs.builder()
.orgId(apigeeOrg.id())
.description("Apigee Environment")
.displayName("environment-1")
.build());
var apigeeEnvironmentKeystoreAlias = new EnvKeystore("apigeeEnvironmentKeystoreAlias", EnvKeystoreArgs.builder()
.envId(apigeeEnvironmentKeystoreSsAliasEnvironment.id())
.build());
var apigeeEnvironmentKeystoreSsAliasKeystoresAliasesSelfSignedCert = new KeystoresAliasesSelfSignedCert("apigeeEnvironmentKeystoreSsAliasKeystoresAliasesSelfSignedCert", KeystoresAliasesSelfSignedCertArgs.builder()
.environment(apigeeEnvironmentKeystoreSsAliasEnvironment.name())
.orgId(apigeeOrg.name())
.keystore(apigeeEnvironmentKeystoreAlias.name())
.alias("alias")
.keySize(1024)
.sigAlg("SHA512withRSA")
.certValidityInDays(4)
.subject(KeystoresAliasesSelfSignedCertSubjectArgs.builder()
.commonName("selfsigned_example")
.countryCode("US")
.locality("TX")
.org("CCE")
.orgUnit("PSO")
.build())
.build());
}
}

Import

KeystoresAliasesSelfSignedCert can be imported using any of these accepted formats

$ pulumi import gcp:apigee/keystoresAliasesSelfSignedCert:KeystoresAliasesSelfSignedCert default organizations/{{org_id}}/environments/{{environment}}/keystores/{{keystore}}/aliases/{{alias}}
$ pulumi import gcp:apigee/keystoresAliasesSelfSignedCert:KeystoresAliasesSelfSignedCert default {{org_id}}/{{environment}}/{{keystore}}/{{alias}}

Constructors

Link copied to clipboard
constructor(alias: Output<String>? = null, certValidityInDays: Output<Int>? = null, environment: Output<String>? = null, keySize: Output<String>? = null, keystore: Output<String>? = null, orgId: Output<String>? = null, sigAlg: Output<String>? = null, subject: Output<KeystoresAliasesSelfSignedCertSubjectArgs>? = null, subjectAlternativeDnsNames: Output<KeystoresAliasesSelfSignedCertSubjectAlternativeDnsNamesArgs>? = null)

Properties

Link copied to clipboard
val alias: Output<String>? = null

Alias for the key/certificate pair. Values must match the regular expression \w\s-.{1,255}. This must be provided for all formats except selfsignedcert; self-signed certs may specify the alias in either this parameter or the JSON body.

Link copied to clipboard
val certValidityInDays: Output<Int>? = null

Validity duration of certificate, in days. Accepts positive non-zero value. Defaults to 365.

Link copied to clipboard
val environment: Output<String>? = null

The Apigee environment name

Link copied to clipboard
val keySize: Output<String>? = null

Key size. Default and maximum value is 2048 bits.

Link copied to clipboard
val keystore: Output<String>? = null

The Apigee keystore name associated in an Apigee environment

Link copied to clipboard
val orgId: Output<String>? = null

The Apigee Organization name associated with the Apigee environment

Link copied to clipboard
val sigAlg: Output<String>? = null

Signature algorithm to generate private key. Valid values are SHA512withRSA, SHA384withRSA, and SHA256withRSA

Link copied to clipboard

Subject details. Structure is documented below.

Link copied to clipboard

List of alternative host names. Maximum length is 255 characters for each value. Structure is documented below.

Functions

Link copied to clipboard
open override fun toJava(): KeystoresAliasesSelfSignedCertArgs