1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. cloudfront
  5. getPublicKey

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.cloudfront.getPublicKey

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

A public key that you can use with signed URLs and signed cookies, or with field-level encryption.

Using getPublicKey

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getPublicKey(args: GetPublicKeyArgs, opts?: InvokeOptions): Promise<GetPublicKeyResult>
function getPublicKeyOutput(args: GetPublicKeyOutputArgs, opts?: InvokeOptions): Output<GetPublicKeyResult>
Copy
def get_public_key(id: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetPublicKeyResult
def get_public_key_output(id: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetPublicKeyResult]
Copy
func LookupPublicKey(ctx *Context, args *LookupPublicKeyArgs, opts ...InvokeOption) (*LookupPublicKeyResult, error)
func LookupPublicKeyOutput(ctx *Context, args *LookupPublicKeyOutputArgs, opts ...InvokeOption) LookupPublicKeyResultOutput
Copy

> Note: This function is named LookupPublicKey in the Go SDK.

public static class GetPublicKey 
{
    public static Task<GetPublicKeyResult> InvokeAsync(GetPublicKeyArgs args, InvokeOptions? opts = null)
    public static Output<GetPublicKeyResult> Invoke(GetPublicKeyInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetPublicKeyResult> getPublicKey(GetPublicKeyArgs args, InvokeOptions options)
public static Output<GetPublicKeyResult> getPublicKey(GetPublicKeyArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws-native:cloudfront:getPublicKey
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id This property is required. string
The identifier of the public key.
Id This property is required. string
The identifier of the public key.
id This property is required. String
The identifier of the public key.
id This property is required. string
The identifier of the public key.
id This property is required. str
The identifier of the public key.
id This property is required. String
The identifier of the public key.

getPublicKey Result

The following output properties are available:

CreatedTime string
The date and time when the public key was uploaded.
Id string
The identifier of the public key.
PublicKeyConfig Pulumi.AwsNative.CloudFront.Outputs.PublicKeyConfig
Configuration information about a public key that you can use with signed URLs and signed cookies, or with field-level encryption.
CreatedTime string
The date and time when the public key was uploaded.
Id string
The identifier of the public key.
PublicKeyConfig PublicKeyConfig
Configuration information about a public key that you can use with signed URLs and signed cookies, or with field-level encryption.
createdTime String
The date and time when the public key was uploaded.
id String
The identifier of the public key.
publicKeyConfig PublicKeyConfig
Configuration information about a public key that you can use with signed URLs and signed cookies, or with field-level encryption.
createdTime string
The date and time when the public key was uploaded.
id string
The identifier of the public key.
publicKeyConfig PublicKeyConfig
Configuration information about a public key that you can use with signed URLs and signed cookies, or with field-level encryption.
created_time str
The date and time when the public key was uploaded.
id str
The identifier of the public key.
public_key_config PublicKeyConfig
Configuration information about a public key that you can use with signed URLs and signed cookies, or with field-level encryption.
createdTime String
The date and time when the public key was uploaded.
id String
The identifier of the public key.
publicKeyConfig Property Map
Configuration information about a public key that you can use with signed URLs and signed cookies, or with field-level encryption.

Supporting Types

PublicKeyConfig

CallerReference This property is required. string
A string included in the request to help make sure that the request can't be replayed.
EncodedKey This property is required. string
The public key that you can use with signed URLs and signed cookies, or with field-level encryption.
Name This property is required. string
A name to help identify the public key.
Comment string
A comment to describe the public key. The comment cannot be longer than 128 characters.
CallerReference This property is required. string
A string included in the request to help make sure that the request can't be replayed.
EncodedKey This property is required. string
The public key that you can use with signed URLs and signed cookies, or with field-level encryption.
Name This property is required. string
A name to help identify the public key.
Comment string
A comment to describe the public key. The comment cannot be longer than 128 characters.
callerReference This property is required. String
A string included in the request to help make sure that the request can't be replayed.
encodedKey This property is required. String
The public key that you can use with signed URLs and signed cookies, or with field-level encryption.
name This property is required. String
A name to help identify the public key.
comment String
A comment to describe the public key. The comment cannot be longer than 128 characters.
callerReference This property is required. string
A string included in the request to help make sure that the request can't be replayed.
encodedKey This property is required. string
The public key that you can use with signed URLs and signed cookies, or with field-level encryption.
name This property is required. string
A name to help identify the public key.
comment string
A comment to describe the public key. The comment cannot be longer than 128 characters.
caller_reference This property is required. str
A string included in the request to help make sure that the request can't be replayed.
encoded_key This property is required. str
The public key that you can use with signed URLs and signed cookies, or with field-level encryption.
name This property is required. str
A name to help identify the public key.
comment str
A comment to describe the public key. The comment cannot be longer than 128 characters.
callerReference This property is required. String
A string included in the request to help make sure that the request can't be replayed.
encodedKey This property is required. String
The public key that you can use with signed URLs and signed cookies, or with field-level encryption.
name This property is required. String
A name to help identify the public key.
comment String
A comment to describe the public key. The comment cannot be longer than 128 characters.

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi