incapsula.MtlsImpervaToOriginCertificateSiteAssociation
Explore with Pulumi AI
Provides a Mutual TLS Imperva to Origin certificate Association resource. This resource is used to associate between mTLS client certificates and site.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as incapsula from "@pulumi/incapsula";
const mtlsImpervaToOriginCertificateSiteAssociation = new incapsula.MtlsImpervaToOriginCertificateSiteAssociation("mtlsImpervaToOriginCertificateSiteAssociation", {
siteId: incapsula_site["example-site"].id,
certificateId: incapsula_certificate["example-certificate"].id,
});
import pulumi
import pulumi_incapsula as incapsula
mtls_imperva_to_origin_certificate_site_association = incapsula.MtlsImpervaToOriginCertificateSiteAssociation("mtlsImpervaToOriginCertificateSiteAssociation",
site_id=incapsula_site["example-site"]["id"],
certificate_id=incapsula_certificate["example-certificate"]["id"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/incapsula/v3/incapsula"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := incapsula.NewMtlsImpervaToOriginCertificateSiteAssociation(ctx, "mtlsImpervaToOriginCertificateSiteAssociation", &incapsula.MtlsImpervaToOriginCertificateSiteAssociationArgs{
SiteId: pulumi.Any(incapsula_site.ExampleSite.Id),
CertificateId: pulumi.Any(incapsula_certificate.ExampleCertificate.Id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Incapsula = Pulumi.Incapsula;
return await Deployment.RunAsync(() =>
{
var mtlsImpervaToOriginCertificateSiteAssociation = new Incapsula.MtlsImpervaToOriginCertificateSiteAssociation("mtlsImpervaToOriginCertificateSiteAssociation", new()
{
SiteId = incapsula_site.Example_site.Id,
CertificateId = incapsula_certificate.Example_certificate.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.incapsula.MtlsImpervaToOriginCertificateSiteAssociation;
import com.pulumi.incapsula.MtlsImpervaToOriginCertificateSiteAssociationArgs;
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 mtlsImpervaToOriginCertificateSiteAssociation = new MtlsImpervaToOriginCertificateSiteAssociation("mtlsImpervaToOriginCertificateSiteAssociation", MtlsImpervaToOriginCertificateSiteAssociationArgs.builder()
.siteId(incapsula_site.example-site().id())
.certificateId(incapsula_certificate.example-certificate().id())
.build());
}
}
resources:
mtlsImpervaToOriginCertificateSiteAssociation:
type: incapsula:MtlsImpervaToOriginCertificateSiteAssociation
properties:
siteId: ${incapsula_site"example-site"[%!s(MISSING)].id}
certificateId: ${incapsula_certificate"example-certificate"[%!s(MISSING)].id}
Create MtlsImpervaToOriginCertificateSiteAssociation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MtlsImpervaToOriginCertificateSiteAssociation(name: string, args: MtlsImpervaToOriginCertificateSiteAssociationArgs, opts?: CustomResourceOptions);
@overload
def MtlsImpervaToOriginCertificateSiteAssociation(resource_name: str,
args: MtlsImpervaToOriginCertificateSiteAssociationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MtlsImpervaToOriginCertificateSiteAssociation(resource_name: str,
opts: Optional[ResourceOptions] = None,
certificate_id: Optional[str] = None,
site_id: Optional[str] = None,
account_id: Optional[str] = None,
mtls_imperva_to_origin_certificate_site_association_id: Optional[str] = None)
func NewMtlsImpervaToOriginCertificateSiteAssociation(ctx *Context, name string, args MtlsImpervaToOriginCertificateSiteAssociationArgs, opts ...ResourceOption) (*MtlsImpervaToOriginCertificateSiteAssociation, error)
public MtlsImpervaToOriginCertificateSiteAssociation(string name, MtlsImpervaToOriginCertificateSiteAssociationArgs args, CustomResourceOptions? opts = null)
public MtlsImpervaToOriginCertificateSiteAssociation(String name, MtlsImpervaToOriginCertificateSiteAssociationArgs args)
public MtlsImpervaToOriginCertificateSiteAssociation(String name, MtlsImpervaToOriginCertificateSiteAssociationArgs args, CustomResourceOptions options)
type: incapsula:MtlsImpervaToOriginCertificateSiteAssociation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args MtlsImpervaToOriginCertificateSiteAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args MtlsImpervaToOriginCertificateSiteAssociationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MtlsImpervaToOriginCertificateSiteAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MtlsImpervaToOriginCertificateSiteAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MtlsImpervaToOriginCertificateSiteAssociationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var mtlsImpervaToOriginCertificateSiteAssociationResource = new Incapsula.MtlsImpervaToOriginCertificateSiteAssociation("mtlsImpervaToOriginCertificateSiteAssociationResource", new()
{
CertificateId = "string",
SiteId = "string",
AccountId = "string",
MtlsImpervaToOriginCertificateSiteAssociationId = "string",
});
example, err := incapsula.NewMtlsImpervaToOriginCertificateSiteAssociation(ctx, "mtlsImpervaToOriginCertificateSiteAssociationResource", &incapsula.MtlsImpervaToOriginCertificateSiteAssociationArgs{
CertificateId: pulumi.String("string"),
SiteId: pulumi.String("string"),
AccountId: pulumi.String("string"),
MtlsImpervaToOriginCertificateSiteAssociationId: pulumi.String("string"),
})
var mtlsImpervaToOriginCertificateSiteAssociationResource = new MtlsImpervaToOriginCertificateSiteAssociation("mtlsImpervaToOriginCertificateSiteAssociationResource", MtlsImpervaToOriginCertificateSiteAssociationArgs.builder()
.certificateId("string")
.siteId("string")
.accountId("string")
.mtlsImpervaToOriginCertificateSiteAssociationId("string")
.build());
mtls_imperva_to_origin_certificate_site_association_resource = incapsula.MtlsImpervaToOriginCertificateSiteAssociation("mtlsImpervaToOriginCertificateSiteAssociationResource",
certificate_id="string",
site_id="string",
account_id="string",
mtls_imperva_to_origin_certificate_site_association_id="string")
const mtlsImpervaToOriginCertificateSiteAssociationResource = new incapsula.MtlsImpervaToOriginCertificateSiteAssociation("mtlsImpervaToOriginCertificateSiteAssociationResource", {
certificateId: "string",
siteId: "string",
accountId: "string",
mtlsImpervaToOriginCertificateSiteAssociationId: "string",
});
type: incapsula:MtlsImpervaToOriginCertificateSiteAssociation
properties:
accountId: string
certificateId: string
mtlsImpervaToOriginCertificateSiteAssociationId: string
siteId: string
MtlsImpervaToOriginCertificateSiteAssociation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The MtlsImpervaToOriginCertificateSiteAssociation resource accepts the following input properties:
- Certificate
Id string - The mTLS certificate id you want to assign to your site.
- Site
Id string - Site id to assign to a given mTLS client certificate.
- Account
Id string - The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
- Mtls
Imperva stringTo Origin Certificate Site Association Id - Unique identifier of the Mutual TLS Imperva to Origin Certificate.
- Certificate
Id string - The mTLS certificate id you want to assign to your site.
- Site
Id string - Site id to assign to a given mTLS client certificate.
- Account
Id string - The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
- Mtls
Imperva stringTo Origin Certificate Site Association Id - Unique identifier of the Mutual TLS Imperva to Origin Certificate.
- certificate
Id String - The mTLS certificate id you want to assign to your site.
- site
Id String - Site id to assign to a given mTLS client certificate.
- account
Id String - The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
- mtls
Imperva StringTo Origin Certificate Site Association Id - Unique identifier of the Mutual TLS Imperva to Origin Certificate.
- certificate
Id string - The mTLS certificate id you want to assign to your site.
- site
Id string - Site id to assign to a given mTLS client certificate.
- account
Id string - The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
- mtls
Imperva stringTo Origin Certificate Site Association Id - Unique identifier of the Mutual TLS Imperva to Origin Certificate.
- certificate_
id str - The mTLS certificate id you want to assign to your site.
- site_
id str - Site id to assign to a given mTLS client certificate.
- account_
id str - The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
- mtls_
imperva_ strto_ origin_ certificate_ site_ association_ id - Unique identifier of the Mutual TLS Imperva to Origin Certificate.
- certificate
Id String - The mTLS certificate id you want to assign to your site.
- site
Id String - Site id to assign to a given mTLS client certificate.
- account
Id String - The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
- mtls
Imperva StringTo Origin Certificate Site Association Id - Unique identifier of the Mutual TLS Imperva to Origin Certificate.
Outputs
All input properties are implicitly available as output properties. Additionally, the MtlsImpervaToOriginCertificateSiteAssociation resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing MtlsImpervaToOriginCertificateSiteAssociation Resource
Get an existing MtlsImpervaToOriginCertificateSiteAssociation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: MtlsImpervaToOriginCertificateSiteAssociationState, opts?: CustomResourceOptions): MtlsImpervaToOriginCertificateSiteAssociation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
certificate_id: Optional[str] = None,
mtls_imperva_to_origin_certificate_site_association_id: Optional[str] = None,
site_id: Optional[str] = None) -> MtlsImpervaToOriginCertificateSiteAssociation
func GetMtlsImpervaToOriginCertificateSiteAssociation(ctx *Context, name string, id IDInput, state *MtlsImpervaToOriginCertificateSiteAssociationState, opts ...ResourceOption) (*MtlsImpervaToOriginCertificateSiteAssociation, error)
public static MtlsImpervaToOriginCertificateSiteAssociation Get(string name, Input<string> id, MtlsImpervaToOriginCertificateSiteAssociationState? state, CustomResourceOptions? opts = null)
public static MtlsImpervaToOriginCertificateSiteAssociation get(String name, Output<String> id, MtlsImpervaToOriginCertificateSiteAssociationState state, CustomResourceOptions options)
resources: _: type: incapsula:MtlsImpervaToOriginCertificateSiteAssociation get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Id string - The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
- Certificate
Id string - The mTLS certificate id you want to assign to your site.
- Mtls
Imperva stringTo Origin Certificate Site Association Id - Unique identifier of the Mutual TLS Imperva to Origin Certificate.
- Site
Id string - Site id to assign to a given mTLS client certificate.
- Account
Id string - The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
- Certificate
Id string - The mTLS certificate id you want to assign to your site.
- Mtls
Imperva stringTo Origin Certificate Site Association Id - Unique identifier of the Mutual TLS Imperva to Origin Certificate.
- Site
Id string - Site id to assign to a given mTLS client certificate.
- account
Id String - The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
- certificate
Id String - The mTLS certificate id you want to assign to your site.
- mtls
Imperva StringTo Origin Certificate Site Association Id - Unique identifier of the Mutual TLS Imperva to Origin Certificate.
- site
Id String - Site id to assign to a given mTLS client certificate.
- account
Id string - The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
- certificate
Id string - The mTLS certificate id you want to assign to your site.
- mtls
Imperva stringTo Origin Certificate Site Association Id - Unique identifier of the Mutual TLS Imperva to Origin Certificate.
- site
Id string - Site id to assign to a given mTLS client certificate.
- account_
id str - The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
- certificate_
id str - The mTLS certificate id you want to assign to your site.
- mtls_
imperva_ strto_ origin_ certificate_ site_ association_ id - Unique identifier of the Mutual TLS Imperva to Origin Certificate.
- site_
id str - Site id to assign to a given mTLS client certificate.
- account
Id String - The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
- certificate
Id String - The mTLS certificate id you want to assign to your site.
- mtls
Imperva StringTo Origin Certificate Site Association Id - Unique identifier of the Mutual TLS Imperva to Origin Certificate.
- site
Id String - Site id to assign to a given mTLS client certificate.
Package Details
- Repository
- incapsula imperva/terraform-provider-incapsula
- License
- Notes
- This Pulumi package is based on the
incapsula
Terraform Provider.