All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.gcp.securitycenter.kotlin.SourceIamMemberArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.securitycenter.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.securitycenter.SourceIamMemberArgs.builder
import com.pulumi.gcp.securitycenter.kotlin.inputs.SourceIamMemberConditionArgs
import com.pulumi.gcp.securitycenter.kotlin.inputs.SourceIamMemberConditionArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* A Cloud Security Command Center's (Cloud SCC) finding source. A finding
* source is an entity or a mechanism that can produce a finding. A source is
* like a container of findings that come from the same scanner, logger,
* monitor, etc.
* To get more information about Source, see:
* * [API documentation](https://cloud.google.com/security-command-center/docs/reference/rest/v1/organizations.sources)
* * How-to Guides
* * [Official Documentation](https://cloud.google.com/security-command-center/docs)
* ## Example Usage
* ### Scc Source Basic
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const customSource = new gcp.securitycenter.Source("custom_source", {
* displayName: "My Source",
* organization: "123456789",
* description: "My custom Cloud Security Command Center Finding Source",
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* custom_source = gcp.securitycenter.Source("custom_source",
* display_name="My Source",
* organization="123456789",
* description="My custom Cloud Security Command Center Finding Source")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var customSource = new Gcp.SecurityCenter.Source("custom_source", new()
* {
* DisplayName = "My Source",
* Organization = "123456789",
* Description = "My custom Cloud Security Command Center Finding Source",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/securitycenter"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := securitycenter.NewSource(ctx, "custom_source", &securitycenter.SourceArgs{
* DisplayName: pulumi.String("My Source"),
* Organization: pulumi.String("123456789"),
* Description: pulumi.String("My custom Cloud Security Command Center Finding Source"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.securitycenter.Source;
* import com.pulumi.gcp.securitycenter.SourceArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var customSource = new Source("customSource", SourceArgs.builder()
* .displayName("My Source")
* .organization("123456789")
* .description("My custom Cloud Security Command Center Finding Source")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* customSource:
* type: gcp:securitycenter:Source
* name: custom_source
* properties:
* displayName: My Source
* organization: '123456789'
* description: My custom Cloud Security Command Center Finding Source
* ```
*
* ## Import
* Source can be imported using any of these accepted formats:
* * `organizations/{{organization}}/sources/{{name}}`
* * `{{organization}}/{{name}}`
* When using the `pulumi import` command, Source can be imported using one of the formats above. For example:
* ```sh
* $ pulumi import gcp:securitycenter/sourceIamMember:SourceIamMember default organizations/{{organization}}/sources/{{name}}
* ```
* ```sh
* $ pulumi import gcp:securitycenter/sourceIamMember:SourceIamMember default {{organization}}/{{name}}
* ```
* @property condition
* @property member
* @property organization The organization whose Cloud Security Command Center the Source
* lives in.
* - - -
* @property role
* @property source
*/
public data class SourceIamMemberArgs(
public val condition: Output? = null,
public val member: Output? = null,
public val organization: Output? = null,
public val role: Output? = null,
public val source: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.securitycenter.SourceIamMemberArgs =
com.pulumi.gcp.securitycenter.SourceIamMemberArgs.builder()
.condition(condition?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.member(member?.applyValue({ args0 -> args0 }))
.organization(organization?.applyValue({ args0 -> args0 }))
.role(role?.applyValue({ args0 -> args0 }))
.source(source?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SourceIamMemberArgs].
*/
@PulumiTagMarker
public class SourceIamMemberArgsBuilder internal constructor() {
private var condition: Output? = null
private var member: Output? = null
private var organization: Output? = null
private var role: Output? = null
private var source: Output? = null
/**
* @param value
*/
@JvmName("ytajjtcvunkolseo")
public suspend fun condition(`value`: Output) {
this.condition = value
}
/**
* @param value
*/
@JvmName("emrvhjxshwkttcsj")
public suspend fun member(`value`: Output) {
this.member = value
}
/**
* @param value The organization whose Cloud Security Command Center the Source
* lives in.
* - - -
*/
@JvmName("hbrkssmsuvhvgmsr")
public suspend fun organization(`value`: Output) {
this.organization = value
}
/**
* @param value
*/
@JvmName("aueopkmpqljqqgfk")
public suspend fun role(`value`: Output) {
this.role = value
}
/**
* @param value
*/
@JvmName("rmnsjtkefgxypdux")
public suspend fun source(`value`: Output) {
this.source = value
}
/**
* @param value
*/
@JvmName("xftwbvjuohkyudkr")
public suspend fun condition(`value`: SourceIamMemberConditionArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.condition = mapped
}
/**
* @param argument
*/
@JvmName("vstvtkmqdpoolxjw")
public suspend fun condition(argument: suspend SourceIamMemberConditionArgsBuilder.() -> Unit) {
val toBeMapped = SourceIamMemberConditionArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.condition = mapped
}
/**
* @param value
*/
@JvmName("uscxrkabbuohdxqs")
public suspend fun member(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.member = mapped
}
/**
* @param value The organization whose Cloud Security Command Center the Source
* lives in.
* - - -
*/
@JvmName("ioubklmolnkgyeiu")
public suspend fun organization(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.organization = mapped
}
/**
* @param value
*/
@JvmName("kvmitpdjyljmfakw")
public suspend fun role(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.role = mapped
}
/**
* @param value
*/
@JvmName("bvwtfvmjsibwfnsm")
public suspend fun source(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.source = mapped
}
internal fun build(): SourceIamMemberArgs = SourceIamMemberArgs(
condition = condition,
member = member,
organization = organization,
role = role,
source = source,
)
}