# NetworkAccessConfigurationProperty

Specifies how AWS DevOps Agent reaches your application using a release management environment.

Exactly one access type must be specified.

- Source: Generated at build time
- Type last changed: v2.277.0 · 13 Nov 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_devopsagent as devopsagent } from 'aws-cdk-lib';
const networkAccessConfigurationProperty: devopsagent.CfnAssociation.NetworkAccessConfigurationProperty = {
  privateAccess: {
    privateConnectionName: 'privateConnectionName',
    runtimeRoleArn: 'runtimeRoleArn',
  },
};
```

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_devopsagent as devopsagent

network_access_configuration_property = devopsagent.CfnAssociation.NetworkAccessConfigurationProperty(
    private_access=devopsagent.CfnAssociation.PrivateNetworkAccessProperty(
        private_connection_name="privateConnectionName",
        runtime_role_arn="runtimeRoleArn"
    )
)
```

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

NetworkAccessConfigurationProperty networkAccessConfigurationProperty = NetworkAccessConfigurationProperty.builder()
        .privateAccess(PrivateNetworkAccessProperty.builder()
                .privateConnectionName("privateConnectionName")
                .runtimeRoleArn("runtimeRoleArn")
                .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.DevOpsAgent;

var networkAccessConfigurationProperty = new NetworkAccessConfigurationProperty {
    PrivateAccess = new PrivateNetworkAccessProperty {
        PrivateConnectionName = "privateConnectionName",
        RuntimeRoleArn = "runtimeRoleArn"
    }
};
```

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"

networkAccessConfigurationProperty := &NetworkAccessConfigurationProperty{
	PrivateAccess: &PrivateNetworkAccessProperty{
		PrivateConnectionName: jsii.String("privateConnectionName"),
		RuntimeRoleArn: jsii.String("runtimeRoleArn"),
	},
}
```

## Properties

- `privateAccess`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAssociation.PrivateNetworkAccessProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_devopsagent.CfnAssociation.PrivateNetworkAccessProperty.html) (required) — Private network access to your application inside a VPC, reached through a private connection.
