AWS v6.73.0 published on Wednesday, Mar 19, 2025 by Pulumi
aws.cloudfront.getRealtimeLogConfig
Explore with Pulumi AI
Provides a CloudFront real-time log configuration resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.cloudfront.getRealtimeLogConfig({
    name: "example",
});
import pulumi
import pulumi_aws as aws
example = aws.cloudfront.get_realtime_log_config(name="example")
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cloudfront"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudfront.LookupRealtimeLogConfig(ctx, &cloudfront.LookupRealtimeLogConfigArgs{
			Name: "example",
		}, nil)
		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 example = Aws.CloudFront.GetRealtimeLogConfig.Invoke(new()
    {
        Name = "example",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.cloudfront.CloudfrontFunctions;
import com.pulumi.aws.cloudfront.inputs.GetRealtimeLogConfigArgs;
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 example = CloudfrontFunctions.getRealtimeLogConfig(GetRealtimeLogConfigArgs.builder()
            .name("example")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: aws:cloudfront:getRealtimeLogConfig
      arguments:
        name: example
Using getRealtimeLogConfig
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 getRealtimeLogConfig(args: GetRealtimeLogConfigArgs, opts?: InvokeOptions): Promise<GetRealtimeLogConfigResult>
function getRealtimeLogConfigOutput(args: GetRealtimeLogConfigOutputArgs, opts?: InvokeOptions): Output<GetRealtimeLogConfigResult>def get_realtime_log_config(name: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetRealtimeLogConfigResult
def get_realtime_log_config_output(name: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetRealtimeLogConfigResult]func LookupRealtimeLogConfig(ctx *Context, args *LookupRealtimeLogConfigArgs, opts ...InvokeOption) (*LookupRealtimeLogConfigResult, error)
func LookupRealtimeLogConfigOutput(ctx *Context, args *LookupRealtimeLogConfigOutputArgs, opts ...InvokeOption) LookupRealtimeLogConfigResultOutput> Note: This function is named LookupRealtimeLogConfig in the Go SDK.
public static class GetRealtimeLogConfig 
{
    public static Task<GetRealtimeLogConfigResult> InvokeAsync(GetRealtimeLogConfigArgs args, InvokeOptions? opts = null)
    public static Output<GetRealtimeLogConfigResult> Invoke(GetRealtimeLogConfigInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRealtimeLogConfigResult> getRealtimeLogConfig(GetRealtimeLogConfigArgs args, InvokeOptions options)
public static Output<GetRealtimeLogConfigResult> getRealtimeLogConfig(GetRealtimeLogConfigArgs args, InvokeOptions options)
fn::invoke:
  function: aws:cloudfront/getRealtimeLogConfig:getRealtimeLogConfig
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
- Unique name to identify this real-time log configuration.
- Name string
- Unique name to identify this real-time log configuration.
- name String
- Unique name to identify this real-time log configuration.
- name string
- Unique name to identify this real-time log configuration.
- name str
- Unique name to identify this real-time log configuration.
- name String
- Unique name to identify this real-time log configuration.
getRealtimeLogConfig Result
The following output properties are available:
- Arn string
- ARN (Amazon Resource Name) of the CloudFront real-time log configuration.
- Endpoints
List<GetRealtime Log Config Endpoint> 
- (Required) Amazon Kinesis data streams where real-time log data is sent.
- Fields List<string>
- (Required) Fields that are included in each real-time log record. See the AWS documentation for supported values.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- SamplingRate int
- (Required) Sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. An integer between 1and100, inclusive.
- Arn string
- ARN (Amazon Resource Name) of the CloudFront real-time log configuration.
- Endpoints
[]GetRealtime Log Config Endpoint 
- (Required) Amazon Kinesis data streams where real-time log data is sent.
- Fields []string
- (Required) Fields that are included in each real-time log record. See the AWS documentation for supported values.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- SamplingRate int
- (Required) Sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. An integer between 1and100, inclusive.
- arn String
- ARN (Amazon Resource Name) of the CloudFront real-time log configuration.
- endpoints
List<GetRealtime Log Config Endpoint> 
- (Required) Amazon Kinesis data streams where real-time log data is sent.
- fields List<String>
- (Required) Fields that are included in each real-time log record. See the AWS documentation for supported values.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- samplingRate Integer
- (Required) Sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. An integer between 1and100, inclusive.
- arn string
- ARN (Amazon Resource Name) of the CloudFront real-time log configuration.
- endpoints
GetRealtime Log Config Endpoint[] 
- (Required) Amazon Kinesis data streams where real-time log data is sent.
- fields string[]
- (Required) Fields that are included in each real-time log record. See the AWS documentation for supported values.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- samplingRate number
- (Required) Sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. An integer between 1and100, inclusive.
- arn str
- ARN (Amazon Resource Name) of the CloudFront real-time log configuration.
- endpoints
Sequence[GetRealtime Log Config Endpoint] 
- (Required) Amazon Kinesis data streams where real-time log data is sent.
- fields Sequence[str]
- (Required) Fields that are included in each real-time log record. See the AWS documentation for supported values.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- sampling_rate int
- (Required) Sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. An integer between 1and100, inclusive.
- arn String
- ARN (Amazon Resource Name) of the CloudFront real-time log configuration.
- endpoints List<Property Map>
- (Required) Amazon Kinesis data streams where real-time log data is sent.
- fields List<String>
- (Required) Fields that are included in each real-time log record. See the AWS documentation for supported values.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- samplingRate Number
- (Required) Sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. An integer between 1and100, inclusive.
Supporting Types
GetRealtimeLogConfigEndpoint    
- KinesisStream List<GetConfigs Realtime Log Config Endpoint Kinesis Stream Config> 
- (Required) Amazon Kinesis data stream configuration.
- StreamType string
- (Required) Type of data stream where real-time log data is sent. The only valid value is Kinesis.
- KinesisStream []GetConfigs Realtime Log Config Endpoint Kinesis Stream Config 
- (Required) Amazon Kinesis data stream configuration.
- StreamType string
- (Required) Type of data stream where real-time log data is sent. The only valid value is Kinesis.
- kinesisStream List<GetConfigs Realtime Log Config Endpoint Kinesis Stream Config> 
- (Required) Amazon Kinesis data stream configuration.
- streamType String
- (Required) Type of data stream where real-time log data is sent. The only valid value is Kinesis.
- kinesisStream GetConfigs Realtime Log Config Endpoint Kinesis Stream Config[] 
- (Required) Amazon Kinesis data stream configuration.
- streamType string
- (Required) Type of data stream where real-time log data is sent. The only valid value is Kinesis.
- kinesis_stream_ Sequence[Getconfigs Realtime Log Config Endpoint Kinesis Stream Config] 
- (Required) Amazon Kinesis data stream configuration.
- stream_type str
- (Required) Type of data stream where real-time log data is sent. The only valid value is Kinesis.
- kinesisStream List<Property Map>Configs 
- (Required) Amazon Kinesis data stream configuration.
- streamType String
- (Required) Type of data stream where real-time log data is sent. The only valid value is Kinesis.
GetRealtimeLogConfigEndpointKinesisStreamConfig       
- RoleArn string
- (Required) ARN of an IAM role that CloudFront can use to send real-time log data to the Kinesis data stream. See the AWS documentation for more information.
- StreamArn string
- (Required) ARN of the Kinesis data stream.
- RoleArn string
- (Required) ARN of an IAM role that CloudFront can use to send real-time log data to the Kinesis data stream. See the AWS documentation for more information.
- StreamArn string
- (Required) ARN of the Kinesis data stream.
- roleArn String
- (Required) ARN of an IAM role that CloudFront can use to send real-time log data to the Kinesis data stream. See the AWS documentation for more information.
- streamArn String
- (Required) ARN of the Kinesis data stream.
- roleArn string
- (Required) ARN of an IAM role that CloudFront can use to send real-time log data to the Kinesis data stream. See the AWS documentation for more information.
- streamArn string
- (Required) ARN of the Kinesis data stream.
- role_arn str
- (Required) ARN of an IAM role that CloudFront can use to send real-time log data to the Kinesis data stream. See the AWS documentation for more information.
- stream_arn str
- (Required) ARN of the Kinesis data stream.
- roleArn String
- (Required) ARN of an IAM role that CloudFront can use to send real-time log data to the Kinesis data stream. See the AWS documentation for more information.
- streamArn String
- (Required) ARN of the Kinesis data stream.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.