ConnectionProfile constructor
ConnectionProfile(
- String name, {
- ConnectionProfileArgs? args,
- CustomResourceOptions? options,
Creates a new ConnectionProfile.
name The Pulumi resource name.
args Arguments used to configure this ConnectionProfile. The set of arguments for ConnectionProfile.
options Resource options controlling this resource's behavior.
Implementation
ConnectionProfile(
String name, {
ConnectionProfileArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'gcp:datastream/connectionProfile:ConnectionProfile',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
pulumi.CustomResourceOptions(version: '9.36.1').merge(options),
additionalSecretOutputs: const ['effectiveLabels', 'pulumiLabels'],
) {
bigqueryProfile = registerOutput<Map<String, dynamic>?>('bigqueryProfile');
connectionProfileId = registerOutput<String>('connectionProfileId');
createWithoutValidation = registerOutput<bool?>('createWithoutValidation');
deletionPolicy = registerOutput<String>('deletionPolicy');
displayName = registerOutput<String>('displayName');
effectiveLabels = registerOutput<Map<String, String>>('effectiveLabels', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); }, isSecret: true);
forwardSshConnectivity = registerOutput<ConnectionProfileForwardSshConnectivity?>('forwardSshConnectivity', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ConnectionProfileForwardSshConnectivity.fromMap((guardedValue as Map).cast<String, dynamic>()); });
gcsProfile = registerOutput<ConnectionProfileGcsProfile?>('gcsProfile', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ConnectionProfileGcsProfile.fromMap((guardedValue as Map).cast<String, dynamic>()); });
labels = registerOutput<Map<String, String>?>('labels', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
location = registerOutput<String>('location');
mongodbProfile = registerOutput<ConnectionProfileMongodbProfile?>('mongodbProfile', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ConnectionProfileMongodbProfile.fromMap((guardedValue as Map).cast<String, dynamic>()); });
mysqlProfile = registerOutput<ConnectionProfileMysqlProfile?>('mysqlProfile', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ConnectionProfileMysqlProfile.fromMap((guardedValue as Map).cast<String, dynamic>()); });
this.name = registerOutput<String>('name');
oracleProfile = registerOutput<ConnectionProfileOracleProfile?>('oracleProfile', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ConnectionProfileOracleProfile.fromMap((guardedValue as Map).cast<String, dynamic>()); });
postgresqlProfile = registerOutput<ConnectionProfilePostgresqlProfile?>('postgresqlProfile', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ConnectionProfilePostgresqlProfile.fromMap((guardedValue as Map).cast<String, dynamic>()); });
privateConnectivity = registerOutput<ConnectionProfilePrivateConnectivity?>('privateConnectivity', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ConnectionProfilePrivateConnectivity.fromMap((guardedValue as Map).cast<String, dynamic>()); });
project = registerOutput<String>('project');
pulumiLabels = registerOutput<Map<String, String>>('pulumiLabels', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); }, isSecret: true);
salesforceProfile = registerOutput<ConnectionProfileSalesforceProfile?>('salesforceProfile', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ConnectionProfileSalesforceProfile.fromMap((guardedValue as Map).cast<String, dynamic>()); });
spannerProfile = registerOutput<ConnectionProfileSpannerProfile?>('spannerProfile', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ConnectionProfileSpannerProfile.fromMap((guardedValue as Map).cast<String, dynamic>()); });
sqlServerProfile = registerOutput<ConnectionProfileSqlServerProfile?>('sqlServerProfile', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ConnectionProfileSqlServerProfile.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}