Skip to content
v2.278.0

PrivateNetworkAccessProperty Struct ​

Private network access to your application inside a VPC, reached through a private connection.

Example ​

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 privateNetworkAccessProperty: devopsagent.CfnAssociation.PrivateNetworkAccessProperty = {
  privateConnectionName: 'privateConnectionName',
  runtimeRoleArn: 'runtimeRoleArn',
};
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

private_network_access_property = devopsagent.CfnAssociation.PrivateNetworkAccessProperty(
    private_connection_name="privateConnectionName",
    runtime_role_arn="runtimeRoleArn"
)
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.*;

PrivateNetworkAccessProperty privateNetworkAccessProperty = PrivateNetworkAccessProperty.builder()
        .privateConnectionName("privateConnectionName")
        .runtimeRoleArn("runtimeRoleArn")
        .build();
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 privateNetworkAccessProperty = new PrivateNetworkAccessProperty {
    PrivateConnectionName = "privateConnectionName",
    RuntimeRoleArn = "runtimeRoleArn"
};
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"

privateNetworkAccessProperty := &PrivateNetworkAccessProperty{
	PrivateConnectionName: jsii.String("privateConnectionName"),
	RuntimeRoleArn: jsii.String("runtimeRoleArn"),
}

Properties ​

privateConnectionNamestringprivate_connection_namestrprivateConnectionNameStringPrivateConnectionNamestringPrivateConnectionName*string required #
Name of the private connection that supplies the VPC configuration for this release management environment.
runtimeRoleArnstringruntime_role_arnstrruntimeRoleArnStringRuntimeRoleArnstringRuntimeRoleArn*string required #
Role ARN that AWS DevOps Agent assumes at runtime to connect to your VPC.