aws.lb.TrustStoreRevocation
Explore with Pulumi AI
Provides a ELBv2 Trust Store Revocation for use with Application Load Balancer Listener resources.
Example Usage
Trust Store With Revocations
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.lb.TrustStore("test", {
name: "tf-example-lb-ts",
caCertificatesBundleS3Bucket: "...",
caCertificatesBundleS3Key: "...",
});
const testTrustStoreRevocation = new aws.lb.TrustStoreRevocation("test", {
trustStoreArn: test.arn,
revocationsS3Bucket: "...",
revocationsS3Key: "...",
});
import pulumi
import pulumi_aws as aws
test = aws.lb.TrustStore("test",
name="tf-example-lb-ts",
ca_certificates_bundle_s3_bucket="...",
ca_certificates_bundle_s3_key="...")
test_trust_store_revocation = aws.lb.TrustStoreRevocation("test",
trust_store_arn=test.arn,
revocations_s3_bucket="...",
revocations_s3_key="...")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/lb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
test, err := lb.NewTrustStore(ctx, "test", &lb.TrustStoreArgs{
Name: pulumi.String("tf-example-lb-ts"),
CaCertificatesBundleS3Bucket: pulumi.String("..."),
CaCertificatesBundleS3Key: pulumi.String("..."),
})
if err != nil {
return err
}
_, err = lb.NewTrustStoreRevocation(ctx, "test", &lb.TrustStoreRevocationArgs{
TrustStoreArn: test.Arn,
RevocationsS3Bucket: pulumi.String("..."),
RevocationsS3Key: pulumi.String("..."),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = new Aws.LB.TrustStore("test", new()
{
Name = "tf-example-lb-ts",
CaCertificatesBundleS3Bucket = "...",
CaCertificatesBundleS3Key = "...",
});
var testTrustStoreRevocation = new Aws.LB.TrustStoreRevocation("test", new()
{
TrustStoreArn = test.Arn,
RevocationsS3Bucket = "...",
RevocationsS3Key = "...",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lb.TrustStore;
import com.pulumi.aws.lb.TrustStoreArgs;
import com.pulumi.aws.lb.TrustStoreRevocation;
import com.pulumi.aws.lb.TrustStoreRevocationArgs;
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 test = new TrustStore("test", TrustStoreArgs.builder()
.name("tf-example-lb-ts")
.caCertificatesBundleS3Bucket("...")
.caCertificatesBundleS3Key("...")
.build());
var testTrustStoreRevocation = new TrustStoreRevocation("testTrustStoreRevocation", TrustStoreRevocationArgs.builder()
.trustStoreArn(test.arn())
.revocationsS3Bucket("...")
.revocationsS3Key("...")
.build());
}
}
resources:
test:
type: aws:lb:TrustStore
properties:
name: tf-example-lb-ts
caCertificatesBundleS3Bucket: '...'
caCertificatesBundleS3Key: '...'
testTrustStoreRevocation:
type: aws:lb:TrustStoreRevocation
name: test
properties:
trustStoreArn: ${test.arn}
revocationsS3Bucket: '...'
revocationsS3Key: '...'
Create TrustStoreRevocation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TrustStoreRevocation(name: string, args: TrustStoreRevocationArgs, opts?: CustomResourceOptions);
@overload
def TrustStoreRevocation(resource_name: str,
args: TrustStoreRevocationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TrustStoreRevocation(resource_name: str,
opts: Optional[ResourceOptions] = None,
revocations_s3_bucket: Optional[str] = None,
revocations_s3_key: Optional[str] = None,
trust_store_arn: Optional[str] = None,
revocations_s3_object_version: Optional[str] = None)
func NewTrustStoreRevocation(ctx *Context, name string, args TrustStoreRevocationArgs, opts ...ResourceOption) (*TrustStoreRevocation, error)
public TrustStoreRevocation(string name, TrustStoreRevocationArgs args, CustomResourceOptions? opts = null)
public TrustStoreRevocation(String name, TrustStoreRevocationArgs args)
public TrustStoreRevocation(String name, TrustStoreRevocationArgs args, CustomResourceOptions options)
type: aws:lb:TrustStoreRevocation
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 TrustStoreRevocationArgs
- 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 TrustStoreRevocationArgs
- 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 TrustStoreRevocationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TrustStoreRevocationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TrustStoreRevocationArgs
- 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 trustStoreRevocationResource = new Aws.LB.TrustStoreRevocation("trustStoreRevocationResource", new()
{
RevocationsS3Bucket = "string",
RevocationsS3Key = "string",
TrustStoreArn = "string",
RevocationsS3ObjectVersion = "string",
});
example, err := lb.NewTrustStoreRevocation(ctx, "trustStoreRevocationResource", &lb.TrustStoreRevocationArgs{
RevocationsS3Bucket: pulumi.String("string"),
RevocationsS3Key: pulumi.String("string"),
TrustStoreArn: pulumi.String("string"),
RevocationsS3ObjectVersion: pulumi.String("string"),
})
var trustStoreRevocationResource = new TrustStoreRevocation("trustStoreRevocationResource", TrustStoreRevocationArgs.builder()
.revocationsS3Bucket("string")
.revocationsS3Key("string")
.trustStoreArn("string")
.revocationsS3ObjectVersion("string")
.build());
trust_store_revocation_resource = aws.lb.TrustStoreRevocation("trustStoreRevocationResource",
revocations_s3_bucket="string",
revocations_s3_key="string",
trust_store_arn="string",
revocations_s3_object_version="string")
const trustStoreRevocationResource = new aws.lb.TrustStoreRevocation("trustStoreRevocationResource", {
revocationsS3Bucket: "string",
revocationsS3Key: "string",
trustStoreArn: "string",
revocationsS3ObjectVersion: "string",
});
type: aws:lb:TrustStoreRevocation
properties:
revocationsS3Bucket: string
revocationsS3Key: string
revocationsS3ObjectVersion: string
trustStoreArn: string
TrustStoreRevocation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The TrustStoreRevocation resource accepts the following input properties:
- Revocations
S3Bucket string - S3 Bucket name holding the client certificate CA bundle.
- Revocations
S3Key string - S3 object key holding the client certificate CA bundle.
- Trust
Store stringArn - Trust Store ARN.
- Revocations
S3Object stringVersion - Version Id of CA bundle S3 bucket object, if versioned, defaults to latest if omitted.
- Revocations
S3Bucket string - S3 Bucket name holding the client certificate CA bundle.
- Revocations
S3Key string - S3 object key holding the client certificate CA bundle.
- Trust
Store stringArn - Trust Store ARN.
- Revocations
S3Object stringVersion - Version Id of CA bundle S3 bucket object, if versioned, defaults to latest if omitted.
- revocations
S3Bucket String - S3 Bucket name holding the client certificate CA bundle.
- revocations
S3Key String - S3 object key holding the client certificate CA bundle.
- trust
Store StringArn - Trust Store ARN.
- revocations
S3Object StringVersion - Version Id of CA bundle S3 bucket object, if versioned, defaults to latest if omitted.
- revocations
S3Bucket string - S3 Bucket name holding the client certificate CA bundle.
- revocations
S3Key string - S3 object key holding the client certificate CA bundle.
- trust
Store stringArn - Trust Store ARN.
- revocations
S3Object stringVersion - Version Id of CA bundle S3 bucket object, if versioned, defaults to latest if omitted.
- revocations_
s3_ strbucket - S3 Bucket name holding the client certificate CA bundle.
- revocations_
s3_ strkey - S3 object key holding the client certificate CA bundle.
- trust_
store_ strarn - Trust Store ARN.
- revocations_
s3_ strobject_ version - Version Id of CA bundle S3 bucket object, if versioned, defaults to latest if omitted.
- revocations
S3Bucket String - S3 Bucket name holding the client certificate CA bundle.
- revocations
S3Key String - S3 object key holding the client certificate CA bundle.
- trust
Store StringArn - Trust Store ARN.
- revocations
S3Object StringVersion - Version Id of CA bundle S3 bucket object, if versioned, defaults to latest if omitted.
Outputs
All input properties are implicitly available as output properties. Additionally, the TrustStoreRevocation resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Revocation
Id int - AWS assigned RevocationId, (number).
- Id string
- The provider-assigned unique ID for this managed resource.
- Revocation
Id int - AWS assigned RevocationId, (number).
- id String
- The provider-assigned unique ID for this managed resource.
- revocation
Id Integer - AWS assigned RevocationId, (number).
- id string
- The provider-assigned unique ID for this managed resource.
- revocation
Id number - AWS assigned RevocationId, (number).
- id str
- The provider-assigned unique ID for this managed resource.
- revocation_
id int - AWS assigned RevocationId, (number).
- id String
- The provider-assigned unique ID for this managed resource.
- revocation
Id Number - AWS assigned RevocationId, (number).
Look up Existing TrustStoreRevocation Resource
Get an existing TrustStoreRevocation 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?: TrustStoreRevocationState, opts?: CustomResourceOptions): TrustStoreRevocation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
revocation_id: Optional[int] = None,
revocations_s3_bucket: Optional[str] = None,
revocations_s3_key: Optional[str] = None,
revocations_s3_object_version: Optional[str] = None,
trust_store_arn: Optional[str] = None) -> TrustStoreRevocation
func GetTrustStoreRevocation(ctx *Context, name string, id IDInput, state *TrustStoreRevocationState, opts ...ResourceOption) (*TrustStoreRevocation, error)
public static TrustStoreRevocation Get(string name, Input<string> id, TrustStoreRevocationState? state, CustomResourceOptions? opts = null)
public static TrustStoreRevocation get(String name, Output<String> id, TrustStoreRevocationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Revocation
Id int - AWS assigned RevocationId, (number).
- Revocations
S3Bucket string - S3 Bucket name holding the client certificate CA bundle.
- Revocations
S3Key string - S3 object key holding the client certificate CA bundle.
- Revocations
S3Object stringVersion - Version Id of CA bundle S3 bucket object, if versioned, defaults to latest if omitted.
- Trust
Store stringArn - Trust Store ARN.
- Revocation
Id int - AWS assigned RevocationId, (number).
- Revocations
S3Bucket string - S3 Bucket name holding the client certificate CA bundle.
- Revocations
S3Key string - S3 object key holding the client certificate CA bundle.
- Revocations
S3Object stringVersion - Version Id of CA bundle S3 bucket object, if versioned, defaults to latest if omitted.
- Trust
Store stringArn - Trust Store ARN.
- revocation
Id Integer - AWS assigned RevocationId, (number).
- revocations
S3Bucket String - S3 Bucket name holding the client certificate CA bundle.
- revocations
S3Key String - S3 object key holding the client certificate CA bundle.
- revocations
S3Object StringVersion - Version Id of CA bundle S3 bucket object, if versioned, defaults to latest if omitted.
- trust
Store StringArn - Trust Store ARN.
- revocation
Id number - AWS assigned RevocationId, (number).
- revocations
S3Bucket string - S3 Bucket name holding the client certificate CA bundle.
- revocations
S3Key string - S3 object key holding the client certificate CA bundle.
- revocations
S3Object stringVersion - Version Id of CA bundle S3 bucket object, if versioned, defaults to latest if omitted.
- trust
Store stringArn - Trust Store ARN.
- revocation_
id int - AWS assigned RevocationId, (number).
- revocations_
s3_ strbucket - S3 Bucket name holding the client certificate CA bundle.
- revocations_
s3_ strkey - S3 object key holding the client certificate CA bundle.
- revocations_
s3_ strobject_ version - Version Id of CA bundle S3 bucket object, if versioned, defaults to latest if omitted.
- trust_
store_ strarn - Trust Store ARN.
- revocation
Id Number - AWS assigned RevocationId, (number).
- revocations
S3Bucket String - S3 Bucket name holding the client certificate CA bundle.
- revocations
S3Key String - S3 object key holding the client certificate CA bundle.
- revocations
S3Object StringVersion - Version Id of CA bundle S3 bucket object, if versioned, defaults to latest if omitted.
- trust
Store StringArn - Trust Store ARN.
Import
Using pulumi import
, import Trust Store Revocations using their ARN. For example:
$ pulumi import aws:lb/trustStoreRevocation:TrustStoreRevocation example arn:aws:elasticloadbalancing:us-west-2:187416307283:truststore/my-trust-store/20cfe21448b66314,6
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.