# CfnOutboundExternalLinkProps

Properties for defining a `CfnOutboundExternalLink`.

Used as props by: [CfnOutboundExternalLink](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_rtbfabric.CfnOutboundExternalLink.html)

- Source: Generated at build time
- Type last changed: v2.231.0 · 1 Dec 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_rtbfabric as rtbfabric } from 'aws-cdk-lib';
const cfnOutboundExternalLinkProps: rtbfabric.CfnOutboundExternalLinkProps = {
  gatewayId: 'gatewayId',
  linkLogSettings: {
    applicationLogs: {
      linkApplicationLogSampling: {
        errorLog: 123,
        filterLog: 123,
      },
    },
  },
  publicEndpoint: 'publicEndpoint',

  // the properties below are optional
  linkAttributes: {
    customerProvidedId: 'customerProvidedId',
    responderErrorMasking: [{
      action: 'action',
      httpCode: 'httpCode',
      loggingTypes: ['loggingTypes'],

      // the properties below are optional
      responseLoggingPercentage: 123,
    }],
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

```python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_rtbfabric as rtbfabric

cfn_outbound_external_link_props = rtbfabric.CfnOutboundExternalLinkProps(
    gateway_id="gatewayId",
    link_log_settings=rtbfabric.CfnOutboundExternalLink.LinkLogSettingsProperty(
        application_logs=rtbfabric.CfnOutboundExternalLink.ApplicationLogsProperty(
            link_application_log_sampling=rtbfabric.CfnOutboundExternalLink.LinkApplicationLogSamplingProperty(
                error_log=123,
                filter_log=123
            )
        )
    ),
    public_endpoint="publicEndpoint",

    # the properties below are optional
    link_attributes=rtbfabric.CfnOutboundExternalLink.LinkAttributesProperty(
        customer_provided_id="customerProvidedId",
        responder_error_masking=[rtbfabric.CfnOutboundExternalLink.ResponderErrorMaskingForHttpCodeProperty(
            action="action",
            http_code="httpCode",
            logging_types=["loggingTypes"],

            # the properties below are optional
            response_logging_percentage=123
        )]
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.rtbfabric.*;

CfnOutboundExternalLinkProps cfnOutboundExternalLinkProps = CfnOutboundExternalLinkProps.builder()
        .gatewayId("gatewayId")
        .linkLogSettings(LinkLogSettingsProperty.builder()
                .applicationLogs(ApplicationLogsProperty.builder()
                        .linkApplicationLogSampling(LinkApplicationLogSamplingProperty.builder()
                                .errorLog(123)
                                .filterLog(123)
                                .build())
                        .build())
                .build())
        .publicEndpoint("publicEndpoint")

        // the properties below are optional
        .linkAttributes(LinkAttributesProperty.builder()
                .customerProvidedId("customerProvidedId")
                .responderErrorMasking(List.of(ResponderErrorMaskingForHttpCodeProperty.builder()
                        .action("action")
                        .httpCode("httpCode")
                        .loggingTypes(List.of("loggingTypes"))

                        // the properties below are optional
                        .responseLoggingPercentage(123)
                        .build()))
                .build())
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.RTBFabric;

var cfnOutboundExternalLinkProps = new CfnOutboundExternalLinkProps {
    GatewayId = "gatewayId",
    LinkLogSettings = new LinkLogSettingsProperty {
        ApplicationLogs = new ApplicationLogsProperty {
            LinkApplicationLogSampling = new LinkApplicationLogSamplingProperty {
                ErrorLog = 123,
                FilterLog = 123
            }
        }
    },
    PublicEndpoint = "publicEndpoint",

    // the properties below are optional
    LinkAttributes = new LinkAttributesProperty {
        CustomerProvidedId = "customerProvidedId",
        ResponderErrorMasking = new [] { new ResponderErrorMaskingForHttpCodeProperty {
            Action = "action",
            HttpCode = "httpCode",
            LoggingTypes = new [] { "loggingTypes" },

            // the properties below are optional
            ResponseLoggingPercentage = 123
        } }
    },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnOutboundExternalLinkProps := &CfnOutboundExternalLinkProps{
	GatewayId: jsii.String("gatewayId"),
	LinkLogSettings: &LinkLogSettingsProperty{
		ApplicationLogs: &ApplicationLogsProperty{
			LinkApplicationLogSampling: &LinkApplicationLogSamplingProperty{
				ErrorLog: jsii.Number(123),
				FilterLog: jsii.Number(123),
			},
		},
	},
	PublicEndpoint: jsii.String("publicEndpoint"),

	// the properties below are optional
	LinkAttributes: &LinkAttributesProperty{
		CustomerProvidedId: jsii.String("customerProvidedId"),
		ResponderErrorMasking: []interface{}{
			&ResponderErrorMaskingForHttpCodeProperty{
				Action: jsii.String("action"),
				HttpCode: jsii.String("httpCode"),
				LoggingTypes: []*string{
					jsii.String("loggingTypes"),
				},

				// the properties below are optional
				ResponseLoggingPercentage: jsii.Number(123),
			},
		},
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `gatewayId`: string (required)

- `linkAttributes`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnOutboundExternalLink.LinkAttributesProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_rtbfabric.CfnOutboundExternalLink.LinkAttributesProperty.html)

- `linkLogSettings`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnOutboundExternalLink.LinkLogSettingsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_rtbfabric.CfnOutboundExternalLink.LinkLogSettingsProperty.html) (required)

- `publicEndpoint`: string (required)

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — Tags to assign to the Link.
