ibm.SccProfileAttachment
Explore with Pulumi AI
Create, update, and delete profile attachments with this resource.
NOTE: Security Compliance Center is a regional service. Please specify the IBM Cloud Provider attribute
region
to target another region. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will also override which region is being targeted for all ibm providers(ex.export IBMCLOUD_SCC_API_ENDPOINT=https://eu-es.compliance.cloud.ibm.com
).
Example Usage
Making a profile attachment using an IBM ibm.SccScope
:
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
# resource to create a scope targeting an account
sccPersonalAccountScope:
type: ibm:SccScope
properties:
description: An scope targeting an account, made using Terraform
environment: ibm-cloud
properties:
scope_type: account
scope_id: 7379262615a74cb3b9f346408a3e1694
instanceId: ${sccInstanceId}
# resource to create a profile attachment to a predefined profile
cis-profile-attachment-instance:
type: ibm:SccProfileAttachment
properties:
instanceId: ${sccInstanceId}
description: Sample Profile attachment using Terraform
profileId: ${ibmCloudSampleProfileId}
schedule: every_7_days
status: disabled
# scope created by the resource ibm_scc_scope
scopes:
- id: ${sccPersonalAccountScope.scopeId}
# dynamically use the default parameters of a profile if there are any
dynamic:
- forEach: ${sampleProfileId.defaultParameters}
content:
- parameterName: ${attachment_parameters.value.parameter_name}
parameterDisplayName: ${attachment_parameters.value.parameter_display_name}
parameterType: ${attachment_parameters.value.parameter_type}
parameterValue: ${attachment_parameters.value.parameter_default_value}
assessmentType: ${attachment_parameters.value.assessment_type}
assessmentId: ${attachment_parameters.value.assessment_id}
notifications:
enabled: false
controls:
failedControlIds: []
thresholdLimit: 10
variables:
sccInstanceId: f6939361-4f72-47a3-ae5e-0ee77a90ee31
ibmCloudSampleProfileId: 623ee808-2fcd-4700-8149-cc5500512ad7
sampleProfileId: ## Resources
fn::invoke:
function: ibm:getSccProfile
arguments:
instanceId: ${sccInstanceId}
profileId: ${ibmCloudSampleProfileId}
Making a profile attachment using an IBM account_id
:
NOTE: This is considered legacy support and will be deprecated soon.
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const sccProfileAttachmentInstance = new ibm.SccProfileAttachment("sccProfileAttachmentInstance", {
profileId: "a0bd1ee2-1ed3-407e-a2f4-ce7a1a38f54d",
instanceId: "34324315-2edc-23dc-2389-34982389834d",
description: "scc_profile_attachment_description",
scopes: [{
environment: "ibm-cloud",
properties: [
{
name: "scope_id",
value: resource.ibm_scc_control_library.scc_control_library_instance.account_id,
},
{
name: "scope_type",
value: "account",
},
],
}],
schedule: "every_30_days",
status: "enabled",
notifications: {
enabled: false,
controls: {
failedControlIds: [],
thresholdLimit: 14,
},
},
attachmentParameters: [{
parameterValue: "22",
assessmentId: "rule-this-is-a-fake-ruleid",
parameterDisplayName: "Network ACL rule for allowed IPs to SSH port",
parameterName: "ssh_port",
parameterType: "numeric",
}],
});
import pulumi
import pulumi_ibm as ibm
scc_profile_attachment_instance = ibm.SccProfileAttachment("sccProfileAttachmentInstance",
profile_id="a0bd1ee2-1ed3-407e-a2f4-ce7a1a38f54d",
instance_id="34324315-2edc-23dc-2389-34982389834d",
description="scc_profile_attachment_description",
scopes=[{
"environment": "ibm-cloud",
"properties": [
{
"name": "scope_id",
"value": resource["ibm_scc_control_library"]["scc_control_library_instance"]["account_id"],
},
{
"name": "scope_type",
"value": "account",
},
],
}],
schedule="every_30_days",
status="enabled",
notifications={
"enabled": False,
"controls": {
"failed_control_ids": [],
"threshold_limit": 14,
},
},
attachment_parameters=[{
"parameter_value": "22",
"assessment_id": "rule-this-is-a-fake-ruleid",
"parameter_display_name": "Network ACL rule for allowed IPs to SSH port",
"parameter_name": "ssh_port",
"parameter_type": "numeric",
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.NewSccProfileAttachment(ctx, "sccProfileAttachmentInstance", &ibm.SccProfileAttachmentArgs{
ProfileId: pulumi.String("a0bd1ee2-1ed3-407e-a2f4-ce7a1a38f54d"),
InstanceId: pulumi.String("34324315-2edc-23dc-2389-34982389834d"),
Description: pulumi.String("scc_profile_attachment_description"),
Scopes: ibm.SccProfileAttachmentScopeArray{
&ibm.SccProfileAttachmentScopeArgs{
Environment: pulumi.String("ibm-cloud"),
Properties: ibm.SccProfileAttachmentScopePropertyArray{
&ibm.SccProfileAttachmentScopePropertyArgs{
Name: pulumi.String("scope_id"),
Value: pulumi.Any(resource.Ibm_scc_control_library.Scc_control_library_instance.Account_id),
},
&ibm.SccProfileAttachmentScopePropertyArgs{
Name: pulumi.String("scope_type"),
Value: pulumi.String("account"),
},
},
},
},
Schedule: pulumi.String("every_30_days"),
Status: pulumi.String("enabled"),
Notifications: &ibm.SccProfileAttachmentNotificationsArgs{
Enabled: pulumi.Bool(false),
Controls: &ibm.SccProfileAttachmentNotificationsControlsArgs{
FailedControlIds: pulumi.StringArray{},
ThresholdLimit: pulumi.Float64(14),
},
},
AttachmentParameters: ibm.SccProfileAttachmentAttachmentParameterArray{
&ibm.SccProfileAttachmentAttachmentParameterArgs{
ParameterValue: pulumi.String("22"),
AssessmentId: pulumi.String("rule-this-is-a-fake-ruleid"),
ParameterDisplayName: pulumi.String("Network ACL rule for allowed IPs to SSH port"),
ParameterName: pulumi.String("ssh_port"),
ParameterType: pulumi.String("numeric"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var sccProfileAttachmentInstance = new Ibm.SccProfileAttachment("sccProfileAttachmentInstance", new()
{
ProfileId = "a0bd1ee2-1ed3-407e-a2f4-ce7a1a38f54d",
InstanceId = "34324315-2edc-23dc-2389-34982389834d",
Description = "scc_profile_attachment_description",
Scopes = new[]
{
new Ibm.Inputs.SccProfileAttachmentScopeArgs
{
Environment = "ibm-cloud",
Properties = new[]
{
new Ibm.Inputs.SccProfileAttachmentScopePropertyArgs
{
Name = "scope_id",
Value = resource.Ibm_scc_control_library.Scc_control_library_instance.Account_id,
},
new Ibm.Inputs.SccProfileAttachmentScopePropertyArgs
{
Name = "scope_type",
Value = "account",
},
},
},
},
Schedule = "every_30_days",
Status = "enabled",
Notifications = new Ibm.Inputs.SccProfileAttachmentNotificationsArgs
{
Enabled = false,
Controls = new Ibm.Inputs.SccProfileAttachmentNotificationsControlsArgs
{
FailedControlIds = new() { },
ThresholdLimit = 14,
},
},
AttachmentParameters = new[]
{
new Ibm.Inputs.SccProfileAttachmentAttachmentParameterArgs
{
ParameterValue = "22",
AssessmentId = "rule-this-is-a-fake-ruleid",
ParameterDisplayName = "Network ACL rule for allowed IPs to SSH port",
ParameterName = "ssh_port",
ParameterType = "numeric",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.SccProfileAttachment;
import com.pulumi.ibm.SccProfileAttachmentArgs;
import com.pulumi.ibm.inputs.SccProfileAttachmentScopeArgs;
import com.pulumi.ibm.inputs.SccProfileAttachmentNotificationsArgs;
import com.pulumi.ibm.inputs.SccProfileAttachmentNotificationsControlsArgs;
import com.pulumi.ibm.inputs.SccProfileAttachmentAttachmentParameterArgs;
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 sccProfileAttachmentInstance = new SccProfileAttachment("sccProfileAttachmentInstance", SccProfileAttachmentArgs.builder()
.profileId("a0bd1ee2-1ed3-407e-a2f4-ce7a1a38f54d")
.instanceId("34324315-2edc-23dc-2389-34982389834d")
.description("scc_profile_attachment_description")
.scopes(SccProfileAttachmentScopeArgs.builder()
.environment("ibm-cloud")
.properties(
SccProfileAttachmentScopePropertyArgs.builder()
.name("scope_id")
.value(resource.ibm_scc_control_library().scc_control_library_instance().account_id())
.build(),
SccProfileAttachmentScopePropertyArgs.builder()
.name("scope_type")
.value("account")
.build())
.build())
.schedule("every_30_days")
.status("enabled")
.notifications(SccProfileAttachmentNotificationsArgs.builder()
.enabled(false)
.controls(SccProfileAttachmentNotificationsControlsArgs.builder()
.failedControlIds()
.thresholdLimit(14)
.build())
.build())
.attachmentParameters(SccProfileAttachmentAttachmentParameterArgs.builder()
.parameterValue("22")
.assessmentId("rule-this-is-a-fake-ruleid")
.parameterDisplayName("Network ACL rule for allowed IPs to SSH port")
.parameterName("ssh_port")
.parameterType("numeric")
.build())
.build());
}
}
resources:
sccProfileAttachmentInstance:
type: ibm:SccProfileAttachment
properties:
profileId: a0bd1ee2-1ed3-407e-a2f4-ce7a1a38f54d
instanceId: 34324315-2edc-23dc-2389-34982389834d
description: scc_profile_attachment_description
scopes:
- environment: ibm-cloud
properties:
- name: scope_id
value: ${resource.ibm_scc_control_library.scc_control_library_instance.account_id}
- name: scope_type
value: account
schedule: every_30_days
status: enabled
notifications:
enabled: false
controls:
failedControlIds: []
thresholdLimit: 14
attachmentParameters:
- parameterValue: '22'
assessmentId: rule-this-is-a-fake-ruleid
parameterDisplayName: Network ACL rule for allowed IPs to SSH port
parameterName: ssh_port
parameterType: numeric
Create SccProfileAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SccProfileAttachment(name: string, args: SccProfileAttachmentArgs, opts?: CustomResourceOptions);
@overload
def SccProfileAttachment(resource_name: str,
args: SccProfileAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SccProfileAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
profile_id: Optional[str] = None,
schedule: Optional[str] = None,
scopes: Optional[Sequence[SccProfileAttachmentScopeArgs]] = None,
status: Optional[str] = None,
attachment_parameters: Optional[Sequence[SccProfileAttachmentAttachmentParameterArgs]] = None,
description: Optional[str] = None,
name: Optional[str] = None,
notifications: Optional[SccProfileAttachmentNotificationsArgs] = None,
scc_profile_attachment_id: Optional[str] = None)
func NewSccProfileAttachment(ctx *Context, name string, args SccProfileAttachmentArgs, opts ...ResourceOption) (*SccProfileAttachment, error)
public SccProfileAttachment(string name, SccProfileAttachmentArgs args, CustomResourceOptions? opts = null)
public SccProfileAttachment(String name, SccProfileAttachmentArgs args)
public SccProfileAttachment(String name, SccProfileAttachmentArgs args, CustomResourceOptions options)
type: ibm:SccProfileAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SccProfileAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SccProfileAttachmentArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SccProfileAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SccProfileAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SccProfileAttachmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var sccProfileAttachmentResource = new Ibm.SccProfileAttachment("sccProfileAttachmentResource", new()
{
InstanceId = "string",
ProfileId = "string",
Schedule = "string",
Scopes = new[]
{
new Ibm.Inputs.SccProfileAttachmentScopeArgs
{
Environment = "string",
Id = "string",
Properties = new[]
{
new Ibm.Inputs.SccProfileAttachmentScopePropertyArgs
{
Name = "string",
Value = "string",
},
},
},
},
Status = "string",
AttachmentParameters = new[]
{
new Ibm.Inputs.SccProfileAttachmentAttachmentParameterArgs
{
AssessmentId = "string",
ParameterDisplayName = "string",
ParameterName = "string",
ParameterType = "string",
ParameterValue = "string",
AssessmentType = "string",
},
},
Description = "string",
Name = "string",
Notifications = new Ibm.Inputs.SccProfileAttachmentNotificationsArgs
{
Controls = new Ibm.Inputs.SccProfileAttachmentNotificationsControlsArgs
{
FailedControlIds = new[]
{
"string",
},
ThresholdLimit = 0,
},
Enabled = false,
},
SccProfileAttachmentId = "string",
});
example, err := ibm.NewSccProfileAttachment(ctx, "sccProfileAttachmentResource", &ibm.SccProfileAttachmentArgs{
InstanceId: pulumi.String("string"),
ProfileId: pulumi.String("string"),
Schedule: pulumi.String("string"),
Scopes: ibm.SccProfileAttachmentScopeArray{
&ibm.SccProfileAttachmentScopeArgs{
Environment: pulumi.String("string"),
Id: pulumi.String("string"),
Properties: ibm.SccProfileAttachmentScopePropertyArray{
&ibm.SccProfileAttachmentScopePropertyArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
},
Status: pulumi.String("string"),
AttachmentParameters: ibm.SccProfileAttachmentAttachmentParameterArray{
&ibm.SccProfileAttachmentAttachmentParameterArgs{
AssessmentId: pulumi.String("string"),
ParameterDisplayName: pulumi.String("string"),
ParameterName: pulumi.String("string"),
ParameterType: pulumi.String("string"),
ParameterValue: pulumi.String("string"),
AssessmentType: pulumi.String("string"),
},
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Notifications: &ibm.SccProfileAttachmentNotificationsArgs{
Controls: &ibm.SccProfileAttachmentNotificationsControlsArgs{
FailedControlIds: pulumi.StringArray{
pulumi.String("string"),
},
ThresholdLimit: pulumi.Float64(0),
},
Enabled: pulumi.Bool(false),
},
SccProfileAttachmentId: pulumi.String("string"),
})
var sccProfileAttachmentResource = new SccProfileAttachment("sccProfileAttachmentResource", SccProfileAttachmentArgs.builder()
.instanceId("string")
.profileId("string")
.schedule("string")
.scopes(SccProfileAttachmentScopeArgs.builder()
.environment("string")
.id("string")
.properties(SccProfileAttachmentScopePropertyArgs.builder()
.name("string")
.value("string")
.build())
.build())
.status("string")
.attachmentParameters(SccProfileAttachmentAttachmentParameterArgs.builder()
.assessmentId("string")
.parameterDisplayName("string")
.parameterName("string")
.parameterType("string")
.parameterValue("string")
.assessmentType("string")
.build())
.description("string")
.name("string")
.notifications(SccProfileAttachmentNotificationsArgs.builder()
.controls(SccProfileAttachmentNotificationsControlsArgs.builder()
.failedControlIds("string")
.thresholdLimit(0)
.build())
.enabled(false)
.build())
.sccProfileAttachmentId("string")
.build());
scc_profile_attachment_resource = ibm.SccProfileAttachment("sccProfileAttachmentResource",
instance_id="string",
profile_id="string",
schedule="string",
scopes=[{
"environment": "string",
"id": "string",
"properties": [{
"name": "string",
"value": "string",
}],
}],
status="string",
attachment_parameters=[{
"assessment_id": "string",
"parameter_display_name": "string",
"parameter_name": "string",
"parameter_type": "string",
"parameter_value": "string",
"assessment_type": "string",
}],
description="string",
name="string",
notifications={
"controls": {
"failed_control_ids": ["string"],
"threshold_limit": 0,
},
"enabled": False,
},
scc_profile_attachment_id="string")
const sccProfileAttachmentResource = new ibm.SccProfileAttachment("sccProfileAttachmentResource", {
instanceId: "string",
profileId: "string",
schedule: "string",
scopes: [{
environment: "string",
id: "string",
properties: [{
name: "string",
value: "string",
}],
}],
status: "string",
attachmentParameters: [{
assessmentId: "string",
parameterDisplayName: "string",
parameterName: "string",
parameterType: "string",
parameterValue: "string",
assessmentType: "string",
}],
description: "string",
name: "string",
notifications: {
controls: {
failedControlIds: ["string"],
thresholdLimit: 0,
},
enabled: false,
},
sccProfileAttachmentId: "string",
});
type: ibm:SccProfileAttachment
properties:
attachmentParameters:
- assessmentId: string
assessmentType: string
parameterDisplayName: string
parameterName: string
parameterType: string
parameterValue: string
description: string
instanceId: string
name: string
notifications:
controls:
failedControlIds:
- string
thresholdLimit: 0
enabled: false
profileId: string
sccProfileAttachmentId: string
schedule: string
scopes:
- environment: string
id: string
properties:
- name: string
value: string
status: string
SccProfileAttachment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SccProfileAttachment resource accepts the following input properties:
- Instance
Id string - The ID of the SCC instance in a particular region.
- Profile
Id string - The profile ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- Schedule string
- The schedule of an attachment evaluation.
- Constraints: Allowable values are:
daily
,every_7_days
,every_30_days
.
- Constraints: Allowable values are:
- Scopes
List<Scc
Profile Attachment Scope> The scope payload for the multi cloud feature.
- Constraints:
- The maximum length is
8
items. The minimum length is0
items.
Nested schema for scope:
- Status string
- (String) The status of an attachment evaluation.
- Constraints: Allowable values are:
enabled
,disabled
.
- Constraints: Allowable values are:
- Attachment
Parameters List<SccProfile Attachment Attachment Parameter> The attachment parameters required from the profile that the attachment is targeting. All parameters listed from the profile needs to be set. NOTE: All
attachment_parameters
must be defined; usedatasource.ibm_scc_profile
to see all necessary parameters.Nested schema for attachment_parameters:
- Description string
- (String) The description for the attachment.
- Constraints: The maximum length is
256
characters. The minimum length is0
characters. The value must match regular expression/^[a-zA-Z0-9_,'\\s\\-]*$/
.
- Constraints: The maximum length is
- Name string
- The name of the attachment.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- Notifications
Scc
Profile Attachment Notifications The configuration for setting up notifications if a scan fails. Requires event_notifications from the instance settings to be setup.
Nested schema for notifications:
- Scc
Profile stringAttachment Id - (String) The ID of the last scan of an attachment.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- Instance
Id string - The ID of the SCC instance in a particular region.
- Profile
Id string - The profile ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- Schedule string
- The schedule of an attachment evaluation.
- Constraints: Allowable values are:
daily
,every_7_days
,every_30_days
.
- Constraints: Allowable values are:
- Scopes
[]Scc
Profile Attachment Scope Args The scope payload for the multi cloud feature.
- Constraints:
- The maximum length is
8
items. The minimum length is0
items.
Nested schema for scope:
- Status string
- (String) The status of an attachment evaluation.
- Constraints: Allowable values are:
enabled
,disabled
.
- Constraints: Allowable values are:
- Attachment
Parameters []SccProfile Attachment Attachment Parameter Args The attachment parameters required from the profile that the attachment is targeting. All parameters listed from the profile needs to be set. NOTE: All
attachment_parameters
must be defined; usedatasource.ibm_scc_profile
to see all necessary parameters.Nested schema for attachment_parameters:
- Description string
- (String) The description for the attachment.
- Constraints: The maximum length is
256
characters. The minimum length is0
characters. The value must match regular expression/^[a-zA-Z0-9_,'\\s\\-]*$/
.
- Constraints: The maximum length is
- Name string
- The name of the attachment.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- Notifications
Scc
Profile Attachment Notifications Args The configuration for setting up notifications if a scan fails. Requires event_notifications from the instance settings to be setup.
Nested schema for notifications:
- Scc
Profile stringAttachment Id - (String) The ID of the last scan of an attachment.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- instance
Id String - The ID of the SCC instance in a particular region.
- profile
Id String - The profile ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- schedule String
- The schedule of an attachment evaluation.
- Constraints: Allowable values are:
daily
,every_7_days
,every_30_days
.
- Constraints: Allowable values are:
- scopes
List<Scc
Profile Attachment Scope> The scope payload for the multi cloud feature.
- Constraints:
- The maximum length is
8
items. The minimum length is0
items.
Nested schema for scope:
- status String
- (String) The status of an attachment evaluation.
- Constraints: Allowable values are:
enabled
,disabled
.
- Constraints: Allowable values are:
- attachment
Parameters List<SccProfile Attachment Attachment Parameter> The attachment parameters required from the profile that the attachment is targeting. All parameters listed from the profile needs to be set. NOTE: All
attachment_parameters
must be defined; usedatasource.ibm_scc_profile
to see all necessary parameters.Nested schema for attachment_parameters:
- description String
- (String) The description for the attachment.
- Constraints: The maximum length is
256
characters. The minimum length is0
characters. The value must match regular expression/^[a-zA-Z0-9_,'\\s\\-]*$/
.
- Constraints: The maximum length is
- name String
- The name of the attachment.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- notifications
Scc
Profile Attachment Notifications The configuration for setting up notifications if a scan fails. Requires event_notifications from the instance settings to be setup.
Nested schema for notifications:
- scc
Profile StringAttachment Id - (String) The ID of the last scan of an attachment.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- instance
Id string - The ID of the SCC instance in a particular region.
- profile
Id string - The profile ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- schedule string
- The schedule of an attachment evaluation.
- Constraints: Allowable values are:
daily
,every_7_days
,every_30_days
.
- Constraints: Allowable values are:
- scopes
Scc
Profile Attachment Scope[] The scope payload for the multi cloud feature.
- Constraints:
- The maximum length is
8
items. The minimum length is0
items.
Nested schema for scope:
- status string
- (String) The status of an attachment evaluation.
- Constraints: Allowable values are:
enabled
,disabled
.
- Constraints: Allowable values are:
- attachment
Parameters SccProfile Attachment Attachment Parameter[] The attachment parameters required from the profile that the attachment is targeting. All parameters listed from the profile needs to be set. NOTE: All
attachment_parameters
must be defined; usedatasource.ibm_scc_profile
to see all necessary parameters.Nested schema for attachment_parameters:
- description string
- (String) The description for the attachment.
- Constraints: The maximum length is
256
characters. The minimum length is0
characters. The value must match regular expression/^[a-zA-Z0-9_,'\\s\\-]*$/
.
- Constraints: The maximum length is
- name string
- The name of the attachment.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- notifications
Scc
Profile Attachment Notifications The configuration for setting up notifications if a scan fails. Requires event_notifications from the instance settings to be setup.
Nested schema for notifications:
- scc
Profile stringAttachment Id - (String) The ID of the last scan of an attachment.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- instance_
id str - The ID of the SCC instance in a particular region.
- profile_
id str - The profile ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- schedule str
- The schedule of an attachment evaluation.
- Constraints: Allowable values are:
daily
,every_7_days
,every_30_days
.
- Constraints: Allowable values are:
- scopes
Sequence[Scc
Profile Attachment Scope Args] The scope payload for the multi cloud feature.
- Constraints:
- The maximum length is
8
items. The minimum length is0
items.
Nested schema for scope:
- status str
- (String) The status of an attachment evaluation.
- Constraints: Allowable values are:
enabled
,disabled
.
- Constraints: Allowable values are:
- attachment_
parameters Sequence[SccProfile Attachment Attachment Parameter Args] The attachment parameters required from the profile that the attachment is targeting. All parameters listed from the profile needs to be set. NOTE: All
attachment_parameters
must be defined; usedatasource.ibm_scc_profile
to see all necessary parameters.Nested schema for attachment_parameters:
- description str
- (String) The description for the attachment.
- Constraints: The maximum length is
256
characters. The minimum length is0
characters. The value must match regular expression/^[a-zA-Z0-9_,'\\s\\-]*$/
.
- Constraints: The maximum length is
- name str
- The name of the attachment.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- notifications
Scc
Profile Attachment Notifications Args The configuration for setting up notifications if a scan fails. Requires event_notifications from the instance settings to be setup.
Nested schema for notifications:
- scc_
profile_ strattachment_ id - (String) The ID of the last scan of an attachment.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- instance
Id String - The ID of the SCC instance in a particular region.
- profile
Id String - The profile ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- schedule String
- The schedule of an attachment evaluation.
- Constraints: Allowable values are:
daily
,every_7_days
,every_30_days
.
- Constraints: Allowable values are:
- scopes List<Property Map>
The scope payload for the multi cloud feature.
- Constraints:
- The maximum length is
8
items. The minimum length is0
items.
Nested schema for scope:
- status String
- (String) The status of an attachment evaluation.
- Constraints: Allowable values are:
enabled
,disabled
.
- Constraints: Allowable values are:
- attachment
Parameters List<Property Map> The attachment parameters required from the profile that the attachment is targeting. All parameters listed from the profile needs to be set. NOTE: All
attachment_parameters
must be defined; usedatasource.ibm_scc_profile
to see all necessary parameters.Nested schema for attachment_parameters:
- description String
- (String) The description for the attachment.
- Constraints: The maximum length is
256
characters. The minimum length is0
characters. The value must match regular expression/^[a-zA-Z0-9_,'\\s\\-]*$/
.
- Constraints: The maximum length is
- name String
- The name of the attachment.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- notifications Property Map
The configuration for setting up notifications if a scan fails. Requires event_notifications from the instance settings to be setup.
Nested schema for notifications:
- scc
Profile StringAttachment Id - (String) The ID of the last scan of an attachment.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
Outputs
All input properties are implicitly available as output properties. Additionally, the SccProfileAttachment resource produces the following output properties:
- Account
Id string - (String) The account ID that is associated to the attachment.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- Attachment
Id string - (String) The ID of the attachment.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- Created
By string - (String) The user who created the attachment.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- Created
On string - (String) The date when the attachment was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Scans List<SccProfile Attachment Last Scan> - (List) The details of the last scan of an attachment.
- Next
Scan stringTime - (String) The start time of the next scan.
- Profile
Attachment stringId - (String) The ID that is associated with the created
profile_attachment
- Updated
By string - (String) The user who updated the attachment.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- Updated
On string - (String) The date when the attachment was updated.
- Account
Id string - (String) The account ID that is associated to the attachment.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- Attachment
Id string - (String) The ID of the attachment.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- Created
By string - (String) The user who created the attachment.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- Created
On string - (String) The date when the attachment was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Scans []SccProfile Attachment Last Scan - (List) The details of the last scan of an attachment.
- Next
Scan stringTime - (String) The start time of the next scan.
- Profile
Attachment stringId - (String) The ID that is associated with the created
profile_attachment
- Updated
By string - (String) The user who updated the attachment.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- Updated
On string - (String) The date when the attachment was updated.
- account
Id String - (String) The account ID that is associated to the attachment.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- attachment
Id String - (String) The ID of the attachment.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- created
By String - (String) The user who created the attachment.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- created
On String - (String) The date when the attachment was created.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Scans List<SccProfile Attachment Last Scan> - (List) The details of the last scan of an attachment.
- next
Scan StringTime - (String) The start time of the next scan.
- profile
Attachment StringId - (String) The ID that is associated with the created
profile_attachment
- updated
By String - (String) The user who updated the attachment.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- updated
On String - (String) The date when the attachment was updated.
- account
Id string - (String) The account ID that is associated to the attachment.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- attachment
Id string - (String) The ID of the attachment.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- created
By string - (String) The user who created the attachment.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- created
On string - (String) The date when the attachment was created.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Scans SccProfile Attachment Last Scan[] - (List) The details of the last scan of an attachment.
- next
Scan stringTime - (String) The start time of the next scan.
- profile
Attachment stringId - (String) The ID that is associated with the created
profile_attachment
- updated
By string - (String) The user who updated the attachment.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- updated
On string - (String) The date when the attachment was updated.
- account_
id str - (String) The account ID that is associated to the attachment.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- attachment_
id str - (String) The ID of the attachment.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- created_
by str - (String) The user who created the attachment.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- created_
on str - (String) The date when the attachment was created.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
scans Sequence[SccProfile Attachment Last Scan] - (List) The details of the last scan of an attachment.
- next_
scan_ strtime - (String) The start time of the next scan.
- profile_
attachment_ strid - (String) The ID that is associated with the created
profile_attachment
- updated_
by str - (String) The user who updated the attachment.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- updated_
on str - (String) The date when the attachment was updated.
- account
Id String - (String) The account ID that is associated to the attachment.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- attachment
Id String - (String) The ID of the attachment.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- created
By String - (String) The user who created the attachment.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- created
On String - (String) The date when the attachment was created.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Scans List<Property Map> - (List) The details of the last scan of an attachment.
- next
Scan StringTime - (String) The start time of the next scan.
- profile
Attachment StringId - (String) The ID that is associated with the created
profile_attachment
- updated
By String - (String) The user who updated the attachment.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- updated
On String - (String) The date when the attachment was updated.
Look up Existing SccProfileAttachment Resource
Get an existing SccProfileAttachment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SccProfileAttachmentState, opts?: CustomResourceOptions): SccProfileAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
attachment_id: Optional[str] = None,
attachment_parameters: Optional[Sequence[SccProfileAttachmentAttachmentParameterArgs]] = None,
created_by: Optional[str] = None,
created_on: Optional[str] = None,
description: Optional[str] = None,
instance_id: Optional[str] = None,
last_scans: Optional[Sequence[SccProfileAttachmentLastScanArgs]] = None,
name: Optional[str] = None,
next_scan_time: Optional[str] = None,
notifications: Optional[SccProfileAttachmentNotificationsArgs] = None,
profile_attachment_id: Optional[str] = None,
profile_id: Optional[str] = None,
scc_profile_attachment_id: Optional[str] = None,
schedule: Optional[str] = None,
scopes: Optional[Sequence[SccProfileAttachmentScopeArgs]] = None,
status: Optional[str] = None,
updated_by: Optional[str] = None,
updated_on: Optional[str] = None) -> SccProfileAttachment
func GetSccProfileAttachment(ctx *Context, name string, id IDInput, state *SccProfileAttachmentState, opts ...ResourceOption) (*SccProfileAttachment, error)
public static SccProfileAttachment Get(string name, Input<string> id, SccProfileAttachmentState? state, CustomResourceOptions? opts = null)
public static SccProfileAttachment get(String name, Output<String> id, SccProfileAttachmentState state, CustomResourceOptions options)
resources: _: type: ibm:SccProfileAttachment get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Id string - (String) The account ID that is associated to the attachment.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- Attachment
Id string - (String) The ID of the attachment.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- Attachment
Parameters List<SccProfile Attachment Attachment Parameter> The attachment parameters required from the profile that the attachment is targeting. All parameters listed from the profile needs to be set. NOTE: All
attachment_parameters
must be defined; usedatasource.ibm_scc_profile
to see all necessary parameters.Nested schema for attachment_parameters:
- Created
By string - (String) The user who created the attachment.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- Created
On string - (String) The date when the attachment was created.
- Description string
- (String) The description for the attachment.
- Constraints: The maximum length is
256
characters. The minimum length is0
characters. The value must match regular expression/^[a-zA-Z0-9_,'\\s\\-]*$/
.
- Constraints: The maximum length is
- Instance
Id string - The ID of the SCC instance in a particular region.
- Last
Scans List<SccProfile Attachment Last Scan> - (List) The details of the last scan of an attachment.
- Name string
- The name of the attachment.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- Next
Scan stringTime - (String) The start time of the next scan.
- Notifications
Scc
Profile Attachment Notifications The configuration for setting up notifications if a scan fails. Requires event_notifications from the instance settings to be setup.
Nested schema for notifications:
- Profile
Attachment stringId - (String) The ID that is associated with the created
profile_attachment
- Profile
Id string - The profile ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- Scc
Profile stringAttachment Id - (String) The ID of the last scan of an attachment.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- Schedule string
- The schedule of an attachment evaluation.
- Constraints: Allowable values are:
daily
,every_7_days
,every_30_days
.
- Constraints: Allowable values are:
- Scopes
List<Scc
Profile Attachment Scope> The scope payload for the multi cloud feature.
- Constraints:
- The maximum length is
8
items. The minimum length is0
items.
Nested schema for scope:
- Status string
- (String) The status of an attachment evaluation.
- Constraints: Allowable values are:
enabled
,disabled
.
- Constraints: Allowable values are:
- Updated
By string - (String) The user who updated the attachment.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- Updated
On string - (String) The date when the attachment was updated.
- Account
Id string - (String) The account ID that is associated to the attachment.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- Attachment
Id string - (String) The ID of the attachment.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- Attachment
Parameters []SccProfile Attachment Attachment Parameter Args The attachment parameters required from the profile that the attachment is targeting. All parameters listed from the profile needs to be set. NOTE: All
attachment_parameters
must be defined; usedatasource.ibm_scc_profile
to see all necessary parameters.Nested schema for attachment_parameters:
- Created
By string - (String) The user who created the attachment.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- Created
On string - (String) The date when the attachment was created.
- Description string
- (String) The description for the attachment.
- Constraints: The maximum length is
256
characters. The minimum length is0
characters. The value must match regular expression/^[a-zA-Z0-9_,'\\s\\-]*$/
.
- Constraints: The maximum length is
- Instance
Id string - The ID of the SCC instance in a particular region.
- Last
Scans []SccProfile Attachment Last Scan Args - (List) The details of the last scan of an attachment.
- Name string
- The name of the attachment.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- Next
Scan stringTime - (String) The start time of the next scan.
- Notifications
Scc
Profile Attachment Notifications Args The configuration for setting up notifications if a scan fails. Requires event_notifications from the instance settings to be setup.
Nested schema for notifications:
- Profile
Attachment stringId - (String) The ID that is associated with the created
profile_attachment
- Profile
Id string - The profile ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- Scc
Profile stringAttachment Id - (String) The ID of the last scan of an attachment.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- Schedule string
- The schedule of an attachment evaluation.
- Constraints: Allowable values are:
daily
,every_7_days
,every_30_days
.
- Constraints: Allowable values are:
- Scopes
[]Scc
Profile Attachment Scope Args The scope payload for the multi cloud feature.
- Constraints:
- The maximum length is
8
items. The minimum length is0
items.
Nested schema for scope:
- Status string
- (String) The status of an attachment evaluation.
- Constraints: Allowable values are:
enabled
,disabled
.
- Constraints: Allowable values are:
- Updated
By string - (String) The user who updated the attachment.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- Updated
On string - (String) The date when the attachment was updated.
- account
Id String - (String) The account ID that is associated to the attachment.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- attachment
Id String - (String) The ID of the attachment.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- attachment
Parameters List<SccProfile Attachment Attachment Parameter> The attachment parameters required from the profile that the attachment is targeting. All parameters listed from the profile needs to be set. NOTE: All
attachment_parameters
must be defined; usedatasource.ibm_scc_profile
to see all necessary parameters.Nested schema for attachment_parameters:
- created
By String - (String) The user who created the attachment.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- created
On String - (String) The date when the attachment was created.
- description String
- (String) The description for the attachment.
- Constraints: The maximum length is
256
characters. The minimum length is0
characters. The value must match regular expression/^[a-zA-Z0-9_,'\\s\\-]*$/
.
- Constraints: The maximum length is
- instance
Id String - The ID of the SCC instance in a particular region.
- last
Scans List<SccProfile Attachment Last Scan> - (List) The details of the last scan of an attachment.
- name String
- The name of the attachment.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- next
Scan StringTime - (String) The start time of the next scan.
- notifications
Scc
Profile Attachment Notifications The configuration for setting up notifications if a scan fails. Requires event_notifications from the instance settings to be setup.
Nested schema for notifications:
- profile
Attachment StringId - (String) The ID that is associated with the created
profile_attachment
- profile
Id String - The profile ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- scc
Profile StringAttachment Id - (String) The ID of the last scan of an attachment.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- schedule String
- The schedule of an attachment evaluation.
- Constraints: Allowable values are:
daily
,every_7_days
,every_30_days
.
- Constraints: Allowable values are:
- scopes
List<Scc
Profile Attachment Scope> The scope payload for the multi cloud feature.
- Constraints:
- The maximum length is
8
items. The minimum length is0
items.
Nested schema for scope:
- status String
- (String) The status of an attachment evaluation.
- Constraints: Allowable values are:
enabled
,disabled
.
- Constraints: Allowable values are:
- updated
By String - (String) The user who updated the attachment.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- updated
On String - (String) The date when the attachment was updated.
- account
Id string - (String) The account ID that is associated to the attachment.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- attachment
Id string - (String) The ID of the attachment.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- attachment
Parameters SccProfile Attachment Attachment Parameter[] The attachment parameters required from the profile that the attachment is targeting. All parameters listed from the profile needs to be set. NOTE: All
attachment_parameters
must be defined; usedatasource.ibm_scc_profile
to see all necessary parameters.Nested schema for attachment_parameters:
- created
By string - (String) The user who created the attachment.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- created
On string - (String) The date when the attachment was created.
- description string
- (String) The description for the attachment.
- Constraints: The maximum length is
256
characters. The minimum length is0
characters. The value must match regular expression/^[a-zA-Z0-9_,'\\s\\-]*$/
.
- Constraints: The maximum length is
- instance
Id string - The ID of the SCC instance in a particular region.
- last
Scans SccProfile Attachment Last Scan[] - (List) The details of the last scan of an attachment.
- name string
- The name of the attachment.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- next
Scan stringTime - (String) The start time of the next scan.
- notifications
Scc
Profile Attachment Notifications The configuration for setting up notifications if a scan fails. Requires event_notifications from the instance settings to be setup.
Nested schema for notifications:
- profile
Attachment stringId - (String) The ID that is associated with the created
profile_attachment
- profile
Id string - The profile ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- scc
Profile stringAttachment Id - (String) The ID of the last scan of an attachment.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- schedule string
- The schedule of an attachment evaluation.
- Constraints: Allowable values are:
daily
,every_7_days
,every_30_days
.
- Constraints: Allowable values are:
- scopes
Scc
Profile Attachment Scope[] The scope payload for the multi cloud feature.
- Constraints:
- The maximum length is
8
items. The minimum length is0
items.
Nested schema for scope:
- status string
- (String) The status of an attachment evaluation.
- Constraints: Allowable values are:
enabled
,disabled
.
- Constraints: Allowable values are:
- updated
By string - (String) The user who updated the attachment.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- updated
On string - (String) The date when the attachment was updated.
- account_
id str - (String) The account ID that is associated to the attachment.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- attachment_
id str - (String) The ID of the attachment.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- attachment_
parameters Sequence[SccProfile Attachment Attachment Parameter Args] The attachment parameters required from the profile that the attachment is targeting. All parameters listed from the profile needs to be set. NOTE: All
attachment_parameters
must be defined; usedatasource.ibm_scc_profile
to see all necessary parameters.Nested schema for attachment_parameters:
- created_
by str - (String) The user who created the attachment.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- created_
on str - (String) The date when the attachment was created.
- description str
- (String) The description for the attachment.
- Constraints: The maximum length is
256
characters. The minimum length is0
characters. The value must match regular expression/^[a-zA-Z0-9_,'\\s\\-]*$/
.
- Constraints: The maximum length is
- instance_
id str - The ID of the SCC instance in a particular region.
- last_
scans Sequence[SccProfile Attachment Last Scan Args] - (List) The details of the last scan of an attachment.
- name str
- The name of the attachment.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- next_
scan_ strtime - (String) The start time of the next scan.
- notifications
Scc
Profile Attachment Notifications Args The configuration for setting up notifications if a scan fails. Requires event_notifications from the instance settings to be setup.
Nested schema for notifications:
- profile_
attachment_ strid - (String) The ID that is associated with the created
profile_attachment
- profile_
id str - The profile ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- scc_
profile_ strattachment_ id - (String) The ID of the last scan of an attachment.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- schedule str
- The schedule of an attachment evaluation.
- Constraints: Allowable values are:
daily
,every_7_days
,every_30_days
.
- Constraints: Allowable values are:
- scopes
Sequence[Scc
Profile Attachment Scope Args] The scope payload for the multi cloud feature.
- Constraints:
- The maximum length is
8
items. The minimum length is0
items.
Nested schema for scope:
- status str
- (String) The status of an attachment evaluation.
- Constraints: Allowable values are:
enabled
,disabled
.
- Constraints: Allowable values are:
- updated_
by str - (String) The user who updated the attachment.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- updated_
on str - (String) The date when the attachment was updated.
- account
Id String - (String) The account ID that is associated to the attachment.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- attachment
Id String - (String) The ID of the attachment.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- attachment
Parameters List<Property Map> The attachment parameters required from the profile that the attachment is targeting. All parameters listed from the profile needs to be set. NOTE: All
attachment_parameters
must be defined; usedatasource.ibm_scc_profile
to see all necessary parameters.Nested schema for attachment_parameters:
- created
By String - (String) The user who created the attachment.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- created
On String - (String) The date when the attachment was created.
- description String
- (String) The description for the attachment.
- Constraints: The maximum length is
256
characters. The minimum length is0
characters. The value must match regular expression/^[a-zA-Z0-9_,'\\s\\-]*$/
.
- Constraints: The maximum length is
- instance
Id String - The ID of the SCC instance in a particular region.
- last
Scans List<Property Map> - (List) The details of the last scan of an attachment.
- name String
- The name of the attachment.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- next
Scan StringTime - (String) The start time of the next scan.
- notifications Property Map
The configuration for setting up notifications if a scan fails. Requires event_notifications from the instance settings to be setup.
Nested schema for notifications:
- profile
Attachment StringId - (String) The ID that is associated with the created
profile_attachment
- profile
Id String - The profile ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- scc
Profile StringAttachment Id - (String) The ID of the last scan of an attachment.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- schedule String
- The schedule of an attachment evaluation.
- Constraints: Allowable values are:
daily
,every_7_days
,every_30_days
.
- Constraints: Allowable values are:
- scopes List<Property Map>
The scope payload for the multi cloud feature.
- Constraints:
- The maximum length is
8
items. The minimum length is0
items.
Nested schema for scope:
- status String
- (String) The status of an attachment evaluation.
- Constraints: Allowable values are:
enabled
,disabled
.
- Constraints: Allowable values are:
- updated
By String - (String) The user who updated the attachment.
- Constraints: The maximum length is
255
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-\\.:,_\\s]*$/
.
- Constraints: The maximum length is
- updated
On String - (String) The date when the attachment was updated.
Supporting Types
SccProfileAttachmentAttachmentParameter, SccProfileAttachmentAttachmentParameterArgs
- Assessment
Id string - (String) The implementation ID of the parameter.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.
- Constraints: The maximum length is
- Parameter
Display stringName - The display name of the parameter shown in the UI.
- Parameter
Name string - The name of the parameter to target.
- Parameter
Type string - The type of the parameter value.
- Parameter
Value string - The value of the parameter.
- Assessment
Type string - The type of assessment the parameter uses.
- Assessment
Id string - (String) The implementation ID of the parameter.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.
- Constraints: The maximum length is
- Parameter
Display stringName - The display name of the parameter shown in the UI.
- Parameter
Name string - The name of the parameter to target.
- Parameter
Type string - The type of the parameter value.
- Parameter
Value string - The value of the parameter.
- Assessment
Type string - The type of assessment the parameter uses.
- assessment
Id String - (String) The implementation ID of the parameter.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.
- Constraints: The maximum length is
- parameter
Display StringName - The display name of the parameter shown in the UI.
- parameter
Name String - The name of the parameter to target.
- parameter
Type String - The type of the parameter value.
- parameter
Value String - The value of the parameter.
- assessment
Type String - The type of assessment the parameter uses.
- assessment
Id string - (String) The implementation ID of the parameter.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.
- Constraints: The maximum length is
- parameter
Display stringName - The display name of the parameter shown in the UI.
- parameter
Name string - The name of the parameter to target.
- parameter
Type string - The type of the parameter value.
- parameter
Value string - The value of the parameter.
- assessment
Type string - The type of assessment the parameter uses.
- assessment_
id str - (String) The implementation ID of the parameter.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.
- Constraints: The maximum length is
- parameter_
display_ strname - The display name of the parameter shown in the UI.
- parameter_
name str - The name of the parameter to target.
- parameter_
type str - The type of the parameter value.
- parameter_
value str - The value of the parameter.
- assessment_
type str - The type of assessment the parameter uses.
- assessment
Id String - (String) The implementation ID of the parameter.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.
- Constraints: The maximum length is
- parameter
Display StringName - The display name of the parameter shown in the UI.
- parameter
Name String - The name of the parameter to target.
- parameter
Type String - The type of the parameter value.
- parameter
Value String - The value of the parameter.
- assessment
Type String - The type of assessment the parameter uses.
SccProfileAttachmentLastScan, SccProfileAttachmentLastScanArgs
- Id string
- (String) The ID of the last scan of an attachment.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- Status string
- (String) The status of an attachment evaluation.
- Constraints: Allowable values are:
enabled
,disabled
.
- Constraints: Allowable values are:
- Time string
- (String) The time when the last scan started.
- Id string
- (String) The ID of the last scan of an attachment.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- Status string
- (String) The status of an attachment evaluation.
- Constraints: Allowable values are:
enabled
,disabled
.
- Constraints: Allowable values are:
- Time string
- (String) The time when the last scan started.
- id String
- (String) The ID of the last scan of an attachment.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- status String
- (String) The status of an attachment evaluation.
- Constraints: Allowable values are:
enabled
,disabled
.
- Constraints: Allowable values are:
- time String
- (String) The time when the last scan started.
- id string
- (String) The ID of the last scan of an attachment.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- status string
- (String) The status of an attachment evaluation.
- Constraints: Allowable values are:
enabled
,disabled
.
- Constraints: Allowable values are:
- time string
- (String) The time when the last scan started.
- id str
- (String) The ID of the last scan of an attachment.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- status str
- (String) The status of an attachment evaluation.
- Constraints: Allowable values are:
enabled
,disabled
.
- Constraints: Allowable values are:
- time str
- (String) The time when the last scan started.
- id String
- (String) The ID of the last scan of an attachment.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- status String
- (String) The status of an attachment evaluation.
- Constraints: Allowable values are:
enabled
,disabled
.
- Constraints: Allowable values are:
- time String
- (String) The time when the last scan started.
SccProfileAttachmentNotifications, SccProfileAttachmentNotificationsArgs
- Controls
Scc
Profile Attachment Notifications Controls - The failed controls. Nested schema for controls:
- Enabled bool
- The flag to enable notifications. Set to true to enabled notifications, false to disable
- Controls
Scc
Profile Attachment Notifications Controls - The failed controls. Nested schema for controls:
- Enabled bool
- The flag to enable notifications. Set to true to enabled notifications, false to disable
- controls
Scc
Profile Attachment Notifications Controls - The failed controls. Nested schema for controls:
- enabled Boolean
- The flag to enable notifications. Set to true to enabled notifications, false to disable
- controls
Scc
Profile Attachment Notifications Controls - The failed controls. Nested schema for controls:
- enabled boolean
- The flag to enable notifications. Set to true to enabled notifications, false to disable
- controls
Scc
Profile Attachment Notifications Controls - The failed controls. Nested schema for controls:
- enabled bool
- The flag to enable notifications. Set to true to enabled notifications, false to disable
- controls Property Map
- The failed controls. Nested schema for controls:
- enabled Boolean
- The flag to enable notifications. Set to true to enabled notifications, false to disable
SccProfileAttachmentNotificationsControls, SccProfileAttachmentNotificationsControlsArgs
- Failed
Control List<string>Ids - The failed control IDs.
- Constraints: The list items must match regular expression
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$|^$/
. The maximum length is512
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- Threshold
Limit double - The threshold limit.
- Failed
Control []stringIds - The failed control IDs.
- Constraints: The list items must match regular expression
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$|^$/
. The maximum length is512
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- Threshold
Limit float64 - The threshold limit.
- failed
Control List<String>Ids - The failed control IDs.
- Constraints: The list items must match regular expression
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$|^$/
. The maximum length is512
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- threshold
Limit Double - The threshold limit.
- failed
Control string[]Ids - The failed control IDs.
- Constraints: The list items must match regular expression
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$|^$/
. The maximum length is512
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- threshold
Limit number - The threshold limit.
- failed_
control_ Sequence[str]ids - The failed control IDs.
- Constraints: The list items must match regular expression
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$|^$/
. The maximum length is512
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- threshold_
limit float - The threshold limit.
- failed
Control List<String>Ids - The failed control IDs.
- Constraints: The list items must match regular expression
/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$|^$/
. The maximum length is512
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- threshold
Limit Number - The threshold limit.
SccProfileAttachmentScope, SccProfileAttachmentScopeArgs
- Environment string
- The environment that relates to this scope.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.
- Constraints: The maximum length is
- Id string
- (String) The ID of the last scan of an attachment.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- Properties
List<Scc
Profile Attachment Scope Property> The properties supported for scoping by this environment.
- Constraints: The maximum length is
8
items. The minimum length is0
items. Nested schema for properties:
NOTE: Defining the
scope_type
value must be eitheraccount
,account.resource_group
,enterprise
,enterprise.account
andenterprise.account_group
." NOTE: Defining thescope_id
value will be the id of thescope_type
(ex.enterprise.account_group
will be the ID of the account_group within an enterprise)- Constraints: The maximum length is
- Environment string
- The environment that relates to this scope.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.
- Constraints: The maximum length is
- Id string
- (String) The ID of the last scan of an attachment.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- Properties
[]Scc
Profile Attachment Scope Property The properties supported for scoping by this environment.
- Constraints: The maximum length is
8
items. The minimum length is0
items. Nested schema for properties:
NOTE: Defining the
scope_type
value must be eitheraccount
,account.resource_group
,enterprise
,enterprise.account
andenterprise.account_group
." NOTE: Defining thescope_id
value will be the id of thescope_type
(ex.enterprise.account_group
will be the ID of the account_group within an enterprise)- Constraints: The maximum length is
- environment String
- The environment that relates to this scope.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.
- Constraints: The maximum length is
- id String
- (String) The ID of the last scan of an attachment.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- properties
List<Scc
Profile Attachment Scope Property> The properties supported for scoping by this environment.
- Constraints: The maximum length is
8
items. The minimum length is0
items. Nested schema for properties:
NOTE: Defining the
scope_type
value must be eitheraccount
,account.resource_group
,enterprise
,enterprise.account
andenterprise.account_group
." NOTE: Defining thescope_id
value will be the id of thescope_type
(ex.enterprise.account_group
will be the ID of the account_group within an enterprise)- Constraints: The maximum length is
- environment string
- The environment that relates to this scope.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.
- Constraints: The maximum length is
- id string
- (String) The ID of the last scan of an attachment.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- properties
Scc
Profile Attachment Scope Property[] The properties supported for scoping by this environment.
- Constraints: The maximum length is
8
items. The minimum length is0
items. Nested schema for properties:
NOTE: Defining the
scope_type
value must be eitheraccount
,account.resource_group
,enterprise
,enterprise.account
andenterprise.account_group
." NOTE: Defining thescope_id
value will be the id of thescope_type
(ex.enterprise.account_group
will be the ID of the account_group within an enterprise)- Constraints: The maximum length is
- environment str
- The environment that relates to this scope.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.
- Constraints: The maximum length is
- id str
- (String) The ID of the last scan of an attachment.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- properties
Sequence[Scc
Profile Attachment Scope Property] The properties supported for scoping by this environment.
- Constraints: The maximum length is
8
items. The minimum length is0
items. Nested schema for properties:
NOTE: Defining the
scope_type
value must be eitheraccount
,account.resource_group
,enterprise
,enterprise.account
andenterprise.account_group
." NOTE: Defining thescope_id
value will be the id of thescope_type
(ex.enterprise.account_group
will be the ID of the account_group within an enterprise)- Constraints: The maximum length is
- environment String
- The environment that relates to this scope.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.
- Constraints: The maximum length is
- id String
- (String) The ID of the last scan of an attachment.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- properties List<Property Map>
The properties supported for scoping by this environment.
- Constraints: The maximum length is
8
items. The minimum length is0
items. Nested schema for properties:
NOTE: Defining the
scope_type
value must be eitheraccount
,account.resource_group
,enterprise
,enterprise.account
andenterprise.account_group
." NOTE: Defining thescope_id
value will be the id of thescope_type
(ex.enterprise.account_group
will be the ID of the account_group within an enterprise)- Constraints: The maximum length is
SccProfileAttachmentScopeProperty, SccProfileAttachmentScopePropertyArgs
- Name string
- The name of the property.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.
- Constraints: The maximum length is
- Value string
- The value of the property.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.;
- Constraints: The maximum length is
- Name string
- The name of the property.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.
- Constraints: The maximum length is
- Value string
- The value of the property.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.;
- Constraints: The maximum length is
- name String
- The name of the property.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.
- Constraints: The maximum length is
- value String
- The value of the property.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.;
- Constraints: The maximum length is
- name string
- The name of the property.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.
- Constraints: The maximum length is
- value string
- The value of the property.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.;
- Constraints: The maximum length is
- name str
- The name of the property.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.
- Constraints: The maximum length is
- value str
- The value of the property.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.;
- Constraints: The maximum length is
- name String
- The name of the property.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.
- Constraints: The maximum length is
- value String
- The value of the property.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[A-Za-z0-9]+/
.;
- Constraints: The maximum length is
Import
You can import the ibm_scc_profile_attachment
resource by using id
.
The id
property can be formed from instance_id
, profiles_id
, and attachment_id
in the following format:
bash
<instance_id>/<profile_id>/<attachment_id>
instance_id
: A string. The instance ID.profile_id
: A string. The profile ID.attachment_id
: A string. The attachment ID.
Syntax
bash
$ pulumi import ibm:index/sccProfileAttachment:SccProfileAttachment scc_profile_attachment <instance_id>/<profile_id>/<attachment_id>
Example
bash
$ pulumi import ibm:index/sccProfileAttachment:SccProfileAttachment scc_profile_attachment 00000000-1111-2222-3333-444444444444/00000000-1111-2222-3333-444444444444/f3517159-889e-4781-819a-89d89b747c85
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.