# ServerCertificateScopeProperty

Settings that define the Secure Sockets Layer/Transport Layer Security (SSL/TLS) traffic that Network Firewall should decrypt for inspection by the stateful rule engine.

- Source: Generated at build time
- Type last changed: v2.117.0 · 27 Dec 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_networkfirewall as networkfirewall } from 'aws-cdk-lib';
const serverCertificateScopeProperty: networkfirewall.CfnTLSInspectionConfiguration.ServerCertificateScopeProperty = {
  destinationPorts: [{
    fromPort: 123,
    toPort: 123,
  }],
  destinations: [{
    addressDefinition: 'addressDefinition',
  }],
  protocols: [123],
  sourcePorts: [{
    fromPort: 123,
    toPort: 123,
  }],
  sources: [{
    addressDefinition: 'addressDefinition',
  }],
};
```

Python:

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

server_certificate_scope_property = networkfirewall.CfnTLSInspectionConfiguration.ServerCertificateScopeProperty(
    destination_ports=[networkfirewall.CfnTLSInspectionConfiguration.PortRangeProperty(
        from_port=123,
        to_port=123
    )],
    destinations=[networkfirewall.CfnTLSInspectionConfiguration.AddressProperty(
        address_definition="addressDefinition"
    )],
    protocols=[123],
    source_ports=[networkfirewall.CfnTLSInspectionConfiguration.PortRangeProperty(
        from_port=123,
        to_port=123
    )],
    sources=[networkfirewall.CfnTLSInspectionConfiguration.AddressProperty(
        address_definition="addressDefinition"
    )]
)
```

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.networkfirewall.*;

ServerCertificateScopeProperty serverCertificateScopeProperty = ServerCertificateScopeProperty.builder()
        .destinationPorts(List.of(PortRangeProperty.builder()
                .fromPort(123)
                .toPort(123)
                .build()))
        .destinations(List.of(AddressProperty.builder()
                .addressDefinition("addressDefinition")
                .build()))
        .protocols(List.of(123))
        .sourcePorts(List.of(PortRangeProperty.builder()
                .fromPort(123)
                .toPort(123)
                .build()))
        .sources(List.of(AddressProperty.builder()
                .addressDefinition("addressDefinition")
                .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.NetworkFirewall;

var serverCertificateScopeProperty = new ServerCertificateScopeProperty {
    DestinationPorts = new [] { new PortRangeProperty {
        FromPort = 123,
        ToPort = 123
    } },
    Destinations = new [] { new AddressProperty {
        AddressDefinition = "addressDefinition"
    } },
    Protocols = new [] { 123 },
    SourcePorts = new [] { new PortRangeProperty {
        FromPort = 123,
        ToPort = 123
    } },
    Sources = new [] { new AddressProperty {
        AddressDefinition = "addressDefinition"
    } }
};
```

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"

serverCertificateScopeProperty := &ServerCertificateScopeProperty{
	DestinationPorts: []interface{}{
		&PortRangeProperty{
			FromPort: jsii.Number(123),
			ToPort: jsii.Number(123),
		},
	},
	Destinations: []interface{}{
		&AddressProperty{
			AddressDefinition: jsii.String("addressDefinition"),
		},
	},
	Protocols: []interface{}{
		jsii.Number(123),
	},
	SourcePorts: []interface{}{
		&PortRangeProperty{
			FromPort: jsii.Number(123),
			ToPort: jsii.Number(123),
		},
	},
	Sources: []interface{}{
		&AddressProperty{
			AddressDefinition: jsii.String("addressDefinition"),
		},
	},
}
```

## Properties

- `destinationPorts`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTLSInspectionConfiguration.PortRangeProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnTLSInspectionConfiguration.PortRangeProperty.html)[] — The destination ports to decrypt for inspection, in Transmission Control Protocol (TCP) format.

  If not specified, this matches with any destination port.

  You can specify individual ports, for example `1994` , and you can specify port ranges, such as `1990:1994` .

- `destinations`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTLSInspectionConfiguration.AddressProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnTLSInspectionConfiguration.AddressProperty.html)[] — The destination IP addresses and address ranges to decrypt for inspection, in CIDR notation.

  If not specified, this
  matches with any destination address.

- `protocols`: number[] | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — The protocols to inspect for, specified using the assigned internet protocol number (IANA) for each protocol.

  If not specified, this matches with any protocol.

  Network Firewall currently supports only TCP.

- `sourcePorts`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTLSInspectionConfiguration.PortRangeProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnTLSInspectionConfiguration.PortRangeProperty.html)[] — The source ports to decrypt for inspection, in Transmission Control Protocol (TCP) format.

  If not specified, this matches with any source port.

  You can specify individual ports, for example `1994` , and you can specify port ranges, such as `1990:1994` .

- `sources`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTLSInspectionConfiguration.AddressProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnTLSInspectionConfiguration.AddressProperty.html)[] — The source IP addresses and address ranges to decrypt for inspection, in CIDR notation.

  If not specified, this
  matches with any source address.
