Skip to content
v2.277.0

NetworkAccessConfigurationProperty Struct Added in v2.277.0 ​

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

Exactly one access type must be specified.

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 networkAccessConfigurationProperty: devopsagent.CfnAssociation.NetworkAccessConfigurationProperty = {
  privateAccess: {
    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

network_access_configuration_property = devopsagent.CfnAssociation.NetworkAccessConfigurationProperty(
    private_access=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.*;

NetworkAccessConfigurationProperty networkAccessConfigurationProperty = NetworkAccessConfigurationProperty.builder()
        .privateAccess(PrivateNetworkAccessProperty.builder()
                .privateConnectionName("privateConnectionName")
                .runtimeRoleArn("runtimeRoleArn")
                .build())
        .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 networkAccessConfigurationProperty = new NetworkAccessConfigurationProperty {
    PrivateAccess = 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"

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

Properties ​

privateAccessIResolvable | CfnAssociation.PrivateNetworkAccessPropertyprivate_accesstyping.Union[IResolvable, PrivateNetworkAccessProperty]privateAccessIResolvablePrivateAccessIResolvablePrivateAccessinterface{} required #
Private network access to your application inside a VPC, reached through a private connection.